summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorBaligh Uddin <baligh@google.com>2012-11-05 15:58:55 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-05 15:58:55 -0800
commit19f8aa180a7ccb29b11a322378002e37517abfc9 (patch)
treedf8102a34818295b64bf27f58fa71e6cd5f4b6df /core/java/android
parent8116ab5677a529a4e54d22f71aee9391aa7c8e2c (diff)
parent00b5ed8fa9f2f38e15894519f3afeaae56e97e94 (diff)
am 00b5ed8f: Merge commit \'b3f87c24ee86227e22b2db9b04f3d94519f230f9\' into jb-mr1-dev
* commit '00b5ed8fa9f2f38e15894519f3afeaae56e97e94': (21 commits) Clearing connected message in stop fixes 7401152 bouncer: hide more text and frame less. Recover from badly behaving 3rd party secure cameras. Show bouncer mode for Slide mode in keyguard if widget isn't expanded Making challenge come back if within the same gesture you return to the original page (issue 7422999) Ensure edge swiping is enforced immediately upon showing keyguard (issue 7453156) Fix issue 7468224, make sure to size pages if page changes If a default keyguard layout isn't specified, fallback to the default layout Use better signal for camera launch. Render camera widget on a background thread. Fully block user interactions when transitioning to camera. Fixing up overscroll / hints on tablet Cleaning up the overscroll effect Updating UI to new design, widget shouldn't expand until page settles (issue 7467435) Making screen hints just side page outlines, as per new design (issue 7467968) Clean up separator string in keyguard view Attempt to fix MENU key issue. Update DevicePolicyManager documentation with new keyguard flags Polish user selector accessibility. Fix pages disappearing (issue 7456885) ...
Diffstat (limited to 'core/java/android')
-rwxr-xr-xcore/java/android/app/admin/DevicePolicyManager.java9
-rw-r--r--core/java/android/appwidget/AppWidgetHostView.java5
-rw-r--r--core/java/android/appwidget/AppWidgetProviderInfo.java2
-rw-r--r--core/java/android/view/accessibility/AccessibilityRecord.java11
4 files changed, 22 insertions, 5 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index 6966793d2687..4c0eba00e66c 100755
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -1228,7 +1228,7 @@ public class DevicePolicyManager {
public static final int KEYGUARD_DISABLE_SECURE_CAMERA = 1 << 1;
/**
- * Disable all current and future keyguard customizations
+ * Disable all current and future keyguard customizations.
*/
public static final int KEYGUARD_DISABLE_FEATURES_ALL = 0x7fffffff;
@@ -1381,8 +1381,9 @@ public class DevicePolicyManager {
* this method; if it has not, a security exception will be thrown.
*
* @param admin Which {@link DeviceAdminReceiver} this request is associated with.
- * @param which {@link DevicePolicyManager#KEYGUARD_DISABLE_WIDGETS_ALL} or
- * {@link DevicePolicyManager#KEYGUARD_DISABLE_FEATURES_NONE} (the default).
+ * @param which {@link #KEYGUARD_DISABLE_FEATURES_NONE} (default),
+ * {@link #KEYGUARD_DISABLE_WIDGETS_ALL}, {@link #KEYGUARD_DISABLE_SECURE_CAMERA},
+ * {@link #KEYGUARD_DISABLE_FEATURES_ALL}
*/
public void setKeyguardDisabledFeatures(ComponentName admin, int which) {
if (mService != null) {
@@ -1399,6 +1400,8 @@ public class DevicePolicyManager {
* admin, if specified, or all admins.
* @param admin The name of the admin component to check, or null to check if any admins
* have disabled features in keyguard.
+ * @return bitfield of flags. See {@link #setKeyguardDisabledFeatures(ComponentName, int)}
+ * for a list.
*/
public int getKeyguardDisabledFeatures(ComponentName admin) {
return getKeyguardDisabledFeatures(admin, UserHandle.myUserId());
diff --git a/core/java/android/appwidget/AppWidgetHostView.java b/core/java/android/appwidget/AppWidgetHostView.java
index be6a770e6f33..52771eebecbb 100644
--- a/core/java/android/appwidget/AppWidgetHostView.java
+++ b/core/java/android/appwidget/AppWidgetHostView.java
@@ -553,7 +553,10 @@ public class AppWidgetHostView extends FrameLayout {
if (options.containsKey(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY)) {
int category = options.getInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY);
if (category == AppWidgetProviderInfo.WIDGET_CATEGORY_KEYGUARD) {
- layoutId = mInfo.initialKeyguardLayout;
+ int kgLayoutId = mInfo.initialKeyguardLayout;
+ // If a default keyguard layout is not specified, use the standard
+ // default layout.
+ layoutId = kgLayoutId == 0 ? layoutId : kgLayoutId;
}
}
defaultView = inflater.inflate(layoutId, this, false);
diff --git a/core/java/android/appwidget/AppWidgetProviderInfo.java b/core/java/android/appwidget/AppWidgetProviderInfo.java
index 6bf12e681bad..7b8b286ab643 100644
--- a/core/java/android/appwidget/AppWidgetProviderInfo.java
+++ b/core/java/android/appwidget/AppWidgetProviderInfo.java
@@ -260,7 +260,7 @@ public class AppWidgetProviderInfo implements Parcelable {
that.minResizeWidth = this.minResizeHeight;
that.minResizeHeight = this.minResizeHeight;
that.updatePeriodMillis = this.updatePeriodMillis;
- that.initialLayout = that.initialLayout;
+ that.initialLayout = this.initialLayout;
that.initialKeyguardLayout = this.initialKeyguardLayout;
that.configure = this.configure == null ? null : this.configure.clone();
that.label = this.label == null ? null : this.label.substring(0);
diff --git a/core/java/android/view/accessibility/AccessibilityRecord.java b/core/java/android/view/accessibility/AccessibilityRecord.java
index 5c60a1262ff0..7147c57c8b0d 100644
--- a/core/java/android/view/accessibility/AccessibilityRecord.java
+++ b/core/java/android/view/accessibility/AccessibilityRecord.java
@@ -168,6 +168,17 @@ public class AccessibilityRecord {
}
/**
+ * Sets the window id.
+ *
+ * @param windowId The window id.
+ *
+ * @hide
+ */
+ public void setWindowId(int windowId) {
+ mSourceWindowId = windowId;
+ }
+
+ /**
* Gets the id of the window from which the event comes from.
*
* @return The window id.