Skip to content

Commit 39912f7

Browse files
author
Ed Heyl
committed
Merge commit '87bb019e57eddcedd4aeca180ac36bdf1d42064a' into jb-mr1-dev
2 parents 62831a7 + 87bb019 commit 39912f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+323
-293
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/AppWidgetHostView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public void setAppWidget(int appWidgetId, AppWidgetProviderInfo info) {
144144
// We add padding to the AppWidgetHostView if necessary
145145
Rect padding = getDefaultPaddingForWidget(mContext, info.provider, null);
146146
setPadding(padding.left, padding.top, padding.right, padding.bottom);
147+
setContentDescription(info.label);
147148
}
148149
}
149150

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/java/com/android/internal/policy/IFaceLockCallback.aidl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ oneway interface IFaceLockCallback {
2222
void unlock();
2323
void cancel();
2424
void reportFailedAttempt();
25-
void exposeFallback();
2625
void pokeWakelock(int millis);
2726
}

core/java/com/android/internal/widget/LockPatternView.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
import android.content.Context;
21-
import android.content.res.Resources;
2221
import android.content.res.TypedArray;
2322
import android.graphics.Bitmap;
2423
import android.graphics.BitmapFactory;
@@ -33,11 +32,9 @@
3332
import android.os.Parcelable;
3433
import android.os.SystemClock;
3534
import android.util.AttributeSet;
36-
import android.util.Log;
3735
import android.view.HapticFeedbackConstants;
3836
import android.view.MotionEvent;
3937
import android.view.View;
40-
import android.view.accessibility.AccessibilityEvent;
4138
import android.view.accessibility.AccessibilityManager;
4239

4340
import com.android.internal.R;
@@ -657,9 +654,11 @@ public boolean onTouchEvent(MotionEvent event) {
657654
handleActionMove(event);
658655
return true;
659656
case MotionEvent.ACTION_CANCEL:
660-
resetPattern();
661-
mPatternInProgress = false;
662-
notifyPatternCleared();
657+
if (mPatternInProgress) {
658+
mPatternInProgress = false;
659+
resetPattern();
660+
notifyPatternCleared();
661+
}
663662
if (PROFILE_DRAWING) {
664663
if (mDrawingProfilingStarted) {
665664
Debug.stopMethodTracing();
@@ -826,7 +825,7 @@ private void handleActionDown(MotionEvent event) {
826825
mPatternInProgress = true;
827826
mPatternDisplayMode = DisplayMode.Correct;
828827
notifyPatternStarted();
829-
} else {
828+
} else if (mPatternInProgress) {
830829
mPatternInProgress = false;
831830
notifyPatternCleared();
832831
}
2.32 KB
Loading
2.63 KB
Loading
1.72 KB
Loading
1.53 KB
Loading

0 commit comments

Comments
 (0)