OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Expose phone account register/unregister intents." am: 24299f5b06 am: b993a44272
Tyler Gunn [Sat, 15 Apr 2017 22:28:09 +0000 (22:28 +0000)]
Merge "Expose phone account register/unregister intents." am: 24299f5b06 am: b993a44272
am: d046aa9103

Change-Id: Iece85cdaee561d2e32c634bed2f2bc03a635450c

7 years agoMerge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" am: 02278a5a02...
Nathan Harold [Sat, 15 Apr 2017 22:26:36 +0000 (22:26 +0000)]
Merge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" am: 02278a5a02 am: d50a325553
am: 661278432d

Change-Id: Ie6ed56a31df7a4b9e0730693561786562eb42fc9

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

Change-Id: I8703b838c83a71f5be27d07e1a514bf4c8d22a17

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
Ray Essick [Sat, 15 Apr 2017 19:01:18 +0000 (19:01 +0000)]
Merge "Rework getMetrics() api per API council" into oc-dev
am: abbea1df6b

Change-Id: I9b8911d615e9521007a1cbb14514d05aef172f57

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
Yifan Hong [Sat, 15 Apr 2017 10:04:52 +0000 (10:04 +0000)]
Merge "Update for removing mount arg to VintfObject::CheckCompatibility" into oc-dev
am: 35edfc1fdc

Change-Id: I0b604d7e6faf1b72bb7271fbb4ad7056f9d800ae

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
Stephen Chen [Sat, 15 Apr 2017 09:13:41 +0000 (09:13 +0000)]
Merge "Remove ScoredNetwork.BADGING constants." into oc-dev
am: e587591c5a

Change-Id: I7546e77a0a591ce25b2c771c30b4506d5666cc3f

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
Kevin Chyn [Sat, 15 Apr 2017 07:11:00 +0000 (07:11 +0000)]
Merge "Keyguard should authenticate with FP even after getting valid FP" into oc-dev
am: 4ea09f5ca4

Change-Id: I9aa9104818078c058f5f5cefaf3e442873a072e8

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 "Expose phone account register/unregister intents." am: 24299f5b06
Tyler Gunn [Sat, 15 Apr 2017 06:17:18 +0000 (06:17 +0000)]
Merge "Expose phone account register/unregister intents." am: 24299f5b06
am: b993a44272

Change-Id: Ic3f8044b7df278b33208fae671abef21ae8f55d2

7 years agoMerge "Expose phone account register/unregister intents."
Tyler Gunn [Sat, 15 Apr 2017 06:13:21 +0000 (06:13 +0000)]
Merge "Expose phone account register/unregister intents."
am: 24299f5b06

Change-Id: Ifbc60e3221bee3813e2c854305144af901067b13

7 years agoMerge "Expose phone account register/unregister intents."
Treehugger Robot [Sat, 15 Apr 2017 06:07:25 +0000 (06:07 +0000)]
Merge "Expose phone account register/unregister intents."

7 years agoExpose phone account register/unregister intents.
Tyler Gunn [Fri, 14 Apr 2017 20:43:30 +0000 (13:43 -0700)]
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.

Test: Manual
Bug: 37106957
Merged-In: Ifb72870105be5ba024af196a8c3165a9afb397ab
Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab

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

Change-Id: I6d4e70f45b60fc76e017a982f70a2a7b14b3a3a9

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
Eugene Susla [Sat, 15 Apr 2017 04:22:48 +0000 (04:22 +0000)]
Merge "API for notification listener for Companioon apps" into oc-dev
am: 0d88904744

Change-Id: Ie6093be3e7699481473eeb597bc4d604728330a2

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:33:02 +0000 (03:33 +0000)]
Merge "Add support for multiple fill contexts" into oc-dev
am: 41200eac71

Change-Id: I9a66bc2d97efbc19fd0cbfd57dfb13323e3ab31a

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
Etan Cohen [Sat, 15 Apr 2017 02:32:31 +0000 (02:32 +0000)]
Merge changes from topics 'network_specifier', 'networkspecifier' into oc-dev
am: d98f26e4f3  -s ours

Change-Id: Ic728d22ee9d7407df5437e3da0468387f5c098c2

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 "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" am: 02278a5a02
Nathan Harold [Sat, 15 Apr 2017 01:59:13 +0000 (01:59 +0000)]
Merge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" am: 02278a5a02
am: d50a325553

Change-Id: I6d55820dc1710035fcab839f6cae809fa44f16da

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

Change-Id: I6a808b422c23e0bd695d8422150e57ed9cf874ad

7 years agoMerge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE"
Nathan Harold [Sat, 15 Apr 2017 01:52:24 +0000 (01:52 +0000)]
Merge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE"
am: 02278a5a02

Change-Id: I473f438a0336b8c5183f385f062493abb53966fe

7 years agoMerge "Support flagNoPersonalizedLearning in layout XML" into oc-dev
Yohei Yukawa [Sat, 15 Apr 2017 01:51:55 +0000 (01:51 +0000)]
Merge "Support flagNoPersonalizedLearning in layout XML" into oc-dev
am: e61d56fb70

Change-Id: If566134ba9f8ac40cf73a92745b45262681531c9

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 "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE"
Treehugger Robot [Sat, 15 Apr 2017 01:42:58 +0000 (01:42 +0000)]
Merge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE"

7 years agoMerge "BLE scan API using PendingIntent" into oc-dev
Amith Yamasani [Sat, 15 Apr 2017 01:41:29 +0000 (01:41 +0000)]
Merge "BLE scan API using PendingIntent" into oc-dev
am: 7859022e8e

Change-Id: Ic694cf7dae7e7c151155787da5b079699cec93ed

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
Wale Ogunwale [Sat, 15 Apr 2017 01:28:03 +0000 (01:28 +0000)]
Merge "Reduce effect on PipMenuActivity during animation" into oc-dev
am: 47dea3b16d

Change-Id: I57a59e7fe55c50bb69dad7e0de3b8b11a2bb9638

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 agoMerge "Introduce a new JobServiceEngine class." into oc-dev
Dianne Hackborn [Sat, 15 Apr 2017 01:02:31 +0000 (01:02 +0000)]
Merge "Introduce a new JobServiceEngine class." into oc-dev
am: aaeb512331

Change-Id: I68e306a970096cdd7d65b13865f70081679759ec

7 years agoMerge "Remove autofillMode attribute" into oc-dev
Philip P. Moltmann [Sat, 15 Apr 2017 00:56:44 +0000 (00:56 +0000)]
Merge "Remove autofillMode attribute" into oc-dev
am: a05f1fdd93

Change-Id: Ib5a661b27a23e7dbaa277a3d3ea1d85a4ab7ba72

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 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 agoMerge "Clear identity to handle ALLOCATE_AGGRESSIVE." into oc-dev
Jeff Sharkey [Sat, 15 Apr 2017 00:36:24 +0000 (00:36 +0000)]
Merge "Clear identity to handle ALLOCATE_AGGRESSIVE." into oc-dev
am: dec3638c1f

Change-Id: I9cc266dd67fac65859d86f77f085eb45b4e73701

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:17:26 +0000 (00:17 +0000)]
Merge "Add new api Activity.getStartInitiatedTime." into oc-dev
am: 2359f016e2

Change-Id: I8a2ab94f67894736188fd62df8503dfa637ad9ed

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
Amith Yamasani [Fri, 14 Apr 2017 23:57:05 +0000 (23:57 +0000)]
Merge "MASTER_CLEAR action should not be public" into oc-dev
am: baf1d7036e

Change-Id: I361e8369ec16da7d032680530223463228921616

7 years agoMerge "BluetoothMidi: request higher priority, for lower latency" into oc-dev
Phil Burk [Fri, 14 Apr 2017 23:55:42 +0000 (23:55 +0000)]
Merge "BluetoothMidi: request higher priority, for lower latency" into oc-dev
am: e49ad6c70a

Change-Id: Idcece5b34d81cdeb43eb9196d7d29c3023605782

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 agoMerge "Fix the wrong IMPORTANCE_ values." into oc-dev
Makoto Onuki [Fri, 14 Apr 2017 23:39:03 +0000 (23:39 +0000)]
Merge "Fix the wrong IMPORTANCE_ values." into oc-dev
am: 5f085792f6

Change-Id: I263f5cd22bf45a0b7f2f8599d28807e6464a5c2c

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

Change-Id: I332d4aeeb7eb14a0b51a60382c8efedf4e1d5375

7 years agoMerge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev
Roozbeh Pournader [Fri, 14 Apr 2017 23:33:01 +0000 (23:33 +0000)]
Merge "Support overriding display locale for SuggestedLocaleAdapter" into oc-dev
am: 2a05c5edb7

Change-Id: I4752951eee34ec5e98368a1b0a68ecb3cbf449cb

7 years ago[DO NOT MERGE] Add an opnion to use advertised name for renaming
Eugene Susla [Fri, 14 Apr 2017 23:31:53 +0000 (23:31 +0000)]
[DO NOT MERGE] Add an opnion to use advertised name for renaming
am: 75fb821029

Change-Id: Iead08333400d2ddc0568ae3b7f09f6ccb7fdbc1f

7 years ago[DO NOT MERGE] Stop scan on device chooser activity backgrounded
Eugene Susla [Fri, 14 Apr 2017 23:30:46 +0000 (23:30 +0000)]
[DO NOT MERGE] Stop scan on device chooser activity backgrounded
am: 200c37f413

Change-Id: I29fbe568cccac08e6fa28ec8cf1c027290d35efc

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 ago[DO NOT MERGE] Improve the error msg when started not for result
Eugene Susla [Fri, 14 Apr 2017 23:23:45 +0000 (23:23 +0000)]
[DO NOT MERGE] Improve the error msg when started not for result
am: 5423b4e0a8

Change-Id: I44b112065b12b10cfd00498479380a9c5ad57be4

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 agoMerge "[DO NOT MERGE] Fix a bug with filtering by raw bytes" into oc-dev
Svetoslav Ganov [Fri, 14 Apr 2017 23:18:03 +0000 (23:18 +0000)]
Merge "[DO NOT MERGE] Fix a bug with filtering by raw bytes" into oc-dev
am: 728ce60465

Change-Id: Ic89d0c7084e56e24a358191660aeebe917df6b4b

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 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
Seigo Nonaka [Fri, 14 Apr 2017 22:20:35 +0000 (22:20 +0000)]
Merge "Fix boot loop issue on Android Wear." into oc-dev
am: 5f9fde884b

Change-Id: Ie73c0cfd4c348d1217338bb40694f20559702bcb

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
Philip P. Moltmann [Fri, 14 Apr 2017 22:11:06 +0000 (22:11 +0000)]
Merge "Fix some racines in AutofillManager" into oc-dev
am: 2ddd69ce1a

Change-Id: Iec8454a36985484148b821f598446d5305c601bc

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:14:10 +0000 (21:14 +0000)]
Merge "Add BitmapFactory.Options.inColorSpace" into oc-dev
am: c99bcc69f7

Change-Id: I016c2b265dc471b74cd703281b3de60d7e54bfea

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
Romain Guy [Fri, 14 Apr 2017 21:05:55 +0000 (21:05 +0000)]
Merge "Clarify doc for Bitmap.createBitmap()" into oc-dev
am: 1eaab2db82

Change-Id: I2b843c5f94460f5ee7d9a7767d0411fe6c117a3c

7 years agoMerge "Convert signal icon to be custom drawable" into oc-dev
Jason Monk [Fri, 14 Apr 2017 20:58:31 +0000 (20:58 +0000)]
Merge "Convert signal icon to be custom drawable" into oc-dev
am: 06426bf652

Change-Id: I3fddf788317b91e65c22ec75bb3e6aa0509f64fe

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 agoMerge "Fix API feedback on Color" into oc-dev
Romain Guy [Fri, 14 Apr 2017 20:49:20 +0000 (20:49 +0000)]
Merge "Fix API feedback on Color" into oc-dev
am: 03758701fb

Change-Id: I5b3d30552adedc603a97b65b1f739c19142e70b2

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

Change-Id: Ib51c0125042553302584c79a360ee07f2ae1c1b8

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 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:28:56 +0000 (20:28 +0000)]
Merge changes from topic 'ipsec-api-tweaks-merge' into oc-dev
am: 9361283073

Change-Id: I4ca6b6293dabe856098dda98ce6ca804fa419b44

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

7 years agoUpdate doc string for getForbiddenPlmns() to READ_PHONE_STATE
Nathan Harold [Fri, 14 Apr 2017 20:13:11 +0000 (13:13 -0700)]
Update doc string for getForbiddenPlmns() to READ_PHONE_STATE

For whatever reason when I chose the permission for this API I
chose the internal READ_PRIVILEGED_PHONE_STATE. Updating this to
use the equivalent public permission (since this is a public API)
requires me to use READ_PHONE_STATE

Bug: 35261110
Test: docstring only change. Compilation
Change-Id: I3647271798b33040751905c13b20da727eacfd9b

7 years agoMerge "Merge "DO NOT MERGE Notify keyguard of when power button is pressed." into...
Android Build Merger (Role) [Fri, 14 Apr 2017 20:10:55 +0000 (20:10 +0000)]
Merge "Merge "DO NOT MERGE Notify keyguard of when power button is pressed." into cw-f-dev am: 2c42db20e4  -s ours am: 812594f573 am: 45bd03914c  -s ours" into oc-dev-plus-aosp

7 years agoMerge "DO NOT MERGE Notify keyguard of when power button is pressed." into cw-f-dev...
Andrew Zeng [Fri, 14 Apr 2017 20:09:46 +0000 (20:09 +0000)]
Merge "DO NOT MERGE Notify keyguard of when power button is pressed." into cw-f-dev am: 2c42db20e4  -s ours am: 812594f573
am: 45bd03914c  -s ours

Change-Id: Iadf1027f7bc9d9bc31264341cb6797ae241882fd

7 years agoMerge "DO NOT MERGE Notify keyguard of when power button is pressed." into cw-f-dev...
Andrew Zeng [Fri, 14 Apr 2017 20:08:35 +0000 (20:08 +0000)]
Merge "DO NOT MERGE Notify keyguard of when power button is pressed." into cw-f-dev am: 2c42db20e4  -s ours am: 812594f573  -s ours
am: d210ce63d0

Change-Id: Ic2932b7fd206c72de0fe78fd604effd8603cc8e7