Commit Graph

301953 Commits

Author SHA1 Message Date
Winson Chung
fa7053789f Adding experiment for minimized pinned stack.
- Also refactoring the PIP touch handling to be independent gestures

Test: Enable the setting in SystemUI tuner, then drag the PIP slightly
      offscreen. This is only experimental behaviour, and
      android.server.cts.ActivityManagerPinnedStackTests will be updated
      accordingly if we keep this behavior.

Change-Id: I5834971fcbbb127526339e764e7d76b5d22d4707
2016-11-10 23:09:17 +00:00
Winson Chung
7075d79cab Merge "Adding API for apps to specify their aspect ratio when entering PIP." 2016-11-10 23:08:54 +00:00
Peter Qiu
7bfba3a507 Merge "wifi: hotspot2: add Passpoint APIs to WifiManager" am: 0295d7bd38 am: 5451f8279e am: 8e07f4a86e
am: 6405b98114

Change-Id: Ifb223a9c0573571875979a7f55e6ede53ac12a4e
2016-11-10 22:43:59 +00:00
Alain Vongsouvanh
fade1235e5 colors: add missing accent_material_{700,50} resources.
Those two resources were only defined for watches and had no default
counterparts.

BUG: 32786346
Change-Id: I0868d34d1df55c6dfd26d13c3a7d468866603a97
2016-11-10 22:28:28 +00:00
Ta-wei Yen
fc0f68ca51 Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state" am: 0a3b6b70dd am: 969a6eb2b8 am: c9698a5cff
am: e1ae654041

Change-Id: Ic28680327d916e3650b3c11fb253353955373922
2016-11-10 22:28:13 +00:00
Peter Qiu
6405b98114 Merge "wifi: hotspot2: add Passpoint APIs to WifiManager" am: 0295d7bd38 am: 5451f8279e
am: 8e07f4a86e

Change-Id: I6ca161fcd10af6c2da26c585f870906284737ccf
2016-11-10 22:26:22 +00:00
Philip P. Moltmann
93a2249369 Wait when other thread is binding to print spooler
Fixes: 32581183
Test: print cts and workflow tests
Change-Id: I3c6ccc40a1ea6504d2e25ec402cecf31d724865b
2016-11-10 14:25:32 -08:00
Ta-wei Yen
e1ae654041 Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state" am: 0a3b6b70dd am: 969a6eb2b8
am: c9698a5cff

Change-Id: I35bbcf29868c1ecddcdbb0e536c6d2a92e4d90ca
2016-11-10 22:20:29 +00:00
Peter Qiu
8e07f4a86e Merge "wifi: hotspot2: add Passpoint APIs to WifiManager" am: 0295d7bd38
am: 5451f8279e

Change-Id: Ide84930e6d76e9e52716a5b31df31998b95a8a76
2016-11-10 22:13:48 +00:00
Ta-wei Yen
c9698a5cff Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state" am: 0a3b6b70dd
am: 969a6eb2b8

Change-Id: I2a5d31c342efc7e3ca4f29448b24d406253c7b0f
2016-11-10 22:08:35 +00:00
Peter Qiu
5451f8279e Merge "wifi: hotspot2: add Passpoint APIs to WifiManager"
am: 0295d7bd38

Change-Id: I79279f22bfc9642ed7905d099dd43555714ea815
2016-11-10 22:07:11 +00:00
Sandeep Patil
a21c42769f health: import android.hardware.health@1.0 constants into BatteryManager
Test: make
Bug: b/32724915

Change-Id: I7ca7507b7be54442dc3250b02db3e4f7e95f0685
Signed-off-by: Sandeep Patil <sspatil@google.com>
2016-11-10 14:02:45 -08:00
Ta-wei Yen
969a6eb2b8 Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state"
am: 0a3b6b70dd

Change-Id: I512e68bccda115ad7c58ec1f1fbfbb2c69c86578
2016-11-10 22:02:17 +00:00
Treehugger Robot
0295d7bd38 Merge "wifi: hotspot2: add Passpoint APIs to WifiManager" 2016-11-10 21:56:56 +00:00
Ben Lin
1cf454fcb6 Adding ContentProvider#refresh and ContentResolver#refresh.
Original CL is from ag/1568530.

Bug: 31647485
Change-Id: Ib45fc995a361b8c75cd3600f638910b18a263d51
2016-11-10 13:53:27 -08:00
Ta-wei Yen
0a3b6b70dd Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state" 2016-11-10 21:46:34 +00:00
Nathan Harold
90bc8e30ad Expose GSM Timing Advance, Update LTE TA docstring
-Expose the GSM timing advance
-Add a spec reference to the LTE Timing Advance

Bug: 28910982
Test: None
Change-Id: I7573dbb1316a2ab52051072ebad2532601f4299c
2016-11-10 13:00:21 -08:00
Julia Reynolds
05675c80c1 Merge "Expose dismiss reasons to notification listeners." 2016-11-10 20:46:07 +00:00
TreeHugger Robot
48b3ffc557 Merge "Not blocking focus on action bar on tab" 2016-11-10 20:45:26 +00:00
Peter Qiu
9e90a426c2 Merge "wifi: hotspot2: add support for parsing Release 1 installation file" am: 44e817fdcf am: 861e99e815 am: 861619e782
am: e0ebb9ce31

Change-Id: If6486ed34e20f225b588fcae0a32ca41c1531786
2016-11-10 20:43:05 +00:00
Peter Qiu
e0ebb9ce31 Merge "wifi: hotspot2: add support for parsing Release 1 installation file" am: 44e817fdcf am: 861e99e815
am: 861619e782

Change-Id: I3f148b1e87f8a4d43f6a48e3af774f7f2b216023
2016-11-10 20:36:08 +00:00
Jakub Pawlowski
1cc78aa2c3 Merge "BLE OOB Pairing - parse address type (5/5)" am: 97d9fe0a2f am: c3cfff6ef6 am: f59ad8bd68
am: 196fe3597c

Change-Id: Idf087fc9dcd88733ec7755196fab3eac944bf8cf
2016-11-10 20:31:12 +00:00
Akira Oshimi
4ad7ace5f7 Merge "Add null check before finish SystemUI Tuner's activity" am: 5bb91bacc3 am: 08978cd0fd am: 88ab92ce4c
am: c49702e4c0

Change-Id: I7d3c453536a272c969745ad2df4c9bf319efc19b
2016-11-10 20:24:23 +00:00
Jakub Pawlowski
196fe3597c Merge "BLE OOB Pairing - parse address type (5/5)" am: 97d9fe0a2f am: c3cfff6ef6
am: f59ad8bd68

Change-Id: I8307894e80bdfc1c260708c7174d294178ffa00b
2016-11-10 20:24:10 +00:00
Peter Qiu
861619e782 Merge "wifi: hotspot2: add support for parsing Release 1 installation file" am: 44e817fdcf
am: 861e99e815

Change-Id: Idd093095c6c7be414e284092069df1374aad9d38
2016-11-10 20:24:06 +00:00
Peter Qiu
861e99e815 Merge "wifi: hotspot2: add support for parsing Release 1 installation file"
am: 44e817fdcf

Change-Id: If165cadffd0ae93fb94d1883f41851f1d92d50f6
2016-11-10 20:19:51 +00:00
Akira Oshimi
c49702e4c0 Merge "Add null check before finish SystemUI Tuner's activity" am: 5bb91bacc3 am: 08978cd0fd
am: 88ab92ce4c

Change-Id: I6abd73d3ce02dd33dc95c6132b1ff8aa4b13015c
2016-11-10 20:18:09 +00:00
Jakub Pawlowski
f59ad8bd68 Merge "BLE OOB Pairing - parse address type (5/5)" am: 97d9fe0a2f
am: c3cfff6ef6

Change-Id: Ia05bccadc06b202cf6ac1039b1e227bd67575bb5
2016-11-10 20:14:24 +00:00
Dianne Hackborn
9c8cc849d6 Merge "Start implementing background restrictions for eph apps." 2016-11-10 20:14:12 +00:00
Akira Oshimi
88ab92ce4c Merge "Add null check before finish SystemUI Tuner's activity" am: 5bb91bacc3
am: 08978cd0fd

Change-Id: Ibd1b9ff4be577bf5ea5596342316ea2303d93b75
2016-11-10 20:12:34 +00:00
Ta-wei Yen
05f9112d15 Add createForPhoneAccountHandle() and getServicetate()
Respect TelephonyManager's subId when listening to phone state

TelecomManager perfers to use a PhoneAccountHandle to represent a
account but TelephonyManager prefers subscription IDs.

This CL added createForPhoneAccountHandle() in TelephonyManager so
telephony values can be queried from it.

Currently the ServiceState can be retrieved through registering a
PhoneStatelistener, but it is a callback which the handler cannot be
specified.

getServiceState() is added to allow the ServiceState to be polled.

While TelphonyManager has createForSubscriptionId(), listen() does not
respect the subId on the manager created from it, and will always use
the hidden subId on the listener, which is always the default subId
through public API.

After this CL, the default subId on the listener will null.
TelephonyManager use its' own subId if the listener does not set the
subId to something else.

Bug: 32637799
Bug: 32414216
Test: cts-tradefed run cts-dev --module CtsTelephonyTestCases
Change-Id: I9995e4da1573cf1f6b6e4acf2daf7a538fb60d5f
2016-11-10 12:11:56 -08:00
Jakub Pawlowski
c3cfff6ef6 Merge "BLE OOB Pairing - parse address type (5/5)"
am: 97d9fe0a2f

Change-Id: I935cc35d9f7f1eea5459f0091ad14dc8b200bc02
2016-11-10 20:07:39 +00:00
Akira Oshimi
08978cd0fd Merge "Add null check before finish SystemUI Tuner's activity"
am: 5bb91bacc3

Change-Id: I0e9d19f297c158ff0c6acd1aa6665e3459fa416b
2016-11-10 20:06:34 +00:00
Treehugger Robot
44e817fdcf Merge "wifi: hotspot2: add support for parsing Release 1 installation file" 2016-11-10 20:06:07 +00:00
Dianne Hackborn
e07641d4fb Start implementing background restrictions for eph apps.
This implements the additional intended path for checking
allowed background operations, APP_START_MODE_DISABLED, which
doesn't allow an app to launch in the background at all.

Also change the semantics of delivering broadcasts to manifest
receivers to always restrict those, not changing based on
whether the app is currently idle.  This is the desired intended
behavior for apps as they explicitly update to work with
bg check.

And now that we have ephemerality associated with the uid state
in the activity manager, we can propagate this through the
relevant callbacks in IUidObserver so things watching these
changes can immediately determine whether they should do their
more aggressive shut down work for the uid rather than having
to walk through all their state looking for package associated
with that uid and whether they should be shut down.

Also remove the "lenient" bg check mode, since that was
just an early experiment that we won't actually use.

Add a new "make-idle" activity manager command to immediately
put a uid into the idle state (if possible) to make it easier
to test.

Test: manually against an eph app
Change-Id: I43a138ff281f69a9251d3f29ab6e13f48cff8ad6
2016-11-10 12:01:20 -08:00
Treehugger Robot
97d9fe0a2f Merge "BLE OOB Pairing - parse address type (5/5)" 2016-11-10 20:00:52 +00:00
Treehugger Robot
5bb91bacc3 Merge "Add null check before finish SystemUI Tuner's activity" 2016-11-10 19:54:17 +00:00
Jakub Pawlowski
f465823f6d BLE OOB Pairing - parse address type (5/5)
When address type is not parsed, creating bond to devices not using
random address is impossible.

Bug: 32780409
Test: try pairing with nRF52DK using random address
Change-Id: Ie6cc1f8c008d43b2acd021b47f9bbfb1f63472e8
2016-11-10 19:51:49 +00:00
Andreas Huber
db50e0a9d8 Merge "Fix use of JNI calls inside GetStringCritical/ReleaseStringCritical sections." am: df3d68c9b2 am: fbb980e57b am: fdaf348734
am: 90efd7bbb2

Change-Id: I66c2b632511ad5b6d2ce971ef4640e6c95c7c7b7
2016-11-10 19:33:38 +00:00
Andreas Huber
90efd7bbb2 Merge "Fix use of JNI calls inside GetStringCritical/ReleaseStringCritical sections." am: df3d68c9b2 am: fbb980e57b
am: fdaf348734

Change-Id: Icc30767adea1ce61fe3bd87b395268db674ce021
2016-11-10 19:27:07 +00:00
Andreas Huber
fdaf348734 Merge "Fix use of JNI calls inside GetStringCritical/ReleaseStringCritical sections." am: df3d68c9b2
am: fbb980e57b

Change-Id: I7b80bbe5eed3066edfe26d83dd322114d2e4a961
2016-11-10 19:14:30 +00:00
Andreas Huber
fbb980e57b Merge "Fix use of JNI calls inside GetStringCritical/ReleaseStringCritical sections."
am: df3d68c9b2

Change-Id: I56e293d16dee7503f717f3cca4902720307a2024
2016-11-10 19:08:28 +00:00
Chris Elliott
34e1c6a053 Merge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into cw-e-dev am: 06a55fb553 -s ours am: 0e11e0d961 -s ours am: 69246f0565 -s ours am: a8a116b001 -s ours am: 8409d50122 -s ours am: c07d8aa52d -s ours am: e2dd105af2 -s ours
am: d3dd8e99fa  -s ours

Change-Id: I391dabf19257106be0464ad2fbae86ae464da7e0
2016-11-10 19:03:16 +00:00
Hugo Benichi
262d5e56b5 DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission am: f88508bd3e -s ours am: da695f5fdb -s ours am: 69d565b12d -s ours am: 37779485b7 -s ours am: 986c684fb0 -s ours am: 5c10f1e552 -s ours am: 8fe310892b -s ours
am: 01d86c0902  -s ours

Change-Id: I2f2216c438756b0655d9183a98cee21cc642ec17
2016-11-10 19:02:03 +00:00
Treehugger Robot
df3d68c9b2 Merge "Fix use of JNI calls inside GetStringCritical/ReleaseStringCritical sections." 2016-11-10 18:58:29 +00:00
Chris Elliott
d3dd8e99fa Merge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into cw-e-dev am: 06a55fb553 -s ours am: 0e11e0d961 -s ours am: 69246f0565 -s ours am: a8a116b001 -s ours am: 8409d50122 -s ours am: c07d8aa52d -s ours
am: e2dd105af2  -s ours

Change-Id: Iab445b20d02e9a501d74f27a59da5047957efc13
2016-11-10 18:57:02 +00:00
Hugo Benichi
01d86c0902 DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission am: f88508bd3e -s ours am: da695f5fdb -s ours am: 69d565b12d -s ours am: 37779485b7 -s ours am: 986c684fb0 -s ours am: 5c10f1e552 -s ours
am: 8fe310892b  -s ours

Change-Id: I63236413fa5272bbfb8c4fba83879089007694bc
2016-11-10 18:55:34 +00:00
Chris Elliott
e2dd105af2 Merge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into cw-e-dev am: 06a55fb553 -s ours am: 0e11e0d961 -s ours am: 69246f0565 -s ours am: a8a116b001 -s ours am: 8409d50122 -s ours
am: c07d8aa52d  -s ours

Change-Id: If5a7680ee9de27107bf32138e91f2eb705181ab0
2016-11-10 18:50:28 +00:00
Hugo Benichi
8fe310892b DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission am: f88508bd3e -s ours am: da695f5fdb -s ours am: 69d565b12d -s ours am: 37779485b7 -s ours am: 986c684fb0 -s ours
am: 5c10f1e552  -s ours

Change-Id: I9bf86e8adf3a2d6efbce54e3fc6a59ee650daaef
2016-11-10 18:49:18 +00:00
Chris Elliott
c07d8aa52d Merge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into cw-e-dev am: 06a55fb553 -s ours am: 0e11e0d961 -s ours am: 69246f0565 -s ours am: a8a116b001 -s ours
am: 8409d50122  -s ours

Change-Id: I31d22a167ee7de857ed0403b2d14daa1d90055f0
2016-11-10 18:44:06 +00:00