OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Enhance PinItemRequest javadoc" into oc-dev
Makoto Onuki [Mon, 17 Apr 2017 20:50:38 +0000 (20:50 +0000)]
Merge "Enhance PinItemRequest javadoc" into oc-dev

7 years agoMerge "Allow to finish session when all views are gone" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:44:57 +0000 (20:44 +0000)]
Merge "Allow to finish session when all views are gone" into oc-dev

7 years agoMerge "AOD: disable quicksettings while dozing" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:41:02 +0000 (20:41 +0000)]
Merge "AOD: disable quicksettings while dozing" into oc-dev

7 years agoMerge "Update api for ServiceStateProvider" into oc-dev
Jordan Liu [Mon, 17 Apr 2017 20:37:25 +0000 (20:37 +0000)]
Merge "Update api for ServiceStateProvider" into oc-dev

7 years agoMerge "getApplicationInfo() should throw NameNotFoundException" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:35:55 +0000 (20:35 +0000)]
Merge "getApplicationInfo() should throw NameNotFoundException" into oc-dev

7 years agoMerge "Enhance Chronometer to better support Swedish countdowns." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:15:16 +0000 (20:15 +0000)]
Merge "Enhance Chronometer to better support Swedish countdowns." into oc-dev

7 years agoMerge "Camera: Override enableZsl based on SDK version" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 19:49:07 +0000 (19:49 +0000)]
Merge "Camera: Override enableZsl based on SDK version" into oc-dev

7 years agoMerge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 19:02:58 +0000 (19:02 +0000)]
Merge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev

7 years agoMerge "ContextHubService: Pass on query requests" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:51:43 +0000 (18:51 +0000)]
Merge "ContextHubService: Pass on query requests" into oc-dev

7 years agoMerge changes I22b55b73,Id050f2f5 into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:51:01 +0000 (18:51 +0000)]
Merge changes I22b55b73,Id050f2f5 into oc-dev

* changes:
  Only foreground service notifications can be colorized
  Fixed a regression where the scrim would be black

7 years agoMerge "AOD: Fix icon color when updating on AOD" into oc-dev
Adrian Roos [Mon, 17 Apr 2017 18:48:37 +0000 (18:48 +0000)]
Merge "AOD: Fix icon color when updating on AOD" into oc-dev

7 years agoMerge "Fix issue #35811414: Allow manifest receivers for ACTION_UID_REMOVED" into...
TreeHugger Robot [Mon, 17 Apr 2017 18:38:57 +0000 (18:38 +0000)]
Merge "Fix issue #35811414: Allow manifest receivers for ACTION_UID_REMOVED" into oc-dev

7 years agoAOD: disable quicksettings while dozing
Adrian Roos [Mon, 17 Apr 2017 18:38:16 +0000 (11:38 -0700)]
AOD: disable quicksettings while dozing

Test: Trigger ambient display / AOD, verify quicksettings is not expandable
Bug: 37303800
Change-Id: I694360f4d728ff9714036d0b92176c922ff53e9a

7 years agoMerge "Remove FrameLayout around toolbar" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:25:48 +0000 (18:25 +0000)]
Merge "Remove FrameLayout around toolbar" into oc-dev

7 years agoMerge "Properly decode colors spaces in BitmapRegionDecoder" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:20:10 +0000 (18:20 +0000)]
Merge "Properly decode colors spaces in BitmapRegionDecoder" into oc-dev

7 years agoUpdate api for ServiceStateProvider
Jordan Liu [Wed, 1 Mar 2017 02:15:07 +0000 (18:15 -0800)]
Update api for ServiceStateProvider

ServiceStateProvider defines public constants in
Telephony.ServiceStateTable so update the api.

Test: flashed onto device locally
Bug: 33756364
Change-Id: I62b6b8bcfdf909aa36e44441f8672f98f581f896
Merged-In: I62b6b8bcfdf909aa36e44441f8672f98f581f896

7 years agoMerge "TV PIP: Remove onboarding activity and overlay activity" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 17:53:15 +0000 (17:53 +0000)]
Merge "TV PIP: Remove onboarding activity and overlay activity" into oc-dev

7 years agoMerge "DO NOT MERGE Expose phone account register/unregister intents." into oc-dev
Tyler Gunn [Mon, 17 Apr 2017 17:40:44 +0000 (17:40 +0000)]
Merge "DO NOT MERGE Expose phone account register/unregister intents." into oc-dev

7 years agoDO NOT MERGE Expose phone account register/unregister intents.
Tyler Gunn [Fri, 14 Apr 2017 20:43:30 +0000 (13:43 -0700)]
DO NOT MERGE Expose phone account register/unregister intents.

These were previously @SystemApi.  Retaining the existing SystemAPI
behavior which sends the intents to those with a private permission.
Extending to ALSO send these intents to the default dialer app as well
using an explicit intent.
Cherry-pick from aosp-master to resolve merge conflicts.

Test: Manual
Bug: 37106957
Merged-In: Ifb72870105be5ba024af196a8c3165a9afb397ab
Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab
(cherry picked from commit d9da6ce9938b4222cfb409f172cacfe4cf1593e6)

7 years agoMerge "Don't back up disabled apps" into oc-dev
Chris Tate [Mon, 17 Apr 2017 17:35:46 +0000 (17:35 +0000)]
Merge "Don't back up disabled apps" into oc-dev

7 years agoMerge "Fix EmergencyCryptKeeperText initialization" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 17:28:33 +0000 (17:28 +0000)]
Merge "Fix EmergencyCryptKeeperText initialization" into oc-dev

7 years agoMerge "media: Address API review comments" into oc-dev
Hangyu Kuang [Mon, 17 Apr 2017 17:04:17 +0000 (17:04 +0000)]
Merge "media: Address API review comments" into oc-dev

7 years agoMerge "Temporary remove resource-display caching" into oc-dev
Andrii Kulian [Mon, 17 Apr 2017 16:59:56 +0000 (16:59 +0000)]
Merge "Temporary remove resource-display caching" into oc-dev

7 years agoMerge "Don't allow stacks above pinned stack." into oc-dev
Bryce Lee [Mon, 17 Apr 2017 16:57:11 +0000 (16:57 +0000)]
Merge "Don't allow stacks above pinned stack." into oc-dev

7 years agoTemporary remove resource-display caching
Andrii Kulian [Mon, 17 Apr 2017 02:28:02 +0000 (19:28 -0700)]
Temporary remove resource-display caching

An instance of ResourceKey may correspond to different instances
of Resources at different points in time. This can lead to old
instances of Display returned from cache even if resources have
changed.
We need to ensure 1:1 correspondence between Resources and
ResourceKey before using this kind of cache. Disabling it for now
to fix CTS.

Change-Id: Ib53550c4f2d969c06a570ab6051529269b04b38d
Fixes: 37328072
Fixes: 37305567
Bug: 33430498
Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: android.app.cts.DisplayTest#testRotation

7 years agoMerge "Synchronously update APs in during forceUpdate." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 16:34:49 +0000 (16:34 +0000)]
Merge "Synchronously update APs in during forceUpdate." into oc-dev

7 years agoRemove FrameLayout around toolbar
Fan Zhang [Fri, 14 Apr 2017 19:27:18 +0000 (12:27 -0700)]
Remove FrameLayout around toolbar

The FrameLayout is useless, and cause problems if dev needs to customize
actionbar in code.

Change-Id: Iae6861e1e60576f4b4e175d01c7cd57c0775ecd7
Fix: 37207527
Test: visual

7 years agoEnhance Chronometer to better support Swedish countdowns.
Aurimas Liutikas [Fri, 14 Apr 2017 21:51:59 +0000 (14:51 -0700)]
Enhance Chronometer to better support Swedish countdowns.

Adds a method isTheFinalCountDown that allows to correctly
determine whether it is the final countdown.

Test: None
Change-Id: I786ae3455479bac25ccf25efba1c3dce18185117

7 years agoMerge "Also use the notification's sound for the misc channel" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 16:23:49 +0000 (16:23 +0000)]
Merge "Also use the notification's sound for the misc channel" into oc-dev

7 years agoFix EmergencyCryptKeeperText initialization
Yoshinori Hirano [Mon, 10 Apr 2017 11:33:49 +0000 (20:33 +0900)]
Fix EmergencyCryptKeeperText initialization

Moved the initialization to CollapsedStatusBarFragment
because EmergencyCryptKepperText is included in status_bar.xml

Bug: 37198942
Test: visual

Change-Id: I1b87e4857cea7f7b582f7e0f6062b70da98df13a

7 years agoMerge "Remove @removed method" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 15:01:46 +0000 (15:01 +0000)]
Merge "Remove @removed method" into oc-dev

7 years agoAlso use the notification's sound for the misc channel
Julia Reynolds [Mon, 17 Apr 2017 14:31:03 +0000 (10:31 -0400)]
Also use the notification's sound for the misc channel

Even if it's nonexistent.

Test: runtest systemui-notification
Change-Id: I1167fdf10b776460de696657dd49ab6f2be85753
Fixes: 37414045

7 years agoMerge "expose the instant app installer component" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 14:17:20 +0000 (14:17 +0000)]
Merge "expose the instant app installer component" into oc-dev

7 years agoTV PIP: Remove onboarding activity and overlay activity
Jaewan Kim [Fri, 14 Apr 2017 06:26:20 +0000 (15:26 +0900)]
TV PIP: Remove onboarding activity and overlay activity

Remove both activities until the new OC UX spec is finalized.

Bug: 36370535
Test: Manual test (Checked that onboarding nor overlay activities aren't
    shown after the FDR)
Change-Id: I97c4b2038aabf4f00cac957af6b79dcd874000ae

7 years agoMerge "MediaSessionService: Cache active sessions per an user" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 07:20:54 +0000 (07:20 +0000)]
Merge "MediaSessionService: Cache active sessions per an user" into oc-dev

7 years agoMerge changes I76ae853c,If94102c7 into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 05:11:14 +0000 (05:11 +0000)]
Merge changes I76ae853c,If94102c7 into oc-dev

* changes:
  Ignore potential SystemProperties errors when setting net.dns
  Make ConnectivityServiceTest pass on wifi-only devices.

7 years agoAllow to finish session when all views are gone
Philip P. Moltmann [Tue, 11 Apr 2017 17:13:33 +0000 (10:13 -0700)]
Allow to finish session when all views are gone

An service can option to finish the session once all views that it
declared as important. Views that are important are all autofillable
views of any partition and the saveable fields of the last partition.

Test: CtsAutoFillServiceTestCases
Fixes: 35708237
Change-Id: I0ccade8ebb427e5d8928697ef0007c75d3f83df0

7 years agoUse vsync choreographer when moving PIP.
Winson Chung [Wed, 5 Apr 2017 21:17:08 +0000 (14:17 -0700)]
Use vsync choreographer when moving PIP.

Bug: 36371375
Test: Enter PIP, move PIP
Change-Id: I5956a3ed9e92a4cdd4bf0a55723b9f1574c1a86f

7 years agoFix issue #35811414: Allow manifest receivers for ACTION_UID_REMOVED
Dianne Hackborn [Fri, 14 Apr 2017 23:58:30 +0000 (16:58 -0700)]
Fix issue #35811414: Allow manifest receivers for ACTION_UID_REMOVED

Test: booted and ran.
Change-Id: Id972da711188177ca3ac38a22efa04c5901e7d47
Merged-In: Id972da711188177ca3ac38a22efa04c5901e7d47

7 years agoProperly decode colors spaces in BitmapRegionDecoder
Romain Guy [Sun, 16 Apr 2017 04:41:22 +0000 (21:41 -0700)]
Properly decode colors spaces in BitmapRegionDecoder

Reusing a bitmap with BitmapRegionDecoder would preserve the
previous color space. This change also tweaks color space
matching to make sure we pick Display P3 with parameter d=0.039
or d=0.04045

Bug: 36905374
Test: CtsGraphicsTestCases
Change-Id: I4d2d66e5babebb0b5ce5cbdc7e8244177b4b7f9c

7 years agoMerge "Add a default SSID prefix for local only hotspot" into oc-dev
Rebecca Silberstein [Sat, 15 Apr 2017 20:37:32 +0000 (20:37 +0000)]
Merge "Add a default SSID prefix for local only hotspot" into oc-dev

7 years agoMerge "Rework getMetrics() api per API council" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 18:52:01 +0000 (18:52 +0000)]
Merge "Rework getMetrics() api per API council" into oc-dev

7 years agoMerge "Update for removing mount arg to VintfObject::CheckCompatibility" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 10:01:21 +0000 (10:01 +0000)]
Merge "Update for removing mount arg to VintfObject::CheckCompatibility" into oc-dev

7 years agoMerge "Remove ScoredNetwork.BADGING constants." into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 09:04:30 +0000 (09:04 +0000)]
Merge "Remove ScoredNetwork.BADGING constants." into oc-dev

7 years agoMerge "Keyguard should authenticate with FP even after getting valid FP" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 07:05:44 +0000 (07:05 +0000)]
Merge "Keyguard should authenticate with FP even after getting valid FP" into oc-dev

7 years agoMerge "Wallpaper color extraction API stub" into oc-dev
Jorim Jaggi [Sat, 15 Apr 2017 04:52:20 +0000 (04:52 +0000)]
Merge "Wallpaper color extraction API stub" into oc-dev

7 years agoMerge "API for notification listener for Companioon apps" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 04:15:34 +0000 (04:15 +0000)]
Merge "API for notification listener for Companioon apps" into oc-dev

7 years agoMerge "Add support for multiple fill contexts" into oc-dev
Svetoslav Ganov [Sat, 15 Apr 2017 03:29:08 +0000 (03:29 +0000)]
Merge "Add support for multiple fill contexts" into oc-dev

7 years agoMerge changes from topics 'network_specifier', 'networkspecifier' into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 02:16:10 +0000 (02:16 +0000)]
Merge changes from topics 'network_specifier', 'networkspecifier' into oc-dev

* changes:
  [CM] Unhide the NetworkSpecifier as object API
  Make the NetworkSpecifier a class instead of a string.
  Add test coverage for NetworkSpecifiers.

7 years agoAPI for notification listener for Companioon apps
Eugene Susla [Mon, 10 Apr 2017 18:51:58 +0000 (11:51 -0700)]
API for notification listener for Companioon apps

Test: 1. Trigger the confitrmation dialog.
Ensure it looks exactly like the one from settings.
2. Call an API without associating the appa first
Ensure exception is thrown with a message mentioning the need to associate 1st
Change-Id: I94d4116e1988db869ed445ae3fd018c50590e3f4

7 years agoMerge "AOD: Prolong AOD2 after interaction, turn off AOD when prox covered" into...
Adrian Roos [Sat, 15 Apr 2017 01:48:25 +0000 (01:48 +0000)]
Merge "AOD: Prolong AOD2 after interaction, turn off AOD when prox covered" into oc-dev

7 years agoMerge "Support flagNoPersonalizedLearning in layout XML" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 01:44:30 +0000 (01:44 +0000)]
Merge "Support flagNoPersonalizedLearning in layout XML" into oc-dev

7 years agoMerge "BLE scan API using PendingIntent" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 01:34:03 +0000 (01:34 +0000)]
Merge "BLE scan API using PendingIntent" into oc-dev

7 years agoWallpaper color extraction API stub
Lucas Dupin [Sat, 15 Apr 2017 01:33:08 +0000 (18:33 -0700)]
Wallpaper color extraction API stub

Now it's possible to listen to changes on wallpaper colors by
registering a listener on WallpaperManager. It's also possible
to get the current wallpaper text color hints.

Bug: 36856508
Test: compilation
Change-Id: I5102cb7be9a4af60b85fc8913154a79dfe5c21a0

7 years agoMerge "Reduce effect on PipMenuActivity during animation" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 01:18:31 +0000 (01:18 +0000)]
Merge "Reduce effect on PipMenuActivity during animation" into oc-dev

7 years agoDon't back up disabled apps
Christopher Tate [Sat, 15 Apr 2017 01:08:23 +0000 (18:08 -0700)]
Don't back up disabled apps

Bug 37150882
Test: manual

Change-Id: I9d8e34de880727325206f4d173a03f1fca4613a4

7 years agoMerge "Introduce a new JobServiceEngine class." into oc-dev
Dianne Hackborn [Sat, 15 Apr 2017 00:55:50 +0000 (00:55 +0000)]
Merge "Introduce a new JobServiceEngine class." into oc-dev

7 years agoMerge "Remove autofillMode attribute" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 00:50:45 +0000 (00:50 +0000)]
Merge "Remove autofillMode attribute" into oc-dev

7 years agoRemove ScoredNetwork.BADGING constants.
Stephen Chen [Wed, 29 Mar 2017 22:51:42 +0000 (15:51 -0700)]
Remove ScoredNetwork.BADGING constants.

Bug: 35323372
Bug: 35114358
Test: make,  runtest --path
frameworks/base/core/tests/coretests/src/android/net/ScoredNetworkTest.java

Change-Id: I9640e374abe428235d94e0407d9d21f390550d2f

7 years agoMake NETWORK_RECOMMENDATIONS_ENABLED hidden.
Joe LaPenna [Tue, 14 Mar 2017 17:59:31 +0000 (10:59 -0700)]
Make NETWORK_RECOMMENDATIONS_ENABLED hidden.

This value is necessary to easily look up the availability of a
recommendation (nee, scoring) provider; however it is only used by
bundled apps to monitor its availability, so hide the setting itself.

Test: make update-api; make; flashall
Bug: 34715823

Change-Id: Idf4591fd03d90207ef525f584793db65a1f6597c

7 years agoAdd support for multiple fill contexts
Svet Ganov [Fri, 14 Apr 2017 04:56:16 +0000 (21:56 -0700)]
Add support for multiple fill contexts

When saving data filled by the user the platform provides to
an autofill provider the state of the UI allowing the provider
to interpret this state and store relevant information.

A limitation of the current design is that the fill provider
needs to interpret the screen content twice, once handling a
fill request and once handling a save request. To address this
we are introducing a id for each fill request allowing the
autofill provider to associate arbitrary state with each fill
request and store it in the client data bundle later passed
to save.

Another limitation of the current design is that if the screen
changes dynamically while the user interacts with the app the
UI state passed on save represents a static snapshot, therefore
it is not possible to the autofill provider to determine the
context in which the data in the UI was filled. We could
keep the views and have deltas for views being removed/added
/moved/changed but this is not enough as the fill provider
needs to know not only what changed but what changed for every
fill request and in one session there could be multiple fill
requests. To address this we provide a list of fill contexts
on save each of which has the id of the corresponding fill
request. This allows the fill provider to know the exact context
in which the data was popuplated and also use its custom client
state for this fill request if desired.

This change deprecates the old APIs and the new ones delegate
to the old ones. Once the clients migrate to the new APIs we
will remove the old ones.

Test: all autofill CTS tests pass

Change-Id: Idcebcc671aa3c078a305d8c358e225274fccc588

7 years agoCamera: Override enableZsl based on SDK version
Chien-Yu Chen [Wed, 5 Apr 2017 23:42:31 +0000 (16:42 -0700)]
Camera: Override enableZsl based on SDK version

Override enableZsl based on app target SDK version so that for apps
targeting N and older, enableZsl is false for all template. For
apps targeting O and newer, enableZsl is false for all templates
except STILL_CAPTURE.

Test: CTS
Bug: 34983527
Change-Id: I2057e2351e81c269d322dffc199c58481ac3e78f

7 years agoKeyguard should authenticate with FP even after getting valid FP
Kevin Chyn [Mon, 10 Apr 2017 21:53:59 +0000 (14:53 -0700)]
Keyguard should authenticate with FP even after getting valid FP

There may be strange states where the user is already authenticated
but still on the lockscreen. The user should be able to dismiss
keyguard in that state.

Fixes: 29306222

Test: unlock phone
go back to keyguard
swipe up screen half way
touch fingerprint sensor (icon should change to unlocked)
then touch fingerprint sensor again (keyguard should be dismissed)

Test: unlock phone and go to settings -> Pixel Imprint
lock phone, unlock phone with fingerprint
touch sensor again and make sure Pixel Imprint page also responds to FP
do this test at least 10 times

Change-Id: I86acd520a06a68fab3548dd4cf6153a7833114fe

7 years agoMerge "Clear identity to handle ALLOCATE_AGGRESSIVE." into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 00:30:27 +0000 (00:30 +0000)]
Merge "Clear identity to handle ALLOCATE_AGGRESSIVE." into oc-dev

7 years agoRework getMetrics() api per API council
Ray Essick [Fri, 14 Apr 2017 17:22:55 +0000 (10:22 -0700)]
Rework getMetrics() api per API council

Reworking the media metrics getMetrics() calls (currently in MediaCodec,
MediaExtractor, MediaPlayer, and MediaRecorder) to fit new direction
from the API Council.

Drop the MediaMetricsSet that we had in the first round; go back
to a PersistableBundle as the return type. Moves the key definitions
from MediaMetricsSet.MediaCodec to MediaCodec.MetricsConstants

Bug: 37083862
Test: ran the corresponding CTS tests
Change-Id: I7905959ad2109887dd8fd16f0eb2831247abab2a

7 years agoMerge "Add new api Activity.getStartInitiatedTime." into oc-dev
Sudheer Shanka [Sat, 15 Apr 2017 00:09:26 +0000 (00:09 +0000)]
Merge "Add new api Activity.getStartInitiatedTime." into oc-dev

7 years agoMerge "MASTER_CLEAR action should not be public" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 23:50:22 +0000 (23:50 +0000)]
Merge "MASTER_CLEAR action should not be public" into oc-dev

7 years agoMerge "BluetoothMidi: request higher priority, for lower latency" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 23:49:13 +0000 (23:49 +0000)]
Merge "BluetoothMidi: request higher priority, for lower latency" into oc-dev

7 years agoAOD: Fix icon color when updating on AOD
Adrian Roos [Fri, 14 Apr 2017 23:35:58 +0000 (16:35 -0700)]
AOD: Fix icon color when updating on AOD

Fixes a bug where notification shelf icons
would become colorful when they update while
in AOD.

Change-Id: I6e1d98bc75a2119eb32b55a40a66a9b3bcee8737
Fixes: 37156783
Test: Turn off device, receive notification, receive update to that notification, trigger ambient display

7 years agoMerge "Fix the wrong IMPORTANCE_ values." into oc-dev
Makoto Onuki [Fri, 14 Apr 2017 23:29:07 +0000 (23:29 +0000)]
Merge "Fix the wrong IMPORTANCE_ values." into oc-dev

7 years agogetApplicationInfo() should throw NameNotFoundException
Makoto Onuki [Fri, 14 Apr 2017 18:03:56 +0000 (11:03 -0700)]
getApplicationInfo() should throw NameNotFoundException

... instead of returning null.

Bug: 37324177

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: I7f9f3729ee0eef6b342e4711379e02516559472c

7 years agoMerge "[DO NOT MERGE] Fix associations serialization optimization bug" into oc-dev
Svetoslav Ganov [Fri, 14 Apr 2017 23:22:26 +0000 (23:22 +0000)]
Merge "[DO NOT MERGE] Fix associations serialization optimization bug" into oc-dev

7 years agoMerge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 23:22:07 +0000 (23:22 +0000)]
Merge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev

7 years ago[DO NOT MERGE] Fix associations serialization optimization bug
Eugene Susla [Wed, 29 Mar 2017 03:27:28 +0000 (20:27 -0700)]
[DO NOT MERGE] Fix associations serialization optimization bug

There mas a missing defensive copy causing false positive detections of
"associations not changed" case, leading to xml file not being updated once
at least one record is present

Bug: 30932767
Test: Associate at least two different devices and ensure the xml has both.
Change-Id: Ic0dc615dd2b847e137555c1084c616831b4dde83

7 years ago[DO NOT MERGE] Add an opnion to use advertised name for renaming
Eugene Susla [Wed, 5 Apr 2017 17:36:24 +0000 (10:36 -0700)]
[DO NOT MERGE] Add an opnion to use advertised name for renaming

Test: Use new API, make sure renaming works
Change-Id: I9251c5db24495b8594fadce2beab3347a1aec884

7 years ago[DO NOT MERGE] Stop scan on device chooser activity backgrounded
Eugene Susla [Tue, 28 Mar 2017 22:40:44 +0000 (15:40 -0700)]
[DO NOT MERGE] Stop scan on device chooser activity backgrounded

This effectively treats chooser activity pause event as cancel.

Bug: 30932767
Test: Install two toy apps and call associate API from both.
  Ensure foreground app always end up showing fresh data.

Change-Id: I7f5742e9878245550f678efd244bf84c427baef3

7 years agoBLE scan API using PendingIntent
Amith Yamasani [Fri, 14 Apr 2017 00:46:53 +0000 (17:46 -0700)]
BLE scan API using PendingIntent

This allows apps to listen for beacons, etc., without having to
run a foreground service and register a callback. They can instead
register a PendingIntent which will be fired when scan results
are available or when an error occurs.

Bug: 37254611
Test: WIP
Change-Id: I1793eee67ff0211370ed6fc38be4d95a4c5853f5

7 years ago[DO NOT MERGE] Improve the error msg when started not for result
Eugene Susla [Mon, 27 Mar 2017 23:57:40 +0000 (16:57 -0700)]
[DO NOT MERGE] Improve the error msg when started not for result

This makes sure that if the association request callback IntentResult
s accidentally started not for result, the resulting exception is
metioning it explicitly.

Test: Ensure the error message when calling the IntentSender not for result
  explicitly mentions the requirement for the activity to be called for result.
Bug: 30932767

Change-Id: I950f262af43c555fb20dd5e49e935e476f24bba8

7 years agoMerge "[DO NOT MERGE] Fix a bug with filtering by raw bytes" into oc-dev
Svetoslav Ganov [Fri, 14 Apr 2017 23:11:26 +0000 (23:11 +0000)]
Merge "[DO NOT MERGE] Fix a bug with filtering by raw bytes" into oc-dev

7 years ago[DO NOT MERGE] Fix a bug with filtering by raw bytes
Eugene Susla [Tue, 28 Mar 2017 22:04:12 +0000 (15:04 -0700)]
[DO NOT MERGE] Fix a bug with filtering by raw bytes

(when such filter is not provided)
See change in BluetoothDeviceFilterUtils

Bug: 30932767
Test: Call API with a BLE filter with no raw bytes filter, matching some device.
Ensure that the device eventually shows up.

Change-Id: I4397fa33dd0c48771c8a754791a171f2d0bd64eb

7 years agoOnly foreground service notifications can be colorized
Selim Cinek [Thu, 13 Apr 2017 23:23:53 +0000 (16:23 -0700)]
Only foreground service notifications can be colorized

Normal ongoing notifications are not allowed to do so
anymore.

Change-Id: I22b55b7350180e9fdfbab9f3f34826470d7c9fa8
Fixes: 34469375

7 years agoAOD: Prolong AOD2 after interaction, turn off AOD when prox covered
Adrian Roos [Thu, 13 Apr 2017 23:52:51 +0000 (16:52 -0700)]
AOD: Prolong AOD2 after interaction, turn off AOD when prox covered

Turns off AOD 1 and 2 when the proximity sensor is covered.
Also extends the AOD2 duration when the screen is touched or
the lift gesture is triggered.

Also fixes some issues with the fingerprint unlock transition
from AOD where the doze state for the NotificationPanelView
was cleared too early.

Also hides the wallpaper while we're dozing.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Fixes: 36893539
Fixes: 36893538
Fixes: 36033906
Fixes: 37327153
Change-Id: I3fccae1515a0daf2ff99589ed78ec947687e6262

7 years agoIntroduce a new JobServiceEngine class.
Dianne Hackborn [Fri, 14 Apr 2017 22:46:00 +0000 (15:46 -0700)]
Introduce a new JobServiceEngine class.

This allows any service to interact with JobScheduler, which
should give us a lot more opportunity to do interesting stuff
in the support lib.

Test: bit CtsJobSchedulerTestCases
Change-Id: I0843e8b212a0a63a17558b837b899b90cac22805

7 years agoUpdate for removing mount arg to VintfObject::CheckCompatibility
Yifan Hong [Fri, 14 Apr 2017 22:39:20 +0000 (15:39 -0700)]
Update for removing mount arg to VintfObject::CheckCompatibility

It is default to false.

Test: pass
Bug: 36814503

Change-Id: Ib06850d3355f54996b17cc6c2980a7d17af132e5

7 years agoClear identity to handle ALLOCATE_AGGRESSIVE.
Jeff Sharkey [Fri, 14 Apr 2017 22:28:59 +0000 (16:28 -0600)]
Clear identity to handle ALLOCATE_AGGRESSIVE.

We're not actually clearing any files, only deciding how much free
space is available, so we're fine assuming the remote caller has the
permission.

Test: builds, boots
Bug: 37169076
Change-Id: I6cd42f77c43e9d2de40e2b8b937c7f2145f1b869

7 years agoMerge "Fix boot loop issue on Android Wear." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 22:16:19 +0000 (22:16 +0000)]
Merge "Fix boot loop issue on Android Wear." into oc-dev

7 years agoMerge "Fix some racines in AutofillManager" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 22:04:34 +0000 (22:04 +0000)]
Merge "Fix some racines in AutofillManager" into oc-dev

7 years agoMASTER_CLEAR action should not be public
Amith Yamasani [Fri, 14 Apr 2017 21:41:45 +0000 (14:41 -0700)]
MASTER_CLEAR action should not be public

Limit it to SystemApi, for passing intent tests

Bug: 36977779
Test: cts test
Change-Id: I716b94fc3cef43db1fafbfdad8dba0d850bec474

7 years agoRemove autofillMode attribute
Philip P. Moltmann [Fri, 14 Apr 2017 20:55:57 +0000 (13:55 -0700)]
Remove autofillMode attribute

Bug: 36171235
Test: CtsAutoFillServiceTestCases
Change-Id: I69f0e1c4fa3c68f73049726e7ae8f10d9d81bf5e

7 years agoAdd new api Activity.getStartInitiatedTime.
Sudheer Shanka [Thu, 13 Apr 2017 19:32:55 +0000 (12:32 -0700)]
Add new api Activity.getStartInitiatedTime.

This api will return the timestamp at which this activity start was last
initiated by the system. Implementation is wip.

Bug: 9058261
Test: cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t \
      android.app.cts.ActivityStartTimeTest

Change-Id: I396458ecefbb09108f414b95f9c0beb6d609a4e1

7 years agoBluetoothMidi: request higher priority, for lower latency
Phil Burk [Fri, 14 Apr 2017 19:15:56 +0000 (12:15 -0700)]
BluetoothMidi: request higher priority, for lower latency

Request a higher connection priority.
This will result in a Connection Interval below 15 msec
vs 45 msec for some devices.

Fix: 34710538
Test: Connect a BLE-MIDI device using the MIDI+BTLE test app. See bug.
Change-Id: I846a76a36c864f82969173a94d86b05059a786ad
Signed-off-by: Phil Burk <philburk@google.com>
7 years agoMerge "Add BitmapFactory.Options.inColorSpace" into oc-dev
Romain Guy [Fri, 14 Apr 2017 21:08:34 +0000 (21:08 +0000)]
Merge "Add BitmapFactory.Options.inColorSpace" into oc-dev

7 years agoMerge "Clarify doc for Bitmap.createBitmap()" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 20:53:22 +0000 (20:53 +0000)]
Merge "Clarify doc for Bitmap.createBitmap()" into oc-dev

7 years agoSupport flagNoPersonalizedLearning in layout XML
Yohei Yukawa [Fri, 14 Apr 2017 20:46:37 +0000 (13:46 -0700)]
Support flagNoPersonalizedLearning in layout XML

In my previous CL [1] a new flag IME_FLAG_NO_PERSONALIZED_LEARNING
was added for EditorInfo.imeOptions.  What was missed in the
previous CL is that new flag definition for layout XML and as a
result currently IME_FLAG_NO_PERSONALIZED_LEARNING is the only
IME option flag that cannot be specified in layout XML.

For instance, EditorInfo.IME_FLAG_FORCE_ASCII can be specified as
follows.

 <EditText
     android:id="@+id/edittext_force_ascii"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:imeOptions="actionSend|flagForceAscii" />

With this CL, application developers can specify
IME_FLAG_NO_PERSONALIZED_LEARNING as follows.

 <EditText
     android:id="@+id/edittext_no_personalized_learning"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:imeOptions="actionSend|flagNoPersonalizedLearning" />

 [1]: Ibf5ac3d2b8f39542baf2635c0cadbe242b059f81
      5959af13d069e77ff2b2ac729225e7d248b83a79

Bug: 28157942
Fixes: 37305520
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ifca0b13bf336cdc609af820aadcdb1b45ca1d5ba

7 years agoMerge "Convert signal icon to be custom drawable" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 20:44:14 +0000 (20:44 +0000)]
Merge "Convert signal icon to be custom drawable" into oc-dev

7 years agoMerge "Fix API feedback on Color" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 20:42:15 +0000 (20:42 +0000)]
Merge "Fix API feedback on Color" into oc-dev

7 years agomedia: Address API review comments
Hangyu Kuang [Thu, 13 Apr 2017 20:10:08 +0000 (13:10 -0700)]
media: Address API review comments

Change setNextOutputFile to accept File instead of String. Also add new version
of setOutputFile to accept File.

Bug: 36791064
Test: CTS test.
Change-Id: I1a3d574e7cf36acbf181407131bc9dbf114d30de

7 years agoMerge "Fix issue where menu items visible on 'closed' notification on lockscreen...
Mady Mellor [Fri, 14 Apr 2017 20:40:00 +0000 (20:40 +0000)]
Merge "Fix issue where menu items visible on 'closed' notification on lockscreen" into oc-dev

7 years agoReduce effect on PipMenuActivity during animation
Wale Ogunwale [Fri, 14 Apr 2017 20:15:55 +0000 (13:15 -0700)]
Reduce effect on PipMenuActivity during animation

- Set windowDisablePreview to true so no starting window is added for
the pip menu activity.
- setDisablePreviewScreenshots() so we don't waste time taking
screenshot for the pip menu activity.

Test: manual
Change-Id: I327603b9b0edc0baff779b00c8f6f035852aad15

7 years agoMerge changes from topic 'ipsec-api-tweaks-merge' into oc-dev
Nathan Harold [Fri, 14 Apr 2017 20:21:13 +0000 (20:21 +0000)]
Merge changes from topic 'ipsec-api-tweaks-merge' into oc-dev

* changes:
  Add FileDescriptor Versions of applyTransportModeTransform()
  IpSecManager and IpSecAlgorithm API Tweaks