OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Video badging levels: @Deprecate and @remove" into oc-dev
Jeff Sharkey [Tue, 2 May 2017 00:44:47 +0000 (00:44 +0000)]
Merge "Video badging levels: @Deprecate and @remove" into oc-dev

7 years agoMerge "Hide FragmentContainer#instantiate for API 26" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:30:08 +0000 (23:30 +0000)]
Merge "Hide FragmentContainer#instantiate for API 26" into oc-dev

7 years agoMerge "Change protection level of companion permissions" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:22:06 +0000 (23:22 +0000)]
Merge "Change protection level of companion permissions" into oc-dev

7 years agoMerge "Add @TestApi annotation to AdaptiveIconDrawable" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:18:37 +0000 (23:18 +0000)]
Merge "Add @TestApi annotation to AdaptiveIconDrawable" into oc-dev

7 years agoMerge "Rename to follow API council guidance." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:15:54 +0000 (23:15 +0000)]
Merge "Rename to follow API council guidance." into oc-dev

7 years agoMerge "AOD: Increase shelf icon size while dark" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:11:49 +0000 (23:11 +0000)]
Merge "AOD: Increase shelf icon size while dark" into oc-dev

7 years agoMerge "AudioService: more AUDIO_BECOMING_NOISY intent fixes" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:52:13 +0000 (22:52 +0000)]
Merge "AudioService: more AUDIO_BECOMING_NOISY intent fixes" into oc-dev

7 years agoMerge "Addess API council comments" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:48:58 +0000 (22:48 +0000)]
Merge "Addess API council comments" into oc-dev

7 years agoVideo badging levels: @Deprecate and @remove
Joe LaPenna [Mon, 1 May 2017 16:46:01 +0000 (09:46 -0700)]
Video badging levels: @Deprecate and @remove

Video based badging is not going out in O. Hide video-terminology
constants.

Bug: 37687077
Test: make update-api;
Change-Id: Ibd3a732be11bcd0f6b1077943a34b77f7c971ee3

7 years agoMerge changes from topic 'LOHSapi' into oc-dev
Jeff Sharkey [Mon, 1 May 2017 22:35:01 +0000 (22:35 +0000)]
Merge changes from topic 'LOHSapi' into oc-dev

* changes:
  WifiManager: expose base LOHS apis
  WifiManager: update API for LOHS

7 years agoMerge "Do not unsnooze canceled notifications." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:23:42 +0000 (22:23 +0000)]
Merge "Do not unsnooze canceled notifications." into oc-dev

7 years agoMerge changes from topic 'aia_settings_overlay' into oc-dev
Chad Brubaker [Mon, 1 May 2017 22:12:47 +0000 (22:12 +0000)]
Merge changes from topic 'aia_settings_overlay' into oc-dev

* changes:
  Add overlay for Instant Apps Settings whitelists
  Revert "Allow Instant Apps to read Settings defined by apps"

7 years agoMerge "Set stack bounds to null instead of empty for fullscreen" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:11:34 +0000 (22:11 +0000)]
Merge "Set stack bounds to null instead of empty for fullscreen" into oc-dev

7 years agoMerge "Marking deprecated recommendation request code as @removed." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:05:23 +0000 (22:05 +0000)]
Merge "Marking deprecated recommendation request code as @removed." into oc-dev

7 years agoMerge "Add android.os.VintfRuntimeInfo" into oc-dev
Yifan Hong [Mon, 1 May 2017 22:02:15 +0000 (22:02 +0000)]
Merge "Add android.os.VintfRuntimeInfo" into oc-dev

7 years agoMerge "hotspot2: update method name for timestamp related APIs" into oc-dev
Jeff Sharkey [Mon, 1 May 2017 21:57:28 +0000 (21:57 +0000)]
Merge "hotspot2: update method name for timestamp related APIs" into oc-dev

7 years agoMerge "Make PrivateStorageInfo have a public constructor." into oc-dev
Daniel Nishi [Mon, 1 May 2017 21:40:17 +0000 (21:40 +0000)]
Merge "Make PrivateStorageInfo have a public constructor." into oc-dev

7 years agoHide FragmentContainer#instantiate for API 26
Adam Powell [Mon, 1 May 2017 21:23:03 +0000 (14:23 -0700)]
Hide FragmentContainer#instantiate for API 26

Bug 37638617

Change-Id: I065cd31d6ce987155669f72eff0e0d6d8a9430ab

Test: none; hiding API only

7 years agoChange protection level of companion permissions
Eugene Susla [Mon, 1 May 2017 21:25:52 +0000 (14:25 -0700)]
Change protection level of companion permissions

Fixes: 37721270
Test: Ensure co build errors
Change-Id: Ide6ce7c83f466ef6886b2aad0228176ae84314b2

7 years agoRename to follow API council guidance.
Jeff Sharkey [Mon, 1 May 2017 21:09:11 +0000 (15:09 -0600)]
Rename to follow API council guidance.

Test: builds, boots
Bug: 37422404
Change-Id: Idcec897e775f2613805a86209615e389b63bd78d

7 years agoAddess API council comments
Svetoslav Ganov [Mon, 1 May 2017 20:41:56 +0000 (13:41 -0700)]
Addess API council comments

Test: manual

bug:37322491

Change-Id: I2017e667c5452c7ef7c56ec19c594e685700b33a

7 years agoAll taps under max double tap timeout are quick taps
Matthew Ng [Sat, 29 Apr 2017 00:33:22 +0000 (17:33 -0700)]
All taps under max double tap timeout are quick taps

When tapping rapidly on the overview button on a recents grid device
(like tablets), users might tap very quickly that would have triggered a
elasped time under the min double tap time (40ms) which would cause the
button to not be a quick tap. Removing the check allows all taps under
the max double tap timeout to be a quick tap. Then quickly tapping the
overview button would not confuse alt-tab with resume same task
functionality.

Test: manual
Change-Id: I9161fd5b68c299dc794e538a4fd9021ae98c7e94
Fixes: 36886408

7 years agoAdd android.os.VintfRuntimeInfo
Yifan Hong [Wed, 26 Apr 2017 18:38:01 +0000 (11:38 -0700)]
Add android.os.VintfRuntimeInfo

This is the Java API for ::android::vintf::RuntimeInfo.
This will be used by CTS for device info report purposes.

Bug: 28656227
Test: cts-tradefed run cts -m CtsEdiHostTestCases --skip-preconditions
Change-Id: Id87c95a17e77d7ec1794a6f850de97edf9ae892d

7 years agoAudioService: more AUDIO_BECOMING_NOISY intent fixes
Eric Laurent [Sat, 29 Apr 2017 01:00:04 +0000 (18:00 -0700)]
AudioService: more AUDIO_BECOMING_NOISY intent fixes

Fix more race conditions
Ignore condition on removed device being actually used for
music when in call.

Bug: 37687852
Test: Verify AUDIO_BECOMING_NOISY intent is sent in more corner cases
Change-Id: I024aa3a4a68d84ac620289720caf3a32fb2985b1

7 years agoMerge "Audio focus: fix mapping of old requestAudioFocus to AudioFocusRequest" into...
Jean-Michel Trivi [Mon, 1 May 2017 19:50:38 +0000 (19:50 +0000)]
Merge "Audio focus: fix mapping of old requestAudioFocus to AudioFocusRequest" into oc-dev

7 years agoMerge "Fix accessibility button CTS test" into oc-dev
Casey Burkhardt [Mon, 1 May 2017 19:49:08 +0000 (19:49 +0000)]
Merge "Fix accessibility button CTS test" into oc-dev

7 years agoWifiManager: expose base LOHS apis
Rebecca Silberstein [Mon, 1 May 2017 19:45:45 +0000 (12:45 -0700)]
WifiManager: expose base LOHS apis

This CL exposes a minimal set of APIs to start LocalOnlyHotspot.  This
includes the call to start the hotspot along with the objects necessary
to get updates and unregister the hotspot request.

Bug: 31466854
Bug: 37073685
Test: make update-api
Test: make
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I5e9a6a842c0b9233ebf99317f61e0b36192d5be7

7 years agoAudio focus: fix mapping of old requestAudioFocus to AudioFocusRequest
Jean-Michel Trivi [Mon, 1 May 2017 19:33:40 +0000 (12:33 -0700)]
Audio focus: fix mapping of old requestAudioFocus to AudioFocusRequest

When translating a focus request from the N- API to AudioFocusRequest,
  do not do null checks for listener or handler, those are only
  for the AudioFocusRequest.Builder.

Test: use app built for N- and request focus, no crash
Bug 37855238

Change-Id: I675b3144e913ab674fe27f9f65ee7a7bea24a72c

7 years agoMerge "Move the last user save from onCleanupUser to onStopUser" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 19:31:16 +0000 (19:31 +0000)]
Merge "Move the last user save from onCleanupUser to onStopUser" into oc-dev

7 years agoMerge "Fix stupid bug." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 19:30:33 +0000 (19:30 +0000)]
Merge "Fix stupid bug." into oc-dev

7 years agoMerge "Fixed that snooze options were animating" into oc-dev
Selim Cinek [Mon, 1 May 2017 18:43:35 +0000 (18:43 +0000)]
Merge "Fixed that snooze options were animating" into oc-dev

7 years agoWifiManager: update API for LOHS
Rebecca Silberstein [Sun, 30 Apr 2017 21:05:00 +0000 (14:05 -0700)]
WifiManager: update API for LOHS

Add a return code for disallowed tethering for the user.  Also updated
call to startLocalOnlyHotspot in WifiServiceImpl to return a code
instead of a config.  This allows us to return different failure modes
to the application instead of assuming an incompatible mode error.

Also updated method name to retrieve the wifi config.

Bug: 37073685
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Iaa442f7062145dbfbdc8e26ae5479d14307addf8

7 years agoMerge "Updates based on API council guidance." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 18:36:18 +0000 (18:36 +0000)]
Merge "Updates based on API council guidance." into oc-dev

7 years agoMerge "Use newest scrap view in ListView" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 18:31:35 +0000 (18:31 +0000)]
Merge "Use newest scrap view in ListView" into oc-dev

7 years agoMerge "Rename restartOnConfigChanges to recreateOnConfigChanges." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 18:22:33 +0000 (18:22 +0000)]
Merge "Rename restartOnConfigChanges to recreateOnConfigChanges." into oc-dev

7 years agoMerge "Add parameter for accessing channels from 3rd-party TV apps." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 18:20:08 +0000 (18:20 +0000)]
Merge "Add parameter for accessing channels from 3rd-party TV apps." into oc-dev

7 years agoMerge "Ensure that the action views are always updated." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:56:08 +0000 (17:56 +0000)]
Merge "Ensure that the action views are always updated." into oc-dev

7 years agoFix stupid bug.
Dianne Hackborn [Mon, 1 May 2017 17:54:07 +0000 (10:54 -0700)]
Fix stupid bug.

Test: manual

Change-Id: I1e3bd86eb3e000111721bad82bebdfb491c2e5de

7 years agoMerge "Change String to CharSequence in #loadSummary." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:52:22 +0000 (17:52 +0000)]
Merge "Change String to CharSequence in #loadSummary." into oc-dev

7 years agoMerge "Fix issue with double tapping PiP" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:50:37 +0000 (17:50 +0000)]
Merge "Fix issue with double tapping PiP" into oc-dev

7 years agoMerge "Removing unnecessary asset." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:48:24 +0000 (17:48 +0000)]
Merge "Removing unnecessary asset." into oc-dev

7 years agoMerge "Increase max system_server hwbinder threadpool to 5." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:47:00 +0000 (17:47 +0000)]
Merge "Increase max system_server hwbinder threadpool to 5." into oc-dev

7 years agoMarking deprecated recommendation request code as @removed.
Jeremy Joslin [Mon, 1 May 2017 17:02:25 +0000 (10:02 -0700)]
Marking deprecated recommendation request code as @removed.

Test: adb shell am instrument -e class android.net.NetworkRecommendationProviderTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: Built & ran
Bug: 37357264
Change-Id: I6d55fbad87b11c99e7ddac07cfaa82efeee33187

7 years agoMerge "Move ColorSpace#Renderer tests to APCT" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:23:50 +0000 (17:23 +0000)]
Merge "Move ColorSpace#Renderer tests to APCT" into oc-dev

7 years agoMerge "Change MANAGE_OWN_CALLS permission to be a "normal" permission." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:19:26 +0000 (17:19 +0000)]
Merge "Change MANAGE_OWN_CALLS permission to be a "normal" permission." into oc-dev

7 years agoMove the last user save from onCleanupUser to onStopUser
Makoto Onuki [Fri, 28 Apr 2017 19:24:16 +0000 (12:24 -0700)]
Move the last user save from onCleanupUser to onStopUser

Bug: 37780857

Test: manual test with work profile

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
Change-Id: I8b053c6a55df374a89ab85d76b9d36abf639f649

7 years agoMerge "Added dialog to notify user of thermal shutdown" into oc-dev
Salvador Martinez [Mon, 1 May 2017 16:45:25 +0000 (16:45 +0000)]
Merge "Added dialog to notify user of thermal shutdown" into oc-dev

7 years agoMerge "Removing ACTION_CLEAR_PACKAGE intent" into oc-dev
Matthew Snider [Mon, 1 May 2017 16:42:19 +0000 (16:42 +0000)]
Merge "Removing ACTION_CLEAR_PACKAGE intent" into oc-dev

7 years agohotspot2: update method name for timestamp related APIs
Peter Qiu [Mon, 1 May 2017 16:41:14 +0000 (09:41 -0700)]
hotspot2: update method name for timestamp related APIs

Bug: 37514629
Test: build
Change-Id: Iadd8b7a9ea98bc01f796a261293f87173ba1d52f

7 years agoMerge "Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED, ACTION_DEFAULT_SUBSCRIPT...
Jeff Sharkey [Mon, 1 May 2017 16:05:26 +0000 (16:05 +0000)]
Merge "Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED, ACTION_DEFAULT_SUBSCRIPTION_CHANGED and EXTRA_SUBSCRIPTION_INDEX from Intent class to SubscriptionManager class." into oc-dev

7 years agoRemoving unnecessary asset.
Winson Chung [Fri, 28 Apr 2017 20:07:46 +0000 (13:07 -0700)]
Removing unnecessary asset.

Bug: 37743450
Test: None, just removing asset
Change-Id: Icbf8c2fd08b3f0ad52ced3dcd8766cd9d055d5fb

7 years agoMerge "Change android.permission.RESTRICTED_VR_ACCESS to SystemAPI" into oc-dev
Jeff Sharkey [Mon, 1 May 2017 15:37:12 +0000 (15:37 +0000)]
Merge "Change android.permission.RESTRICTED_VR_ACCESS to SystemAPI" into oc-dev

7 years agoRename restartOnConfigChanges to recreateOnConfigChanges.
Holly Jiuyu Sun [Fri, 28 Apr 2017 22:34:44 +0000 (15:34 -0700)]
Rename restartOnConfigChanges to recreateOnConfigChanges.

Bug: 37738136
Test: unit test
Change-Id: Icea9faf1d7f55b875d6ff9e4cc9aed4868637895

7 years agoDo not unsnooze canceled notifications.
Julia Reynolds [Tue, 7 Mar 2017 21:30:21 +0000 (16:30 -0500)]
Do not unsnooze canceled notifications.

Test: runtest systemui-notification
Change-Id: I3edef5822aa74359bf3a34f54f59d4021696365d

7 years agoMerge "Fix flaky test?" into oc-dev
Jason Monk [Mon, 1 May 2017 13:23:17 +0000 (13:23 +0000)]
Merge "Fix flaky test?" into oc-dev

7 years agoMerge "AudioFocusRequest: more docs, listener without handler" into oc-dev
Jean-Michel Trivi [Mon, 1 May 2017 06:33:01 +0000 (06:33 +0000)]
Merge "AudioFocusRequest: more docs, listener without handler" into oc-dev

7 years agoChange android.permission.RESTRICTED_VR_ACCESS to SystemAPI
Karthik Ravi Shankar [Fri, 28 Apr 2017 18:21:04 +0000 (11:21 -0700)]
Change android.permission.RESTRICTED_VR_ACCESS to SystemAPI

android.permission.RESTRICTED_VR_ACCESS is currently an open API. But
since it can only be used by System Apps because of it's protection
level which is "signature|preinstalled". Change this to a @SystemApi.

Bug: 37724255
Test: run gts --module GtsPermissionTestCases
1. Run with two apps having android.permission.RESTRICTED_VR_ACCESS
   before change -- fails.
2. Run with two appshaving android.permission.RESTRICTED_VR_ACCESS
   after this change -- passes.

Change-Id: I9e640b0794fa16d03ba22e8aa75175e7e08dd88b
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
7 years agoAudioFocusRequest: more docs, listener without handler
Jean-Michel Trivi [Mon, 1 May 2017 01:49:36 +0000 (18:49 -0700)]
AudioFocusRequest: more docs, listener without handler

Focus listener: follow platform pattern for setter of listener
  and handler (set(listener) and set(listener, handler) methods).
More docs.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioFocusTest
Bug: 30258418

Change-Id: Ib5d1fbc3cf92821b63ffc1b4ad4cf4384bb6ff54

7 years agoMerge "Revert "WifiManager: expose Local Only Hotspot APIs"" into oc-dev
Rebecca Silberstein [Sun, 30 Apr 2017 21:54:43 +0000 (21:54 +0000)]
Merge "Revert "WifiManager: expose Local Only Hotspot APIs"" into oc-dev

7 years agoRevert "WifiManager: expose Local Only Hotspot APIs"
Rebecca Silberstein [Sun, 30 Apr 2017 20:02:59 +0000 (20:02 +0000)]
Revert "WifiManager: expose Local Only Hotspot APIs"

This reverts commit ec18f81e5b8bc4e4486b00f37e68cff4ff9131eb.

Reverting the CL to expose the APIs so we have more time for testing
and ironing out the API.

Bug: 31466854
Bug: 37073685
Test: make update-api
Test: make
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I17d4e3e32e28dbbb08ba99c266a9b74044e6001d

7 years agoMerge changes I8d149ab0,Ia0a52819,If54a89cb,I20faa733,Ib32dfd23 into oc-dev
Rebecca Silberstein [Sun, 30 Apr 2017 18:30:43 +0000 (18:30 +0000)]
Merge changes I8d149ab0,Ia0a52819,If54a89cb,I20faa733,Ib32dfd23 into oc-dev

* changes:
  WifiManager: expose Local Only Hotspot APIs
  WifiManager: implement watch LocalOnlyHotspot
  WifiManager: implement start/stopLocalOnlyHotspot
  WifiManager: add LocalOnlyHotspotObserverProxy
  WifiManager: add LocalOnlyHotspotCallbackProxy

7 years agoMerge "Work on issue #36891897: Need to ensure foreground services can't..." into...
Dianne Hackborn [Sun, 30 Apr 2017 17:19:29 +0000 (17:19 +0000)]
Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev

7 years agoMerge "TextClassifier: API rename" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 17:15:44 +0000 (17:15 +0000)]
Merge "TextClassifier: API rename" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 16:08:30 +0000 (16:08 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "AAPT2: Fix typo in manifest validation expectation" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 14:31:12 +0000 (14:31 +0000)]
Merge "AAPT2: Fix typo in manifest validation expectation" into oc-dev

7 years agoMerge "Rename persistentFeature to persistentWhenFeatureAvailable." into oc-dev
Martijn Coenen [Sun, 30 Apr 2017 13:47:06 +0000 (13:47 +0000)]
Merge "Rename persistentFeature to persistentWhenFeatureAvailable." into oc-dev

7 years agoMerge "WifiManager: add APIs for LOHS" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:43:19 +0000 (09:43 +0000)]
Merge "WifiManager: add APIs for LOHS" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:40:24 +0000 (09:40 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:35:07 +0000 (09:35 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:31:52 +0000 (09:31 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:28:47 +0000 (09:28 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:24:26 +0000 (09:24 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:23:33 +0000 (09:23 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:17:43 +0000 (09:17 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 09:16:27 +0000 (09:16 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoWifiManager: expose Local Only Hotspot APIs
Rebecca Silberstein [Fri, 28 Apr 2017 20:28:12 +0000 (13:28 -0700)]
WifiManager: expose Local Only Hotspot APIs

Expose the APIs to start and stop LocalOnlyHotspot.

Bug: 31466854
Bug: 37073685
Test: make update-api
Test: make
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I8d149ab04d24bf0eb54dd8d8a62e285f9c5b483e

7 years agoWifiManager: implement watch LocalOnlyHotspot
Rebecca Silberstein [Thu, 27 Apr 2017 20:57:19 +0000 (13:57 -0700)]
WifiManager: implement watch LocalOnlyHotspot

Implement new calls to watchLocalOnlyHotspot and
unregisterLocalOnlyHotspotObserver along with the classes
LocalOnlyHotspotObserver and LocalOnlyHotspotSubscription.

Added tests for watching LOHS and cancelling a LOHS subscription.

The calls will be exposed in a later CL.

Bug: 36704763
Test: compiles
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ia0a528191ae0897742304d8b61e9779ad721a450

7 years agoWifiManager: implement start/stopLocalOnlyHotspot
Rebecca Silberstein [Sat, 25 Mar 2017 19:40:29 +0000 (12:40 -0700)]
WifiManager: implement start/stopLocalOnlyHotspot

Implement new calls to startLocalOnlyHotspot and
cancelLocalOnlyHotspotRequest along with the classes
LocalOnlyHotspotCallback and LocalOnlyHotspotReservation.

Added tests for starting LOHS and cancelling a LOHS request.

The calls will be exposed in a later CL.

Bug: 36704763
Test: compiles
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: If54a89cb8dfd235bc18ef3e6c89f9d30882136a3

7 years agoWifiManager: add LocalOnlyHotspotObserverProxy
Rebecca Silberstein [Thu, 27 Apr 2017 05:02:30 +0000 (22:02 -0700)]
WifiManager: add LocalOnlyHotspotObserverProxy

Add the proxy for LOHS observer callbacks to make sure we give updates
to calling apps on the correct thread.

This will be used in a follow-on CL.

Bug: 36704763
Test: mmma -j64 frameworks/base/
Change-Id: I20faa73325116426f45d9d8fabc45b279bd5a286

7 years agoWifiManager: add LocalOnlyHotspotCallbackProxy
Rebecca Silberstein [Thu, 27 Apr 2017 04:50:04 +0000 (21:50 -0700)]
WifiManager: add LocalOnlyHotspotCallbackProxy

Add the proxy for LOHS callbacks to make sure we give updates to calling
apps on the correct thread.

This will be used in a follow-on CL.

Bug: 36704763
Test: mmma -j64 frameworks/base/
Change-Id: Ib32dfd232ff8aaeb5f7b228cf0cfc3fd23fd7ee4

7 years agoWifiManager: add APIs for LOHS
Rebecca Silberstein [Wed, 26 Apr 2017 23:11:52 +0000 (16:11 -0700)]
WifiManager: add APIs for LOHS

Add the APIs and docs for LocalOnlyHotspot (LOHS).  The calls are
not implemented with this CL.

Bug: 36704763
Bug: 37073685
Test: make
Change-Id: Ib7ab287a65091f54abef56feebb4cccd1e15a173

7 years agoMerge "Restricted Context layout font loading in TextView" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 06:50:36 +0000 (06:50 +0000)]
Merge "Restricted Context layout font loading in TextView" into oc-dev

7 years agoMerge "Address API council comments" into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 06:43:07 +0000 (06:43 +0000)]
Merge "Address API council comments" into oc-dev

7 years agoMerge "Don't show unset values in AccessPoint toString." into oc-dev
TreeHugger Robot [Sun, 30 Apr 2017 04:53:13 +0000 (04:53 +0000)]
Merge "Don't show unset values in AccessPoint toString." into oc-dev

7 years agoMerge "Use ConnectivityService's NETWORK_STACK permission for SoftAp operations"...
TreeHugger Robot [Sun, 30 Apr 2017 04:32:35 +0000 (04:32 +0000)]
Merge "Use ConnectivityService's NETWORK_STACK permission for SoftAp operations" into oc-dev

7 years agoWork on issue #36891897: Need to ensure foreground services can't...
Dianne Hackborn [Wed, 26 Apr 2017 20:59:47 +0000 (13:59 -0700)]
Work on issue #36891897: Need to ensure foreground services can't...

...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958

7 years agoTextClassifier: API rename
Abodunrinwa Toki [Fri, 28 Apr 2017 18:59:57 +0000 (19:59 +0100)]
TextClassifier: API rename

 getTextClassificationResult() -> classifyText()
 TextClassificationResult -> TextClassification

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37769880
Change-Id: I2d926e89058babf06bcff390bee3a45e965984e8

7 years agoMerge "Fixed an issue where notifications wouldn't have a channel" into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 23:09:36 +0000 (23:09 +0000)]
Merge "Fixed an issue where notifications wouldn't have a channel" into oc-dev

7 years agoMerge "Fixing test due to null PiP default bounds." into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 22:36:56 +0000 (22:36 +0000)]
Merge "Fixing test due to null PiP default bounds." into oc-dev

7 years agoMerge "Fixed the hasCarrierFrequency flag in GnssStatus (part1)" into oc-dev
Yipeng Cao [Sat, 29 Apr 2017 22:34:55 +0000 (22:34 +0000)]
Merge "Fixed the hasCarrierFrequency flag in GnssStatus (part1)" into oc-dev

7 years agoMerge "AAPT2: binary parser should be more lenient with files" into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 21:39:26 +0000 (21:39 +0000)]
Merge "AAPT2: binary parser should be more lenient with files" into oc-dev

7 years agoMerge "AAPT2: Fix string escaping" into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 21:04:34 +0000 (21:04 +0000)]
Merge "AAPT2: Fix string escaping" into oc-dev

7 years agoMerge changes I446fb6ab,Ife3bbd29 into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 20:38:15 +0000 (20:38 +0000)]
Merge changes I446fb6ab,Ife3bbd29 into oc-dev

* changes:
  Valid resource IDs may be negative
  AAPT2: Workaround for findViewById with package ID > 0x7f

7 years agoMerge "Add managed profile whitelist to control NotificationListenerServices" into...
TreeHugger Robot [Sat, 29 Apr 2017 19:49:31 +0000 (19:49 +0000)]
Merge "Add managed profile whitelist to control NotificationListenerServices" into oc-dev

7 years agoUpdates based on API council guidance.
Jeff Sharkey [Sat, 29 Apr 2017 19:13:27 +0000 (13:13 -0600)]
Updates based on API council guidance.

Test: builds, boots
Change-Id: I223faf55c1e1b4d81d11b4c8b2d93ccd131c969b
Fixes: 37775662
Fixes: 37748635
Fixes: 37673408
Fixes: 37672564
Fixes: 37672218
Fixes: 37638323
Fixes: 37637423

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 29 Apr 2017 18:16:11 +0000 (11:16 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie2537dfd9a1079cb527dbb306f6d62c32a4094fd
Auto-generated-cl: translation import

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 29 Apr 2017 18:14:53 +0000 (18:14 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 29 Apr 2017 18:11:22 +0000 (11:11 -0700)]
Import translations. DO NOT MERGE

Change-Id: I9a097c492fa434b7b78a62bf639c262154fcdd52
Auto-generated-cl: translation import

7 years agoMerge "Revert "Treat Telephony as legacy app for now."" into oc-dev
Jeff Sharkey [Sat, 29 Apr 2017 17:38:53 +0000 (17:38 +0000)]
Merge "Revert "Treat Telephony as legacy app for now."" into oc-dev

7 years agoMerge "Experimental features only on debuggable builds." into oc-dev
Jeff Sharkey [Sat, 29 Apr 2017 17:33:54 +0000 (17:33 +0000)]
Merge "Experimental features only on debuggable builds." into oc-dev