Commit Graph

8727 Commits

Author SHA1 Message Date
TreeHugger Robot
709f160e4c Merge "Make settings themed apps have light nav" 2017-09-08 23:31:57 +00:00
Jeff Sharkey
ee6523014e Merge "Move "volume" commands over to Binder." 2017-09-08 21:55:51 +00:00
Jason Monk
ea506c67ec Make settings themed apps have light nav
This is needed to help with differential aging.

The nav needs to be white with a 1dp divider on it, so add support
for the divider and add hidden attribute to set the nav buttons
inverted.

Test: Open settings
Bug: 63630024
Change-Id: Iec6046baeb86fb554df73346df8652fee8b2736a
2017-09-08 21:29:40 +00:00
Daniel Sandler
560a6b8bff Merge "Cat rescue." into oc-mr1-dev am: 6d6cf285ea
am: 9cb9e4526d

Change-Id: I7da6305aec8b81668e19dd1a89747aa3d51ba744
2017-09-08 17:12:36 +00:00
Daniel Sandler
9cb9e4526d Merge "Cat rescue." into oc-mr1-dev
am: 6d6cf285ea

Change-Id: I316ee0123d12cef760177cb0853cb446cd3e91d6
2017-09-08 16:54:42 +00:00
Daniel Sandler
6d6cf285ea Merge "Cat rescue." into oc-mr1-dev 2017-09-08 16:41:38 +00:00
Matthew Ng
8fe8b86d55 Merge "Always enable nav and status bar opaque/translucency" into oc-mr1-dev am: 8823588e36
am: 204b740fb1

Change-Id: Ifb744f93e5c29ac613b3391af31e571813302f21
2017-09-08 03:09:58 +00:00
Matthew Ng
204b740fb1 Merge "Always enable nav and status bar opaque/translucency" into oc-mr1-dev
am: 8823588e36

Change-Id: I3e9656a16b3e82ce64ca91e64f214e08f12aec00
2017-09-08 02:55:15 +00:00
TreeHugger Robot
8823588e36 Merge "Always enable nav and status bar opaque/translucency" into oc-mr1-dev 2017-09-08 02:38:59 +00:00
Selim Cinek
ecfd5a064a Merge "Changed the accessibility experience for notifications" into oc-mr1-dev am: b41e47f55d
am: e5b610ec35

Change-Id: I7dfba344aa82b1141e934f121c527068fcb8b5a2
2017-09-08 02:21:32 +00:00
Selim Cinek
e5b610ec35 Merge "Changed the accessibility experience for notifications" into oc-mr1-dev
am: b41e47f55d

Change-Id: I09e3d6d35ebc266bfda75705ce2c0d968c529496
2017-09-08 02:09:02 +00:00
Selim Cinek
b41e47f55d Merge "Changed the accessibility experience for notifications" into oc-mr1-dev 2017-09-08 01:56:49 +00:00
Matthew Ng
e6b393b1a9 Always enable nav and status bar opaque/translucency
Removed the logic to enable or disable translucency and have it fully
enable all the time. Having it on has very or no impact on RAM.

Test: boot device and look at nav and status bar
Change-Id: Id9e613abc689ab8c1b53424aa92e864f75f8ed02
Fixes: 65286386
2017-09-07 23:42:16 +00:00
Selim Cinek
ecd0e1b2b1 Changed the accessibility experience for notifications
The expand button is now not labeling the notification
anymore since it was too wordy.

Change-Id: I14374b1a97389b8441fdf44eb4993954e765e89f
Fixes: 65123834
Test: use talkback and navigate to expand button, verify not speaking notification anymore
2017-09-07 15:45:27 -07:00
Jeff Sharkey
ace874b15b Move "volume" commands over to Binder.
Keep the old socket-based commands intact for awhile so we can
rapidly disable this change using the ENABLE_BINDER feature flag.

Define constants in AIDL to keep Java and C++ in sync.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.ExternalStorageHostTest
Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 13758960
Change-Id: Ie0d917c921b0b826e6bdf55a5d678b247ef352a6
2017-09-07 15:33:17 -06:00
Tarandeep Singh
66f4e1c3b5 resolve merge conflicts of 9a0d4240dd to master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I0c20323087f1a2d8eb1ead6cfc60a69e42d2d51b
2017-09-07 11:28:01 -07:00
Tarandeep Singh
9a0d4240dd Merge "Revert "Make settings themed apps have light nav"" into oc-mr1-dev
am: 0fbca56f1b

Change-Id: Idfd4900e068242b42c4cfc249697bd88aec7e057
2017-09-07 16:23:12 +00:00
Tarandeep Singh
0fbca56f1b Merge "Revert "Make settings themed apps have light nav"" into oc-mr1-dev 2017-09-07 00:59:05 +00:00
Dan Sandler
7bcd6aa4f7 Cat rescue.
Change-Id: Ibeea21e14f52b018e9c130df17560c4d39f23ed3
Bug: 64305456
Fixes: 37926266
Fixes: 38349532
Test: adb shell am start -n com.android.egg/.neko.NekoActivationActivity ; \
      adb shell am start -n com.android.egg/.neko.NekoLockedActivity ; \
      echo "pick a dessert then press enter" ; read foo ; \
      adb shell cmd jobscheduler run -f com.android.egg 42 ; \
      adb shell am start -n com.android.egg/.neko.NekoLand ; \
      echo "longpress your new cat and touch the share icon"
2017-09-07 00:23:04 +00:00
Tarandeep Singh
4efdd567ea Revert "Make settings themed apps have light nav"
This reverts commit 4548420674.

The above change causes restart due to ClassCastException.

Test: Manually:
      1. Open the Dialer app.
      2. Focus into the edit field to show the IME.
      3. Open the notification shade.
      4. Tap the gear icon to show the system settings.
      5. Make sure the system no longer restarts due to
         ClassCastException.
Bug: 63630024
Fixes: 65413752
Change-Id: I4a17ba2f8d70f99009f091c2aaad5cd5f4e9b31c
2017-09-06 22:31:57 +00:00
Jason Monk
5e9219d10b Merge "Fix shift in share sheet" into oc-mr1-dev am: 3a31bdede5
am: 8ca3a3661b

Change-Id: I01fd171b46d36e0604b169283934b2af0c7add97
2017-09-06 18:12:52 +00:00
Jason Monk
8ca3a3661b Merge "Fix shift in share sheet" into oc-mr1-dev
am: 3a31bdede5

Change-Id: I3e1b3f3acf77a9df31b3f38b942bcbc728efffeb
2017-09-06 18:04:40 +00:00
Jason Monk
3a31bdede5 Merge "Fix shift in share sheet" into oc-mr1-dev 2017-09-06 17:50:36 +00:00
Jason Monk
3ab68966b8 resolve merge conflicts of f2cd0f616e to master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Iffb48ac8e596f854f5cbc37d93ddf0a4e3ee75af
2017-09-06 13:16:28 -04:00
Jason Monk
fd44738090 Merge "Make settings themed apps have light nav" into oc-mr1-dev
am: 181d4a8096

Change-Id: Ibf53883d951936a543c28ac070ea515625914a35
2017-09-06 17:00:38 +00:00
Jason Monk
4548420674 Make settings themed apps have light nav
This is needed to help with differential aging.

The nav needs to be white with a 1dp divider on it, so add support
for the divider and add hidden attribute to set the nav buttons
inverted.

Test: Open settings
Bug: 63630024
Change-Id: Iec6046baeb86fb554df73346df8652fee8b2736a
2017-09-06 09:33:36 -04:00
Rubin Xu
d375476bda Merge "Fix resetPasswordWithToken before user unlock" into oc-mr1-dev am: 2e21fba2b5
am: c17f1d412b

Change-Id: If147939b9c74803ca2c6177e770736b0e82fdc96
2017-09-06 12:27:42 +00:00
Rubin Xu
c17f1d412b Merge "Fix resetPasswordWithToken before user unlock" into oc-mr1-dev
am: 2e21fba2b5

Change-Id: I83688cd83cf18f37b3507ebe69d29dbc2669178b
2017-09-06 12:19:51 +00:00
Rubin Xu
7cf4509c31 Fix resetPasswordWithToken before user unlock
1. Fix system server crash when resetPasswordWithToken is called before use
   unlock, due to DPMS enforces user is unlocked when calculating password
   sufficiency.
2. Propogate new password metric from LockSettingsService to DPMS after a
   password reset with token, and fix a bug where stale quality was used.

Bug: 64923343
Bug: 64928518
Bug: 65286643
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testResetPasswordWithTokenBeforeUnlock
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: runtest frameworks-services -p com.android.server.locksettings
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminHostSideTestApi24#testRunDeviceOwnerPasswordTest
Test: runtest frameworks-core -c android.app.admin.PasswordMetricsTest
Test: runtest frameworks-services -c com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ibb3736547b3b36da4a8a67af711e08a38427aa56
2017-09-05 14:49:00 +01:00
Tarandeep Singh
379f158b77 Merge "Add multi-display support to FloatingToolbar." into oc-mr1-dev am: 01b6ff0178
am: a040bae50a

Change-Id: I29cea04f2a2401ee8aa50794db3612216e50a29c
2017-08-31 21:58:43 +00:00
Tarandeep Singh
a040bae50a Merge "Add multi-display support to FloatingToolbar." into oc-mr1-dev
am: 01b6ff0178

Change-Id: Ic3c317435ba408522b2b26f74c4df5a772871566
2017-08-31 21:38:33 +00:00
Julian Mancini
831458a65a Remove PDF Thumbnail functionality
am: 30175b958e

Change-Id: Id58212dce0b51eada2a31936f1614d773d89ecad
2017-08-31 21:11:16 +00:00
Tarandeep Singh
01b6ff0178 Merge "Add multi-display support to FloatingToolbar." into oc-mr1-dev 2017-08-31 20:45:48 +00:00
Julian Mancini
30175b958e Remove PDF Thumbnail functionality
Bug: 64225798
Test: Removing Functionality
Change-Id: Id02f1b50d161c6f2779c9f65c579383c18028b65
2017-08-31 14:26:10 -06:00
Ruchi Kandoi
1fecd07bef Merge "Do not call setAlwaysButtonEnabled if the activity doesn't support defaults." into oc-mr1-dev am: c1235a1ff2
am: 0caca11df4

Change-Id: Ia47decb98a151786fc9a5262eff20c55814b6170
2017-08-31 20:14:15 +00:00
Ruchi Kandoi
0caca11df4 Merge "Do not call setAlwaysButtonEnabled if the activity doesn't support defaults." into oc-mr1-dev
am: c1235a1ff2

Change-Id: I109b96ae365e102428fbe6c7174ebd140145e293
2017-08-31 20:01:13 +00:00
TreeHugger Robot
c1235a1ff2 Merge "Do not call setAlwaysButtonEnabled if the activity doesn't support defaults." into oc-mr1-dev 2017-08-31 19:47:42 +00:00
Jason Monk
a38fe85e75 Fix shift in share sheet
Was counting the padding twice, its included in height already.

Test: visual
Change-Id: I012c6db585eb5fac0d5cee87971d94740c520f07
Fixes: 63647502
2017-08-31 15:42:51 -04:00
Tarandeep Singh
c9c83a9ccb Add multi-display support to FloatingToolbar.
DecorView has no support for multi-display (bug 65172902).
Until that is done, the easy fix for displaying cut, copy, paste
on non-default display is to modify FloatingToolbar.
FloatingToolbar uses context of Default display. Changed it
to use context of the window (which makes it multi-display
compatible).

Fixes: 64837794
Test: Manual using AAe's KitchenSink test app
bit FrameworksCoreTests:android.widget.TextViewActivityTest
bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I513f1aac1c0d22355c996247e3bf56c6d812348f
2017-08-31 17:51:50 +00:00
Kang Li
0f99c1e74e Merge "Fixes NPE thrown in sort if new targets are added." into oc-mr1-dev am: f10b0d000e
am: adc714972a

Change-Id: Ie23c44a463fdd07be590c136fdda55bc0f6f0220
2017-08-31 04:06:02 +00:00
jackqdyulei
f334560a2f Merge "Add static lock in PowerProfile" into oc-mr1-dev am: dcadf1934a
am: 9950104f7a

Change-Id: I9e9c2399969d57f389c4cbe37c77d57d5e4e7175
2017-08-31 03:53:58 +00:00
Kang Li
adc714972a Merge "Fixes NPE thrown in sort if new targets are added." into oc-mr1-dev
am: f10b0d000e

Change-Id: I6befef8d1f27666e5a6c721378ba5c02cc769947
2017-08-31 00:52:18 +00:00
TreeHugger Robot
f10b0d000e Merge "Fixes NPE thrown in sort if new targets are added." into oc-mr1-dev 2017-08-31 00:34:57 +00:00
jackqdyulei
9950104f7a Merge "Add static lock in PowerProfile" into oc-mr1-dev
am: dcadf1934a

Change-Id: I3ae1a99852d5c9c4a87ee402b3e2e1cc88b8bd0d
2017-08-31 00:06:06 +00:00
TreeHugger Robot
dcadf1934a Merge "Add static lock in PowerProfile" into oc-mr1-dev 2017-08-30 23:35:07 +00:00
Kang Li
0935f152c7 Fixes NPE thrown in sort if new targets are added.
Test: manually tested it to verify that it works as expected.

Bug: 65035399
Change-Id: Ie99b05c5324f47cbac66687d7301ef62a7c83e55
2017-08-30 21:32:08 +00:00
Jorim Jaggi
11b58a917c Add theme attribute for light navigation bar
Such that apps can set this in the theme and get a splash screen
that has a light navigation bar if requested.

Test: LightBarThemeTest
Change-Id: Iee93c49743f66ecad76e0a056ba16a1785f22784
Fixes: 62429332
2017-08-30 15:37:19 +02:00
jackqdyulei
0e3504c0fa Add static lock in PowerProfile
Before this cl, there exists nullpointer crash in PowerProfile in
following part:

"sPowerMap.containsKey(key) && (Double) sPowerMap.get(key) > 0"

To my best knowledge, it is because in
PowerUsageSummary.SummaryProvider, we may create batterystats in
meantime:
1. setListening is invoked in worker thread, in which we will force
update the batterystats.
2. In setListening we will register receiver, which may update
batterystats through onReceive in UI thread.

This cl adds static lock in PowerProfile, making the init part can
only be accessed by an thread at a time.

Bug: 64209576
Test: Manual
Change-Id: I00bc094f44416669b4f0e11e647b0fae2ff61013
2017-08-29 15:30:42 -07:00
Ruchi Kandoi
65d76c1213 Do not call setAlwaysButtonEnabled if the activity doesn't support defaults.
13405c5529 introduced a bug where
activities using ResolverActivity without dafaults/always option get selected,
the ResolverActivity tries to set a default causing a crash.

Test: Test Application using TECH_DISCOVERED intent filter
Bug: 38358120
Change-Id: Id36635d84963bcf1dc7e55938e2370542ed291ab
2017-08-29 15:19:21 -07:00
Jiongxuan Gao
d55fd0bab1 Merge "Fix ListView can not be moved after rotation." into oc-mr1-dev am: 10477217f5
am: 4c04055489

Change-Id: I131b1b5178ce927322f522aeef3fe1f18a2f9fbd
2017-08-29 20:33:04 +00:00