Commit Graph

8966 Commits

Author SHA1 Message Date
TreeHugger Robot
e6050a4a0f Merge changes from topic "messaging_people"
* changes:
  Clipping to the top roundness when scrolling
  Made the notification side paddings consistent
  Changing messaging style and overall visual adoption
  Improved the MessagingStyle API with Person
  Added People to the Notification API
2018-01-11 03:07:09 +00:00
TreeHugger Robot
22d5e0c2e1 Merge "DecorView#mNavigationGuard is gone" 2018-01-10 23:14:51 +00:00
Yohei Yukawa
8f162c6e84 DecorView#mNavigationGuard is gone
With this CL, DecorView#mNavigationGuard that handles navigation bar
only for IME windows [1] is finally gone and replaced with the
standard mechanism to handle navigation bar layout padding /
background color.

This CL addresses multiple anomalies regarding how the following APIs
work for IME windows.

 * Window#setNavigationBarColor()
   * Previous behavior:
    - Only works for Color#TRANSPARENT [2].
    - Ignores FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS.
   * New behavior:
    - Works as documented.
    - Requires FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS to work.

 * SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION flag
   * Previous behavior:
    - The system automatically sets
      SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION to the IME windows [3].
    - Does not work as documented. Content area is not extended to the
      navigation bar area.
    - Manually unsetting SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION can cause
      unexpected layout, because the system expects that this flag is
      always set to the IME window.
    - Had a special logic for FLAG_LAYOUT_IN_OVERSCAN [4].
   * New behavior:
    - Works as documented.
    - Can set/unset as necessary.

From the viewpoint of IME developers, this CL enables IME windows to
 * correctly extend the input view to the navigation bar region by
   using SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION as documented, instead of
   relying on a special hack with FLAG_LAYOUT_IN_OVERSCAN hack.
 * use Window#setNavigationBarColor() to easily change the navigation
   bar background color, like other non-floating windows.

Note that SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR is not yet supported for
IME windows, which will be implemented in a subsequent CL.

 [1]: I6a93f30aec83f1cecfb854073046cbc87ab4aa66
      ae3349e1c3
 [2]: Iea77915ecc55eedaf19899e72c44f704ba9d852c
      0a9d1ea015
 [3]: I460912ee7c117480c57b947ed31eca330819f32c
      c68d577f29
 [4]: Ic38f204a892bf34e8dae65990d5aa8c95af555d8
      9b32a35aa7
 [5]: I4b10a19641bd3ce6c43e7629404b6f202d4186e8

Fix: 25706186
Bug: 69002467
Test: ThemedNavBarKeyboard sample [5] works for the following cases
      * Extended Dark Navigation Bar
      * Separate Dark Navigation Bar
      * Floating Mode (if the target app uses dark navigation bar)
Change-Id: I664630099b6eb3fe31675444ba94944cb0eb98b0
2018-01-10 13:18:09 -08:00
Dianne Hackborn
84c699a4b9 Merge "Swap "foreground service" and "bound foreground service" proc states." 2018-01-10 21:14:31 +00:00
Selim Cinek
afeed29bdc Changing messaging style and overall visual adoption
The messaging style is changed to a bubble-less design.
In addition are we also updating a few spacings in
order for it to look nicer / more balanced.

Test: manual
Change-Id: I43326bd8a23cd1f1d5964d2d6740fde99d29c7e4
2018-01-10 20:14:03 +00:00
Sunny Goyal
39a57e7a97 Merge "Adding support for overriding app-awidget properties at runtime" 2018-01-10 17:46:07 +00:00
TreeHugger Robot
df449ee9c3 Merge "Revert "Move zygote's seccomp setup to post-fork"" 2018-01-10 02:31:08 +00:00
Victor Hsieh
551e5af0d4 Revert "Move zygote's seccomp setup to post-fork"
This reverts commit a188dbc050.

Reason for revert: selinux denials, see b/71768585

Change-Id: Ic1b81e146b52b68445ba634de39657f199107da3
2018-01-10 00:48:54 +00:00
Dianne Hackborn
10fc4fdd13 Swap "foreground service" and "bound foreground service" proc states.
It has become apparent that apps running foreground services is
a much more important (and less common) state than all the various
ways apps run in the foreground because of the system being bound
to them or whatever else.  So push this up about the bound foreground
service state, right after the explicit TOP state.  Then we can
keep these together as "the app is explicitly running in the
foreground for some reason", etc.

Bug: 70808931
Test: CtsAppTestCases
Change-Id: Icfc1905b8e3eb60ddf26118c61ec1ef095659436
2018-01-09 15:55:55 -08:00
gaochong
6404cb7f65 Merge "Fix ResolverActivity don't show items" am: e251bb72ed am: 7fd3a8d08b
am: 0a0a49a022

Change-Id: I8e623f3e8493d1147fcf873fb6491e83b2c2edfe
2018-01-09 21:34:50 +00:00
gaochong
0a0a49a022 Merge "Fix ResolverActivity don't show items" am: e251bb72ed
am: 7fd3a8d08b

Change-Id: Ia76b696bcd1ec5763ec3da41fae4c8c2bce9b820
2018-01-09 20:47:22 +00:00
TreeHugger Robot
df86ddb3f9 Merge "Move zygote's seccomp setup to post-fork" 2018-01-09 19:43:10 +00:00
Jeff Sharkey
834ce2d499 Merge "Start using new reserved disk GID." 2018-01-09 19:27:41 +00:00
gaochong
cbe2c55a69 Fix ResolverActivity don't show items
ResolverActivity sort the list resolved intent with AsyncTask.
The method sort hold CountDownLatch to wait the time-consuming
operation. In some case, the operation doesn't end and the
CountDownLatch can't be released.The default excutor of AsyncTask
is serial. There should release CountDownLatch in destroy()
to avoid this case.

Change-Id: Ie10126f735d9f511dfe086c21f3f5ffaeb831086
Signed-off-by: gaochong <gaochong@xiaomi.com>
Test: manual - repeatedly test ResolverActivity show correctly
Bug: 71730061
2018-01-09 14:02:23 +08:00
Sudheer Shanka
710971a286 Merge "Add a global setting to turn on/off the proc state cpu times tracking." 2018-01-09 02:28:51 +00:00
TreeHugger Robot
973e7eba7e Merge "Work on issue #70859548: Reduce amount of time spent collecting pss data" 2018-01-09 01:29:00 +00:00
Sudheer Shanka
5c19b897dd Add a global setting to turn on/off the proc state cpu times tracking.
Bug: 66953194
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Test: atest hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BstatsCpuTimesValidationTest.java
Change-Id: Id26476ad77c95994f358d8bd59b6c2e6513c4c54
2018-01-08 16:25:16 -08:00
Sudheer Shanka
65e919ae8c Merge "Attribute procstate cpu times to correct battery/screen on/off buckets." 2018-01-08 23:51:40 +00:00
Victor Hsieh
a188dbc050 Move zygote's seccomp setup to post-fork
Before this change, seccomp filter setup is as early as in zygote's main
function.  To make it possible to split app and system server's filter,
this postpone the setup to after fork.  It also starts to call app
specific and system server specific setup function.

Test: (cts) -m CtsSecurityTestCases -t android.security.cts.SeccompTest
Bug: 63944145

Change-Id: I748735b478405098beac1e200d911c13ea60e380
2018-01-08 12:43:00 -08:00
Sunny Goyal
9080cf2781 Adding support for overriding app-awidget properties at runtime
This would allow apps to customize the behaviour/appearance of a widget based
on the app state

Test: atest CtsAppWidgetTestCases:UpdateProviderInfoTest
Bug: 63931362
Change-Id: I1eef705975c2310af7311b74acc23c089fb6d1ec
2018-01-08 11:39:22 -08:00
Jeff Sharkey
4a539441d8 Start using new reserved disk GID.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

Define a permission for the GID so we can grant it to system apps,
and add the GID to core apps needed for system stability.  (The list
was mostly derived from filling a disk and seeing what caused the
device to fall over.)

Test: builds, boots
Bug: 62024591
Change-Id: Icdf471ed3bed4eeb8c01f1d39f0b40c1ea098396
2018-01-07 19:40:29 -07:00
TreeHugger Robot
6557fb49a2 Merge "Notifier: Chained attribution support for noteLongPartialWakeLock[finish|start]" 2018-01-07 23:09:27 +00:00
Robert Berry
5daccec818 Add API to remove recoverable keys
Test: adb shell am instrument -w -e package com.android.server.locksettings.recoverablekeystore com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ib69e730467974d34ffe4a700bd6aaf4543a524ae
2018-01-06 19:16:25 +00:00
Lucas Dupin
555e680089 Turn default gradient into solid black
am: 12dad0c4fc

Change-Id: I6f5c702487f46395bd1930d943782d1a9b6bac5d
2018-01-06 03:34:46 +00:00
TreeHugger Robot
65b1cfe0a1 Merge "Re-commit: Smooth scroll RecyclerView on a11y ACTION_SCROLL_*" 2018-01-06 01:16:31 +00:00
TreeHugger Robot
551d9aa68a Merge "Single color scrim" 2018-01-05 23:22:32 +00:00
Lucas Dupin
12dad0c4fc Turn default gradient into solid black
Test: visual
Bug: 66957450
Change-Id: I6a34a35912e4dd4594565f88636ce89689d26f2f
(cherry picked from commit e7476addec)
2018-01-05 22:59:49 +00:00
Lucas Dupin
4dcacd3719 Single color scrim
Removed gradient and kept brightest color.

Test: atest ./tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Test: visual
Bug: 64122537
Change-Id: I75cba32172a5869f3d8a57ab9955bffcba60db76
2018-01-05 13:28:27 -08:00
TreeHugger Robot
bf1b0b04bf Merge "Bugfix: wakeup alarms logging" 2018-01-05 19:29:17 +00:00
TreeHugger Robot
e780e8d2b3 Merge "Add createNewItem() to RingBuffer util class." 2018-01-05 10:59:28 +00:00
Narayan Kamath
e6c4fdc6fb Merge "BatteryStatsImpl: Support chained attribution for BT events." 2018-01-05 09:16:21 +00:00
Narayan Kamath
96a9256fd8 Notifier: Chained attribution support for noteLongPartialWakeLock[finish|start]
Test: BatteryStatsNoteTest
Bug: 62390666
Change-Id: I1f393b475cb18171f4d24f8774f3509a00e2a404
2018-01-05 09:03:41 +00:00
Narayan Kamath
c21066b0e7 Merge "BatteryStats: Add WorkChain support for WiFi events." 2018-01-05 09:02:18 +00:00
TreeHugger Robot
48e5682a58 Merge "Remove unused userId parameter from RecoverableKeyStoreManager." 2018-01-05 08:22:18 +00:00
Jeff Sharkey
8eb783b21e FBE devices now fully support adoptable storage.
We've finished all the underlying work to support adoptable storage
on FBE devices, so remove the code that was disabling it by default.

Introduce feature flag to make it easier to detect devices that
support adoptable storage.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 29923055, 25861755, 33252673, 37289651
Change-Id: I3630d690c9e66c7e41e316a4263ea2eb1e752ad3
2018-01-04 18:50:14 -07:00
Dmitry Dementyev
1429831ac8 Remove unused userId parameter from RecoverableKeyStoreManager.
Bug: 66499222
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ibf09724839cbdbf7172462ce0368278c7e65155f
2018-01-04 17:31:50 -08:00
Maurice Lam
e4a03006e6 Merge "Revert "Fixed RTL alignment issue in suggested language list"" 2018-01-04 22:05:12 +00:00
Tej Singh
6f724c4b9e Bugfix: wakeup alarms logging
Log wakeup alarms regardless of whether or not the device is on battery

Test: ran cts tests
Change-Id: Ib582bbb82da51f60a3bb75e940d53f0552c3ca86
2018-01-04 11:09:07 -08:00
Narayan Kamath
0ebc96ce8f BatteryStatsImpl: Support chained attribution for BT events.
These changes are slightly different than the ones for Wifi etc.
We need to keep track of the list of WorkChains attributed to a given
UID in order to log stop events for each of them if the BT process
crashes (or goes away) and we receive a call to noteResetBluetooth..[].

Test: BatteryStatsTests
Bug: 62390666

Change-Id: I4aaa2260cdc509ca08c4fa4838df77cda870ef75
2018-01-04 16:35:53 +00:00
Narayan Kamath
728c8a0874 BatteryStats: Add WorkChain support for WiFi events.
The changes are straightforward, the only change outside of BatteryStats
is to use the new WorkSource.isEmpty API to account for WorkChains in a
given WorkSource.

Bug: 62390666
Test: BatteryStatsBackgroundStatsTest, BatteryStatsNoteTest, WifiLockManagerTest
Change-Id: I1dff43b6f2a09877e3af4442bfe8a8fd80b1ba74
2018-01-04 14:18:22 +00:00
Maurice Lam
22e6c7b95c Revert "Fixed RTL alignment issue in suggested language list"
This reverts commit a2c1917e37.

Reason for revert: b/71341685

Change-Id: I453d9e38143645f9b9d62d874eb8a84e3133b555
2018-01-03 20:25:24 +00:00
Ahmed ElArabawy
f88571ffa1 Proper calculation for overall WiFi MC statistics
In current implementations the WiFi MC statistcs are calculating by
aggregating the per uid statistics accross all UIDs. This does not
result in the correct values in case of time overlapping acquisitions of
MC wakelocks by same or different UIDs
This commit creates a separate Timer instance that tracks the actual
time spent with MC Enabled.

Bug: 69854369
Test: Manual Test

Change-Id: I78533f48300bc9faccc374d684698dae647bde5d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-01-03 09:06:42 -08:00
Ricky Wai
62bc5f84be Merge "Make Network watchlist use ConfigUpdater to get watchlist" 2018-01-03 14:16:40 +00:00
Narayan Kamath
695cf72f26 Support chained attribution for alarm related WorkSources.
.. those passed down via the AlarmManager.set() variant that takes
a WorkSource. This required a minor re-arrangement of code in
the ActivityManager. We now treat WorkSources as opaque in the
AlarmManager and simply push them down to the AM (and eventually
to BatteryStats) where they are picked apart.

Test: BatteryStatsNoteTest, AlarmManagerTest
Bug: 62390666
Change-Id: I118f1a1d16aafa41b4f401f1a6a3ba4d2d5eca8f
2018-01-03 09:16:56 +00:00
Sudheer Shanka
e544d16220 Attribute procstate cpu times to correct battery/screen on/off buckets.
- Remove redundant 'mPluggedCounts' data from LongSamplingCounterArray
- Update relevant tests

Bug: 66953194
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Test: atest hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BstatsCpuTimesValidationTest.java
Change-Id: I1f32eef0d4a0fe3b6124c07d016cf0ff8967b956
2018-01-02 17:59:27 -08:00
Alan Viverette
f51fa7deac Always allow button stacking
Previously did not allow stacking on small screens, which resulted in
buttons clipping at the ending edge of the dialog.

Change-Id: Iaa36cb657556197018b192c24c4043e6395c74a2
Fixes: 37507002
Test: manual
2018-01-02 16:18:48 -05:00
Yangster-mac
2087716f2b 1/ Support nested message and repeated fields in statsd.
2/ Filter gauge fields by FieldMatcher.
3/ Wire up wakelock attribution chain.
4/ e2e test: wakelock duration metric with aggregated predicate dimensions.
5/ e2e test: count metric with multiple metric condition links for 2 predicates and 1 non-sliced predicate.

Test: statsd unit test passed.

Change-Id: I89db31cb068184a54e0a892fad710966d3127bc9
2018-01-01 10:01:36 -08:00
Sudheer Shanka
d20627f50c Add createNewItem() to RingBuffer util class.
Test: atest tests/net/java/com/android/internal/util/RingBufferTest.java
Change-Id: Idec1f354fc702ead0603341806c6c4ff863c0522
2017-12-31 00:05:36 -08:00
Eugene Susla
cb37da8b13 Merge "Add a 'unbounded method refs only' clause to PooledLambda javadoc" 2017-12-27 18:17:23 +00:00
Narayan Kamath
bbab9c4e28 Merge "Support WorkChains for WakeLock start / stop / change events." 2017-12-27 08:43:37 +00:00