Commit Graph

367277 Commits

Author SHA1 Message Date
Nicolas Geoffray
f5149cd387 More light grey APIs.
bug: 74221770
Test: m
Change-Id: I1c3b02983846a4dcc2d5b9f1bfeb5b4ffc7ae171
Merged-in: I1c3b02983846a4dcc2d5b9f1bfeb5b4ffc7ae171
2018-05-17 13:58:58 +00:00
Nicolas Geoffray
2891fe6c61 Merge "Add more APIs to light grey." into pi-dev 2018-05-17 08:44:35 +00:00
TreeHugger Robot
4ac4ef7c9e Merge "Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests" into pi-dev 2018-05-17 06:56:40 +00:00
TreeHugger Robot
ceeba4f6d6 Merge "Change status bar icons upon capability changes in the default network." into pi-dev 2018-05-17 06:46:39 +00:00
Dieter Hsu
7f91c59b3e Merge "Trigger action for app ops icon for keyboard navigation" into pi-dev 2018-05-17 06:04:13 +00:00
Dieter Hsu
3a9b5a98dc Trigger action for app ops icon for keyboard navigation
Bug: 79671932
Test: manually check talkback, switch access and kb navigation
Change-Id: I8a2ed0fc8e6b565e923954fa87e61a20c83438c0
2018-05-17 06:03:58 +00:00
Anarghya Mitra
678722f9d0 Change status bar icons upon capability changes in the default network.
SysUI status bar updates currently happen upon receiving either the
CONNECTIVITY_ACTION broadcast (which is deprecated) and
INET_CONDITION_ACTION broadcast (which is sent upon validation state
change of networks only).

This leads to status bar showing stale connectivity state. The correct
fix for this is to listen to changes in network state by registering
NetworkCallbacks (see more details in http://b/79286300#comment9).

In the P timeframe, not listening to the broadcasts completely is out of
scope. So this CL just listens for changing network capabilities of the
default data network, which should fix all the cases where the
broadcasts are not getting sent.

Later, when we stop relying on the broadcasts, we will also have to
override onAvailable and onLost (and perhaps the other callbacks too).

Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
Bug: 71904788
Change-Id: I2e58b9cfceb9937a0b54874dee116ead5339b37b
2018-05-16 22:23:56 -07:00
TreeHugger Robot
c6b368795f Merge "Add contentDescription to close button of recents onboarding tip view." into pi-dev 2018-05-17 05:04:38 +00:00
TreeHugger Robot
5f8e42f7f0 Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev 2018-05-17 05:01:33 +00:00
TreeHugger Robot
89a48a509e Merge "Add toString() method to PhysicalChannelConfig" into pi-dev 2018-05-17 04:45:41 +00:00
Tracy Zhou
7b7f6fcb5b Add contentDescription to close button of recents onboarding tip view.
Change-Id: I4fe8a7fce78ca7d572a5fc4259c0329963a0e461
Fixes: 79689820
Test: N/A
2018-05-16 20:50:23 -07:00
TreeHugger Robot
86b2581c16 Merge "[IdleController] Support dock scenario on idle or active judgement" into pi-dev 2018-05-17 02:56:42 +00:00
TreeHugger Robot
3a7fc6e5dc Merge "Add config config_smart_battery_available" into pi-dev 2018-05-17 02:43:22 +00:00
lpeter
318abc9324 [IdleController] Support dock scenario on idle or active judgement
In the current design, IdleController of Job service considers devices as ‘idle’ after 71 minutes of screen off. But under docking use scenario, devices screen might remain on for a very long time and it’s not necessary implying the device being interactive with users.
So create a mechanism for device to enter the ‘idle’ state that JobScheduler can kick off idle tasks.

Bug: 79183658
Test: atest DeviceStatesTest
Change-Id: I5b307ca51e28ffca63f79a9c43984c3b76e51629
2018-05-17 02:23:02 +00:00
TreeHugger Robot
8b49b9f736 Merge "Count app launch correctly." into pi-dev 2018-05-17 02:12:23 +00:00
Jorim Jaggi
db712bec4a Merge "Track launch time per windowingMode" into pi-dev 2018-05-17 01:59:17 +00:00
Jorim Jaggi
084c7064d8 Only WTF when trying to use remote animation in ActivityOptions
There is a legitimate use case when sending a PendingIntent from
within system_server, for example AlarmManager. However, we used
to WTF always in this case.

To fix this, we only WTF when trying to use a remote animation
that originates from within system_server.

Test: Boots, open apps
Change-Id: I7bafae9f899cbb8966cf22166270000ce887baba
Fixes: 79417917
2018-05-17 01:58:32 +00:00
TreeHugger Robot
645c8671ed Merge "Hide overlay windows when requesting media projection permission." into pi-dev 2018-05-17 01:56:42 +00:00
Selim Cinek
88bac47c75 Merge "Removing notifications that were kept around longer on click" into pi-dev 2018-05-17 01:35:27 +00:00
TreeHugger Robot
25e3827517 Merge "Do not reset security message when pattern resumes" into pi-dev 2018-05-17 01:28:36 +00:00
Selim Cinek
5f259a7d90 Merge "Fixed an issue where icons could remain white" into pi-dev 2018-05-17 01:22:41 +00:00
Selim Cinek
25185596cf Merge "Removing unused invert helpers" into pi-dev 2018-05-17 01:22:41 +00:00
Lei Yu
12adf9d6d7 Add config config_smart_battery_available
The default value is false, we can override it in overlay.

Bug: 79698191
Test: Build
Change-Id: I177e1c144f222ee32acce483f52d33910692ac3b
2018-05-16 17:57:22 -07:00
Suprabh Shukla
9e41b7fd19 Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests
UPDATE_APP_OPS_STATS lost the privilege to change app ops modes, so we
need to add this permission to the tests.

Test: atest com.android.server.job.BackgroundRestrictionsTest

Fixes: 79887147
Change-Id: I085c522cf3969a4cd7de7c47209eb83225b34254
2018-05-16 17:54:47 -07:00
TreeHugger Robot
0da4fbe5f4 Merge "Add new method refreshSummary(Preference)" into pi-dev 2018-05-17 00:43:04 +00:00
TreeHugger Robot
7450f0c0b2 Merge "Don't crash apps unfairly under FAS" into pi-dev 2018-05-17 00:41:24 +00:00
TreeHugger Robot
bd46f3f9d1 Merge "Fix issues starting recents animation when starting a new activity" into pi-dev 2018-05-17 00:40:49 +00:00
Tracy Zhou
60cd1d96a9 Count app launch correctly.
Previously we mis-count each different activity, regardless of the app
it belongs, as one app launch. We should instead count each different
app open, either created, or brought front as a different app launch,
but different tasks created from the same app is considered one launch.

Fixes: 79885137
Test: Manual test
Change-Id: I5b4b8bee9b0ed4aa23a4ea9eefdfa112b6442455
2018-05-16 17:25:04 -07:00
Wale Ogunwale
0527d9129d Adde back check to make sure Activity.recreate() is called on main thread.
Change-Id: Id8fa7e1c17ee3d42a19c82dc8cc1fec2de1757d1
Fixes: 79703568
Test: Existing test pass.
2018-05-16 17:23:48 -07:00
TreeHugger Robot
10f8ed0cf8 Merge "TextSelection.Builder.setId should take null as well" into pi-dev 2018-05-16 23:52:14 +00:00
Wale Ogunwale
d6bb8e958e Hide overlay windows when requesting media projection permission.
Done by setting PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS

Bug: 34170870
Test: manual
Change-Id: I57cb0f390d9a78e721c5ddce49a377d385002753
2018-05-16 16:42:29 -07:00
TreeHugger Robot
fa05aa0ff8 Merge "Moves Swipe Up overlay from Settings app to android.internal" into pi-dev 2018-05-16 23:38:31 +00:00
Lucas Dupin
94a1e01f7c Do not reset security message when pattern resumes
Change-Id: Ia18b98c97612a4998eda52356ef9eafd1c3ad48d
Fixes: 78235570
Test: manual
2018-05-16 16:24:20 -07:00
Fyodor Kupolov
1147ae1205 Merge "Update service map when application info is updated" into pi-dev 2018-05-16 23:12:52 +00:00
Eric Schwarzenbach
d211217cae Merge "Add constant for PhysicalChannelConfig UNSOL" into pi-dev 2018-05-16 22:47:41 +00:00
Jorim Jaggi
de8305a566 Track launch time per windowingMode
Some app launches go through different stacks. However, in P we
have one stack per task, which broke launch time tracking for
certain apps.

We fix this by tracking launch time per windowingMode, like we
do in ActivityMetricsLogger.

Test: Delete Chrome app data (to ensure FirstRunActivity gets
invoked, am start -n com.android.chrome/com.google.android.apps.chrome.Main -W
Fixes: 78302265
Change-Id: I739e63aeaf04d6336621e3d61f065259e518d9b4
2018-05-16 15:36:36 -07:00
TreeHugger Robot
31c4a48267 Merge "Update font chain linter to match latest font file" into pi-dev 2018-05-16 22:11:17 +00:00
TreeHugger Robot
08900edb09 Merge "Fix issue with split screen launch bounds" into pi-dev 2018-05-16 22:02:56 +00:00
Christopher Tate
e84ffd94e2 Don't crash apps unfairly under FAS
When an app calls startForegroundService() from a bg state (e.g. from a
broadcast receiver) but the user has placed it under FAS, it's incorrect
to crash the app:  it hasn't actually violated the fg/bg restrictions
contract.  Fail quietly instead, just like the legacy-app case when O+
restrictions are imposed on it.

Change-Id: I3e8ed2ea6bdbf4167249132ddf9b7c549b9a8062
Fixes: 79235311
Test: ApiDemos [before and after changing target sdk to O+]
Test: atest android.app.cts.ServiceTest
2018-05-16 14:36:12 -07:00
TreeHugger Robot
9e04425f9e Merge "Add contentDescription to status bar alarm" into pi-dev 2018-05-16 21:02:45 +00:00
TreeHugger Robot
8f4bed7de7 Merge "Fix KeyguardUpdateMonitor test" into pi-dev 2018-05-16 20:50:25 +00:00
TreeHugger Robot
98c2f7f9de Merge "Remove total_silence dnd icon" into pi-dev 2018-05-16 20:05:03 +00:00
Evan Laird
bee3eb8a38 Add contentDescription to status bar alarm
Test: turn on talkback; tap alarm; listen
Bug: 66964503
Change-Id: If416e7f96de0873dd6e920c7dcf6f23f88ce2204
2018-05-16 15:58:49 -04:00
Sunny Goyal
ce42933ae3 Merge "Adding utility method to dump encoded view hierarchy" into pi-dev 2018-05-16 19:56:45 +00:00
TreeHugger Robot
8776299ea9 Merge "Check mStatusBarWindowHidden bit when deciding to hide status bar" into pi-dev 2018-05-16 19:49:48 +00:00
Dianne Hackborn
cd835ba418 Merge "More app ops fg/bg tuning" into pi-dev 2018-05-16 19:48:54 +00:00
Lucas Dupin
7ff82b0a92 Fix KeyguardUpdateMonitor test
KeyguardUpdateMonitor's Handler runs on the main looper by design,
we need to ensure that whenever we're processing messages, that
they will also be received on the main looper.

Also unregistered a broadcast listener to avoid a possible race
condition

Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java
Bug: 79550837
Change-Id: I14a319da5c6bc46fd32675ae205e14a6228efaa4
2018-05-16 12:40:30 -07:00
Winson Chung
ba40d3a107 Fix issues starting recents animation when starting a new activity
- When avoiding moving the stack to the front, skip resuming as well (since
  the recents activity is starting in the back, and this prevents having
  to add more checks to skip moving the task to the front).

  The avoid-move-to-front option is only used for the recents animation,
  and only used when starting a new activity, so the effects of this change
  should only be limited to that logic.
- Also execute the app transition explicitly since it isn't triggered when
  we aren't resuming the newly started activity, which was causing the
  app-transition timeout to occur before launcher was next made visible
  and good to go).

Bug: 77154670
Test: Open app, install launcher in the background to kill the activity,
      then swipe up and ensure that it actually works instead of running
      the normal task-dismiss transition

Change-Id: I8c39d95e7a6ca65a099aba7285e852b2480804ca
2018-05-16 12:29:21 -07:00
hjchangliao
62b9844a8b Add new method refreshSummary(Preference)
Refactor code which update summary in updateState,
Move them into new method refreshSummary.

Fixes: 67997698
Fixes: 67997726
Test: make RunSettingsLibRoboTests
Change-Id: Icbcedcd08efa2103042ba40a756e8d4b615e1352
Merged-In: Icbcedcd08efa2103042ba40a756e8d4b615e1352
2018-05-16 19:03:05 +00:00
Nathan Harold
2636dd435a Add toString() method to PhysicalChannelConfig
We need to be able to print the PhysicalChannelConfig
for debugging/dumping, so adding a toString() method
to print in a format that we can easily digest and
is consistent with other Telephony log formatting.

Bug: 78791811
Test: manual / TelephonyDebugMenu
Change-Id: Ieb12f78a821369072ca9f03d28b28759836f84b4
2018-05-16 12:00:34 -07:00