Commit Graph

13259 Commits

Author SHA1 Message Date
Vishwath Mohan
6787c4c56a Merge "Refactor FingerprintDialog to BiometricDialog" into pi-dev am: 86ed912f5a
am: 77b5ccb59b

Change-Id: I6de587d85c7ece9a20613ab935fca6f886dbc1c3
2018-03-28 19:19:40 +00:00
Vishwath Mohan
77b5ccb59b Merge "Refactor FingerprintDialog to BiometricDialog" into pi-dev
am: 86ed912f5a

Change-Id: I2582d4770900460a8d37c9d832e9a20583f9adf9
2018-03-28 19:01:11 +00:00
Vishwath Mohan
86ed912f5a Merge "Refactor FingerprintDialog to BiometricDialog" into pi-dev 2018-03-28 18:46:34 +00:00
Jan Althaus
bd626aa9cb Merge "Change TextClassification to use RemoteActions" into pi-dev am: 08a75e0ee7
am: 39441a9d85

Change-Id: Ib9f44a89c0943eeff54f60f68e1aeb5d83ef3994
2018-03-28 17:35:32 +00:00
Jan Althaus
39441a9d85 Merge "Change TextClassification to use RemoteActions" into pi-dev
am: 08a75e0ee7

Change-Id: I411c8b207e24c6a4e9ca8660619fae1e0a3a8ef7
2018-03-28 17:23:56 +00:00
Jan Althaus
08a75e0ee7 Merge "Change TextClassification to use RemoteActions" into pi-dev 2018-03-28 17:04:58 +00:00
Luis Hector Chavez
fd1183b4d2 Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev am: 744e6f1738
am: fd131815ee

Change-Id: Ia79a2840080e3b81ae2bced43428b128098a9c98
2018-03-28 15:32:01 +00:00
Luis Hector Chavez
fd131815ee Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev
am: 744e6f1738

Change-Id: I3e691bac969b76ebfdd9ee3e3e3956fb53e64548
2018-03-28 15:16:59 +00:00
TreeHugger Robot
744e6f1738 Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev 2018-03-28 14:58:10 +00:00
Jan Althaus
20d346eafe Change TextClassification to use RemoteActions
Behavioural changes:
- Every action now as an icon, and instead hints via RemoteAction whether
  the icon should be shown or not.
- Icons are now taken from the app default, not the activity.
  (That way, we can construct a lightweight resource backed Icon)
- Legacy intents are no longer parceled for security reasons.
  (TextClassificatio wasn't parcelable in O)
- TextClassifications built with the new API will always return null for
  getIntent, but provide a getOnClickListener.
- Accessibility descriptions are now provided for action mode items.

Testing changes:
- Removed URI checks from TCM test because PendingIntent hides this info.

Bug: 73950205
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Change-Id: I6706d2c342a8bbb9de0146a48c8b8aac9d9c7d83
2018-03-28 11:41:39 +02:00
Svet Ganov
b62669f69e Add API to query if a UID is active am: 0c1c9cd7f2
am: 1e8ea5f3bb

Change-Id: Ida7ab799376d14f8abcc7d918a7cd8bfaddaabe7
2018-03-28 05:16:49 +00:00
Svet Ganov
1e8ea5f3bb Add API to query if a UID is active
am: 0c1c9cd7f2

Change-Id: Ic209da2a6817b82e7bcc09bd6eb2c0896a4071f5
2018-03-28 04:27:08 +00:00
Svet Ganov
0c1c9cd7f2 Add API to query if a UID is active
Test: cts-tradefed run cts-dev -m CtsCameraTestCases

Bug: 72863398

Change-Id: I4bacfd87cac782ef178e9a279cd833b229150ae1
2018-03-28 04:14:53 +00:00
Suprabh Shukla
5c2c733d48 Merge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev am: 7eee509df5
am: 8f92f5f20d

Change-Id: Idcba8ba65fcb5820fe274c7a7e099fb668a5b90c
2018-03-28 04:11:15 +00:00
Lucas Dupin
c8c6f79581 Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev am: 3844e1d83c
am: a68e764dad

Change-Id: I8a268f6a1d21785eee32deaefd478faf3424764c
2018-03-28 04:01:40 +00:00
Lucas Dupin
4ea96198fa Merge "Merge "Hide activities when AOD comes in" into pi-dev am: 11866a4242" into pi-dev-plus-aosp
am: 28175936b8

Change-Id: Icc70ab1afa9e5f91f3ad7662d049bd1a9e72f8fb
2018-03-28 03:34:39 +00:00
Suprabh Shukla
bd6826dc4c Merge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev am: 1c73370df4
am: 33333ae877

Change-Id: I5ebfd6c2eca1a164a4875ec221792bae9803605e
2018-03-28 03:14:54 +00:00
Suprabh Shukla
8f92f5f20d Merge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev
am: 7eee509df5

Change-Id: I94fcc01c6a767fb21f962dd36fc2c464650cb5cb
2018-03-28 02:21:24 +00:00
TreeHugger Robot
7eee509df5 Merge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev 2018-03-28 02:10:45 +00:00
Lucas Dupin
a68e764dad Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev
am: 3844e1d83c

Change-Id: I845b4ec476ea1c7e9bfa44a224818dea85c06577
2018-03-28 02:09:56 +00:00
TreeHugger Robot
3844e1d83c Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev 2018-03-28 01:59:26 +00:00
Lucas Dupin
4898d75766 Merge "Hide activities when AOD comes in" into pi-dev
am: 11866a4242

Change-Id: I7b4524fb00fbd394c7e0794f052f394c1aad5460
2018-03-28 01:26:42 +00:00
TreeHugger Robot
11866a4242 Merge "Hide activities when AOD comes in" into pi-dev 2018-03-28 01:11:42 +00:00
Dianne Hackborn
40eca65f1a Merge "Work on issue #74404949: Screen state usage API" into pi-dev am: 00f3c4333e
am: 30181d3bc1

Change-Id: I4a3ee230b1ce30022f85e271d0f0708f73af4026
2018-03-28 01:04:17 +00:00
Suprabh Shukla
33333ae877 Merge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev
am: 1c73370df4

Change-Id: I7d2ab9a1d57c9837a9ed5564fbc609bf11d59b8f
2018-03-28 00:58:47 +00:00
Christopher Tate
09f1c5923e Merge "Regularize some wallpaper APIs" into pi-dev am: 17b6490ce1
am: f88a8023d6

Change-Id: Ib3e0936289cee178d3c95adf0cd40833fc8ca0d4
2018-03-28 00:46:06 +00:00
TreeHugger Robot
1c73370df4 Merge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev 2018-03-28 00:45:23 +00:00
Dianne Hackborn
30181d3bc1 Merge "Work on issue #74404949: Screen state usage API" into pi-dev
am: 00f3c4333e

Change-Id: I3bff628d13f1089213edf84aa1feffd683b99cd7
2018-03-27 23:37:02 +00:00
Suprabh Shukla
a2cf00a011 Optimizing TimeSparseArray#put in case of collisions
Adding a linear check instead of binary searching everytime. Logging
only when the displacement is greater than 10 millis.

Test: python system/extras/boottime_tools/bootanalyze/bootanalyze.py\
-r -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10
and
atest android.app.usage.TimeSparseArrayTest

Bug: 76435713
Change-Id: I8f4df59e84fc196d0f63f9433d01ebc759f104c4
2018-03-27 16:30:56 -07:00
Lucas Dupin
41c25cee06 Unload wallpaper bitmap and release HwuiContext
To decrease sysui memory usage

Test: adb dumpsys meminfo
Fixes: 74534423
Change-Id: I3cb4a5927e8d6b20a7aeba3fda253f0ba4cc18f6
2018-03-27 16:30:07 -07:00
Christopher Tate
f88a8023d6 Merge "Regularize some wallpaper APIs" into pi-dev
am: 17b6490ce1

Change-Id: I3ce564689cea8a2172dc682813c7bd0dcec3b199
2018-03-27 23:02:45 +00:00
Dianne Hackborn
00f3c4333e Merge "Work on issue #74404949: Screen state usage API" into pi-dev 2018-03-27 22:40:51 +00:00
TreeHugger Robot
17b6490ce1 Merge "Regularize some wallpaper APIs" into pi-dev 2018-03-27 21:50:31 +00:00
Dianne Hackborn
ced54398cc Work on issue #74404949: Screen state usage API
Add usage stats tracking of screen time.  There are two new
events, one for when the device is an interactive state, the
other for when it is non-interactive.  Also add a whole new
usage stats API for retrieving aggregated data that is associated
with general events, not particular packages.  In this case
it allows you to find the time the device spent interactive
and non-interactive and the count of the transitions in to
each of those states.

Bug: 74404949
Test: atest CtsUsageStatsTestCases:UsageStatsTest\#testInteractiveEvents

Change-Id: Ibe6d55e2aecb0c8519b1358644378ec5c7a4250d
2018-03-27 13:27:20 -07:00
Vishwath Mohan
cf87df1531 Refactor FingerprintDialog to BiometricDialog
This CL changes FingerprintDialog into the more generic
BiometricDialog, which OEMs will be able to extend as necessary to
provide support for alternate biometric modalities.

Bug: 74831038
Test: m -j50 FingerprintDialog (from the associated CL on this topic)
      The app works and authenticates successfully.
Test: make update-api -j56

Change-Id: Ic398ef0a0b448be68dbe3330b30779f93f567243
2018-03-27 13:15:01 -07:00
Lucas Dupin
47a65c79c9 Hide activities when AOD comes in
Display timeout does not lock the keyguard, which means that
activities won't immediatelly disappear.

We need to factor AOD into to equation to make sure that
the user won't see phantom activities under the status bar
window when the display times out.

Fixes: 73120928
Test: open Settings, wait for display timeout
Test: Wait for display timeout, press power, see launcher
Test: Launch maps, start navigation (FLAG_SHOW_WHEN_LOCKED)
Test: Go to AOD, press power button: activity is occluding keyguard
Test: Press home: bouncer shows up
Test: Unlock: maps goes into pip mode
Test: Go to AOD and back to lock screen: keyguard visible
Test: Expand maps, go to AOD, back to lock screen: maps is occluding keyguard
Change-Id: I9b7512313af2f851d8788ec53de7880bce3bed2c
2018-03-27 12:12:14 -07:00
Andrii Kulian
17e5c4de18 Merge "Use transaction for local activity relaunch" into pi-dev am: dbac87dd40
am: cde24090c7

Change-Id: Id27647a68be252e83b854a4a414da0147d1108b1
2018-03-27 18:43:59 +00:00
Andrii Kulian
cde24090c7 Merge "Use transaction for local activity relaunch" into pi-dev
am: dbac87dd40

Change-Id: Iea33b11413999fe45f6d0e28d376b18e68fc5124
2018-03-27 18:24:50 +00:00
Andrii Kulian
dbac87dd40 Merge "Use transaction for local activity relaunch" into pi-dev 2018-03-27 17:24:42 +00:00
Jeff Sharkey
4b565cc5c7 Merge "API council requested tweaks to JobInfo." into pi-dev am: a9975804a2
am: 120b8aa395

Change-Id: Ibf29247be5317945b5326b6cfc58f07263f20eb9
2018-03-27 16:56:36 +00:00
Jeff Sharkey
120b8aa395 Merge "API council requested tweaks to JobInfo." into pi-dev
am: a9975804a2

Change-Id: I40217f8df995db19a59e0253b3d8d0440d57acb3
2018-03-27 16:43:25 +00:00
TreeHugger Robot
a9975804a2 Merge "API council requested tweaks to JobInfo." into pi-dev 2018-03-27 16:25:23 +00:00
Jeff Sharkey
8474ca0246 API council requested tweaks to JobInfo.
Split network estimates into separate download/upload values, and
add missing accessor methods.

Test: none
Bug: 74945408, 74032541, 74032817
Change-Id: I4c92b8a867690dc4f048701f13142655c3370958
2018-03-27 08:41:42 -06:00
Eric Sandness
209305e5a0 Merge "Permission Check For DPM.isDeviceProvisioned" into pi-dev am: 9f36c26f83
am: f21a3796cb

Change-Id: Ib1879c2e4da140611ee08cb32afef7cd2c2198dc
2018-03-27 12:42:53 +00:00
Eric Sandness
f21a3796cb Merge "Permission Check For DPM.isDeviceProvisioned" into pi-dev
am: 9f36c26f83

Change-Id: Ie798dde6593e6d0786f541a5c2512eb388ca5554
2018-03-27 12:36:01 +00:00
Eric Sandness
9f36c26f83 Merge "Permission Check For DPM.isDeviceProvisioned" into pi-dev 2018-03-27 12:25:53 +00:00
Yueming Wang
a91c4ac73c Merge "Add javadoc to explain ApnSetting conflict." into pi-dev am: 3cc7c4fc76
am: 5148a2e55f

Change-Id: I98a93f4f9dad2f50c18b5a14c3500d8598368a33
2018-03-27 10:45:58 +00:00
Yueming Wang
5148a2e55f Merge "Add javadoc to explain ApnSetting conflict." into pi-dev
am: 3cc7c4fc76

Change-Id: I2370b8cc9b5b730d2bf2c4f522d955e952f74bdb
2018-03-27 10:30:37 +00:00
Yueming Wang
3cc7c4fc76 Merge "Add javadoc to explain ApnSetting conflict." into pi-dev 2018-03-27 10:19:13 +00:00
Eric Sandness
d6382ed1a1 Merge "Permission Check For DPM.getUserProvisioningState" into pi-dev am: 1ad8367249
am: 135b4fa15c

Change-Id: I927b602ff188ec92c155503fe2629364ddd7d49f
2018-03-27 10:09:51 +00:00