diff options
| author | Donald Chai <dchai@google.com> | 2018-09-19 14:42:41 -0700 |
|---|---|---|
| committer | Donald Chai <dchai@google.com> | 2018-09-19 14:47:09 -0700 |
| commit | ee4c91c6a6ededd6383b4ec59ac1d91d80809080 (patch) | |
| tree | d27a601984701832a941f8424ccdeff72b49463a /core/java/android | |
| parent | 3b000ab033bececbd5e8b43235b0765dc414720d (diff) | |
Update Context documentation to indicate that KEYGUARD_SERVICE is
unavailable for Instant Apps.
Bug: 116021320
Bug: 67614964
Test: N/A
Change-Id: I94275ad51aec13acfe15ede3a5fb9a80aa57d977
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/Context.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 2ae3ae6f1f64..d88f6e3f9bd1 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -3167,11 +3167,11 @@ public abstract class Context { * * <p>Note: Instant apps, for which {@link PackageManager#isInstantApp()} returns true, * don't have access to the following system services: {@link #DEVICE_POLICY_SERVICE}, - * {@link #FINGERPRINT_SERVICE}, {@link #SHORTCUT_SERVICE}, {@link #USB_SERVICE}, - * {@link #WALLPAPER_SERVICE}, {@link #WIFI_P2P_SERVICE}, {@link #WIFI_SERVICE}, - * {@link #WIFI_AWARE_SERVICE}. For these services this method will return <code>null</code>. - * Generally, if you are running as an instant app you should always check whether the result - * of this method is null. + * {@link #FINGERPRINT_SERVICE}, {@link #KEYGUARD_SERVICE}, {@link #SHORTCUT_SERVICE}, + * {@link #USB_SERVICE}, {@link #WALLPAPER_SERVICE}, {@link #WIFI_P2P_SERVICE}, + * {@link #WIFI_SERVICE}, {@link #WIFI_AWARE_SERVICE}. For these services this method will + * return <code>null</code>. Generally, if you are running as an instant app you should always + * check whether the result of this method is null. * * @param name The name of the desired service. * @@ -3258,11 +3258,11 @@ public abstract class Context { * * <p>Note: Instant apps, for which {@link PackageManager#isInstantApp()} returns true, * don't have access to the following system services: {@link #DEVICE_POLICY_SERVICE}, - * {@link #FINGERPRINT_SERVICE}, {@link #SHORTCUT_SERVICE}, {@link #USB_SERVICE}, - * {@link #WALLPAPER_SERVICE}, {@link #WIFI_P2P_SERVICE}, {@link #WIFI_SERVICE}, - * {@link #WIFI_AWARE_SERVICE}. For these services this method will return <code>null</code>. - * Generally, if you are running as an instant app you should always check whether the result - * of this method is null. + * {@link #FINGERPRINT_SERVICE}, {@link #KEYGUARD_SERVICE}, {@link #SHORTCUT_SERVICE}, + * {@link #USB_SERVICE}, {@link #WALLPAPER_SERVICE}, {@link #WIFI_P2P_SERVICE}, + * {@link #WIFI_SERVICE}, {@link #WIFI_AWARE_SERVICE}. For these services this method will + * return <code>null</code>. Generally, if you are running as an instant app you should always + * check whether the result of this method is null. * * @param serviceClass The class of the desired service. * @return The service or null if the class is not a supported system service. |
