Commit Graph

8989 Commits

Author SHA1 Message Date
Dmitry Dementyev
7d8c78a2c8 Refactor KeyStore Recovery Manager.
1) Parameters -> Params
2) Use byte[] for serivice parameters.
2) Move Exception into separate class.

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: I1b9a8748830f7deb9eeb57693f5a818a49a7aabe
2018-01-12 21:06:25 -08:00
Lucas Dupin
e1daf52b92 Merge "Allow custom keyguard "prompt reason"" 2018-01-13 01:13:26 +00:00
TreeHugger Robot
2d38a44938 Merge "Screenshot global actions item." 2018-01-13 00:34:42 +00:00
Alison Cichowlas
a2cd19e3d1 Screenshot global actions item.
Refactor TakeScreenshot code out of PhoneWindowManager;
add power menu item for Screenshot.

Test: runtest systemui

Change-Id: Ie8602386cd59f8fd991369d2117f7c4d76f65e41
2018-01-12 17:30:41 -05:00
TreeHugger Robot
d4f6cecae3 Merge "Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ... the feedback from API council" 2018-01-12 22:26:03 +00:00
Tony Mak
bece85dd0e Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ...
the feedback from API council

trySetQuietModeEnabled will be kept for a while until next
Launcher prebuilt is dropped.

FIXES: 71818127

Test: Build

Change-Id: I3d4fd64862c7d924b8da630522a30a3899676b4b
2018-01-12 22:25:32 +00:00
Narayan Kamath
2884b9f749 Merge "BatteryStats: Remove dead code." 2018-01-12 13:18:57 +00:00
TreeHugger Robot
e1e35401fe Merge "Big RecoverableKeyStoreLoader refactoring." 2018-01-12 05:47:04 +00:00
TreeHugger Robot
abff3d802e Merge "Add more WTFs to investigate TIME_TICK issue" 2018-01-12 04:00:58 +00:00
Dmitry Dementyev
ed89ea04e4 Big RecoverableKeyStoreLoader refactoring.
The change is based on API review.
1) package and class names update
2) Builders for Parcelables.
3) Use Constant for RECOVER_KEYSTORE permission defined in
android.Manifest.

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: I49f80acbb6dc0eb6d049e18e8cb0d1aa326dadb2
2018-01-11 18:39:18 -08:00
TreeHugger Robot
964be9ab42 Merge "pull absolute value for cpu time per frequency." 2018-01-12 00:54:34 +00:00
Makoto Onuki
5d93b834bb Add more WTFs to investigate TIME_TICK issue
Bug: 70670726
Test: Manual test

Change-Id: Id41431be777c69e553e0d51906ec5b48401f7bd3
2018-01-11 15:25:06 -08:00
TreeHugger Robot
0b2249786f Merge "Move A11y events throttling away from View(RootImpl)" 2018-01-11 22:57:35 +00:00
Ben Gruver
c4a5b5010f Merge "Implement harmful app warning at activity launch" 2018-01-11 22:20:38 +00:00
TreeHugger Robot
1ee8514101 Merge "Log attribution to statsd for pushed atoms." 2018-01-11 21:57:40 +00:00
Lucas Dupin
c80c67e7bc Allow custom keyguard "prompt reason"
Adds the possibility of presenting a custom message on
the keyboard if you're trying to dismiss the keyguard.

This is particularly useful when you're showing the
bouncer because custom authentication (SmarLock)
failed.

Test: launch FLAG_SHOW_WHEN_LOCKED activity and
      call KeyguardManager#requestDismissKeyguard
Fixes: 63940122
Change-Id: I0d88c0e59521887efa56d74874062b2b14970e4e
2018-01-11 13:15:31 -08:00
TreeHugger Robot
32308613b5 Merge "Concise toString for A11yEvent" 2018-01-11 20:38:49 +00:00
Ben Gruver
1ab3d6e56b Implement harmful app warning at activity launch
Bug: 63909431
Test: manual

Change-Id: I8a5497421cb8130af8cdd5129b0f6e1707a01e36
2018-01-11 12:13:29 -08:00
Narayan Kamath
d4ec80f3f1 BatteryStats: Remove dead code.
Test: m
Bug: 71530998
Change-Id: Id6e1c095d7f77e7d2066d5ff9b27d1ff6b79433d
2018-01-11 17:58:36 +00:00
Yangster-mac
afad8c6b43 Log attribution to statsd for pushed atoms.
Will avoid allocating temp objects in a following CL after the new StatsLog API is in.

Test: all statsd unit test passed.
Change-Id: Id5f6a908d9d42732d83d9985b1b34b29230a7f20
2018-01-11 09:33:13 -08:00
Chenjie Yu
1ee9b7413c pull absolute value for cpu time per frequency.
Test: cts test
Change-Id: I519616905ed8ec6afdaa7e1a0743e279009aa0e5
2018-01-11 09:27:28 -08:00
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
Eugene Susla
1abf48e8c0 Concise toString for A11yEvent
I found A11yEvents hard to parse in logs as they take ~3 lines on my
30" monitor, most of which denoting fields that rarely differ from default.

This CL adds an opt-in debug flag to not print default-valued fields, which
dramatically cuts down the noise when trying to parse logs.

Test: enable DEBUG in A11yManager, and observe logcat
Change-Id: I979200194ee3597c1a8501195437b4d4b8e21514
2018-01-10 17:35:37 -08: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
Eugene Susla
e4d31b3c10 Move A11y events throttling away from View(RootImpl)
..and also extract common code into a common superclass

This also preserves the order of the throttled events
(TYPE_VIEW_SCROLLED & TYPE_WINDOW_CONTENT_CHANGED) with regards to the rest
of events by flushing any pending throttled events immediately if another
event is requested to be sent.

Test: ensure no new a11y CTS failures
Change-Id: I948a16716521974393aaa1cf822d0a0324e9ce3a
2018-01-09 13:28:59 -08: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