Skip to content

Commit 9767597

Browse files
Adam CohenAndroid (Google) Code Review
authored andcommitted
Merge "Stripping dead API related to keyguard widgets" into jb-mr1-lockscreen-dev
2 parents 757d0d8 + 8f697d8 commit 9767597

File tree

6 files changed

+0
-43
lines changed

6 files changed

+0
-43
lines changed

api/17.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,6 @@ package android {
11451145
field public static final int weekSeparatorLineColor = 16843590; // 0x1010346
11461146
field public static final int weightSum = 16843048; // 0x1010128
11471147
field public static final int widgetCategory = 16843716; // 0x10103c4
1148-
field public static final int widgetFeatures = 16843715; // 0x10103c3
11491148
field public static final int widgetLayout = 16843243; // 0x10101eb
11501149
field public static final int width = 16843097; // 0x1010159
11511150
field public static final int windowActionBar = 16843469; // 0x10102cd
@@ -4497,8 +4496,6 @@ package android.appwidget {
44974496
field public static final int RESIZE_VERTICAL = 2; // 0x2
44984497
field public static final int WIDGET_CATEGORY_HOME_SCREEN = 1; // 0x1
44994498
field public static final int WIDGET_CATEGORY_KEYGUARD = 2; // 0x2
4500-
field public static final int WIDGET_FEATURES_NONE = 0; // 0x0
4501-
field public static final int WIDGET_FEATURES_STATUS = 1; // 0x1
45024499
field public int autoAdvanceViewId;
45034500
field public android.content.ComponentName configure;
45044501
field public int icon;
@@ -4514,7 +4511,6 @@ package android.appwidget {
45144511
field public int resizeMode;
45154512
field public int updatePeriodMillis;
45164513
field public int widgetCategory;
4517-
field public int widgetFeatures;
45184514
}
45194515

45204516
}

api/current.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,6 @@ package android {
11451145
field public static final int weekSeparatorLineColor = 16843590; // 0x1010346
11461146
field public static final int weightSum = 16843048; // 0x1010128
11471147
field public static final int widgetCategory = 16843716; // 0x10103c4
1148-
field public static final int widgetFeatures = 16843715; // 0x10103c3
11491148
field public static final int widgetLayout = 16843243; // 0x10101eb
11501149
field public static final int width = 16843097; // 0x1010159
11511150
field public static final int windowActionBar = 16843469; // 0x10102cd
@@ -4497,8 +4496,6 @@ package android.appwidget {
44974496
field public static final int RESIZE_VERTICAL = 2; // 0x2
44984497
field public static final int WIDGET_CATEGORY_HOME_SCREEN = 1; // 0x1
44994498
field public static final int WIDGET_CATEGORY_KEYGUARD = 2; // 0x2
4500-
field public static final int WIDGET_FEATURES_NONE = 0; // 0x0
4501-
field public static final int WIDGET_FEATURES_STATUS = 1; // 0x1
45024499
field public int autoAdvanceViewId;
45034500
field public android.content.ComponentName configure;
45044501
field public int icon;
@@ -4514,7 +4511,6 @@ package android.appwidget {
45144511
field public int resizeMode;
45154512
field public int updatePeriodMillis;
45164513
field public int widgetCategory;
4517-
field public int widgetFeatures;
45184514
}
45194515

45204516
}

core/java/android/appwidget/AppWidgetProviderInfo.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ public class AppWidgetProviderInfo implements Parcelable {
5353
*/
5454
public static final int WIDGET_CATEGORY_KEYGUARD = 2;
5555

56-
/**
57-
* Indicates that the widget supports no special features.
58-
*/
59-
public static final int WIDGET_FEATURES_NONE = 0;
60-
61-
/**
62-
* Indicates that the widget is output only, ie. has nothing clickable. This may be enforced by
63-
* the host. Presently, this flag is used by the keyguard to indicate that it can be placed
64-
* in the first position.
65-
*/
66-
public static final int WIDGET_FEATURES_STATUS = 1;
67-
6856
/**
6957
* Identity of this AppWidget component. This component should be a {@link
7058
* android.content.BroadcastReceiver}, and it will be sent the AppWidget intents
@@ -207,15 +195,6 @@ public class AppWidgetProviderInfo implements Parcelable {
207195
*/
208196
public int widgetCategory;
209197

210-
/**
211-
* A field which specifies any special features that this widget supports. See
212-
* {@link #WIDGET_FEATURES_NONE}, {@link #WIDGET_FEATURES_STATUS}.
213-
*
214-
* <p>This field corresponds to the <code>widgetFeatures</code> attribute in
215-
* the AppWidget meta-data file.
216-
*/
217-
public int widgetFeatures;
218-
219198
public AppWidgetProviderInfo() {
220199
}
221200

@@ -242,7 +221,6 @@ public AppWidgetProviderInfo(Parcel in) {
242221
this.autoAdvanceViewId = in.readInt();
243222
this.resizeMode = in.readInt();
244223
this.widgetCategory = in.readInt();
245-
this.widgetFeatures = in.readInt();
246224
}
247225

248226
public void writeToParcel(android.os.Parcel out, int flags) {
@@ -271,7 +249,6 @@ public void writeToParcel(android.os.Parcel out, int flags) {
271249
out.writeInt(this.autoAdvanceViewId);
272250
out.writeInt(this.resizeMode);
273251
out.writeInt(this.widgetCategory);
274-
out.writeInt(this.widgetFeatures);
275252
}
276253

277254
@Override
@@ -292,7 +269,6 @@ public AppWidgetProviderInfo clone() {
292269
that.autoAdvanceViewId = this.autoAdvanceViewId;
293270
that.resizeMode = this.resizeMode;
294271
that.widgetCategory = this.widgetCategory;
295-
that.widgetFeatures = this.widgetFeatures;
296272
return that;
297273
}
298274

core/res/res/values/attrs.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5231,12 +5231,6 @@
52315231
<flag name="home_screen" value="0x1" />
52325232
<flag name="keyguard" value="0x2" />
52335233
</attr>
5234-
<!-- Optional parameter which indicates any feature(s) that this widget
5235-
supports. Supports combined values using | operator. -->
5236-
<attr name="widgetFeatures" format="integer">
5237-
<flag name="none" value="0x0" />
5238-
<flag name="status" value="0x1" />
5239-
</attr>
52405234
</declare-styleable>
52415235

52425236
<!-- =============================== -->

core/res/res/values/public.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,6 @@
20132013
<public type="attr" name="presentationTheme" id="0x010103c0" />
20142014
<public type="attr" name="subtypeId" id="0x010103c1" />
20152015
<public type="attr" name="initialKeyguardLayout" id="0x010103c2" />
2016-
<public type="attr" name="widgetFeatures" id="0x010103c3" />
20172016
<public type="attr" name="widgetCategory" id="0x010103c4" />
20182017
<public type="attr" name="permissionGroupFlags" id="0x010103c5" />
20192018
<public type="attr" name="labelFor" id="0x010103c6" />

services/java/com/android/server/AppWidgetServiceImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ private void dumpProvider(Provider p, int index, PrintWriter pw) {
326326
pw.print(" resizeMode=");
327327
pw.print(info.resizeMode);
328328
pw.print(info.widgetCategory);
329-
pw.print(info.widgetFeatures);
330329
pw.print(" autoAdvanceViewId=");
331330
pw.print(info.autoAdvanceViewId);
332331
pw.print(" initialLayout=#");
@@ -1412,9 +1411,6 @@ private Provider parseProviderInfoXml(ComponentName component, ResolveInfo ri) {
14121411
info.widgetCategory = sa.getInt(
14131412
com.android.internal.R.styleable.AppWidgetProviderInfo_widgetCategory,
14141413
AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
1415-
info.widgetFeatures = sa.getInt(
1416-
com.android.internal.R.styleable.AppWidgetProviderInfo_widgetFeatures,
1417-
AppWidgetProviderInfo.WIDGET_FEATURES_NONE);
14181414

14191415
sa.recycle();
14201416
} catch (Exception e) {

0 commit comments

Comments
 (0)