Commit Graph

10563 Commits

Author SHA1 Message Date
Evan Laird
a194630221 Merge "Add StatusBarManager#disableForSetup(boolean) @SystemApi" 2019-01-30 00:20:19 +00:00
TreeHugger Robot
e2c6ce4b0b Merge "Log notification location and assistant-generated when smart reply sent" 2019-01-29 22:46:44 +00:00
Amith Yamasani
173af94d25 Merge "Introduce a new process state for location fg service" 2019-01-29 20:07:13 +00:00
Neil Fuller
a05d9b63b5 Merge "Track ZygoteHooks API changes in libcore" 2019-01-29 19:47:12 +00:00
Gustav Sennton
13edb4977d Log notification location and assistant-generated when smart reply sent
When logging that a smart reply was sent, now also log where the
notification (containing the reply) is shown, and whether the smart
reply was generated by the assistant (or provided by the application
itself).

Bug: 120767764
Test: click smart reply from notification shade and from heads-up to
ensure correct location is logged.
Test: click smart reply with system-generated replies vs. app-generated
replies to ensure we log generatedByAsssistant correctly.
Change-Id: I43e1f5a07732d578d7890a6f059432c6d6e5038c
2019-01-29 15:23:49 +00:00
Neil Fuller
555d8b7eca Track ZygoteHooks API changes in libcore
Track ZygoteHooks API changes in libcore to make
the ZygoteHooks API more consistent.

Bug: 111742291
Test: build / boot / treehugger
Change-Id: Ie65aac6539cffc90663807791511b95a6cd61ab4
2019-01-29 15:18:40 +00:00
Andrei Onea
6cd1b70a1e Initialise hidden api usage logger pre-fork
Change-Id: I80f82092ef779a7dc1f1322cb7c05ebf5e59939b
Topic: hidden-api-reporting-upcall
Test: m
Bug: 119217680
2019-01-29 12:37:21 +00:00
TreeHugger Robot
77f4bee9d6 Merge "Send share events to App Predictor." 2019-01-28 20:12:31 +00:00
Tarandeep Singh
e8d1eaa1dc Merge "Pipe IME state into insets (IME transitions 3/n)" 2019-01-28 18:14:34 +00:00
George Hodulik
f2b0d34ee9 Send share events to App Predictor.
Bug: 123377860
Test: Checked logs that the shortcutIds and ComponentNames
match in convertToChooserTargets and sendClickToAppPredictor.

Change-Id: I25ae43d1c26ef41ba1076a7648be35ecc04b664d
2019-01-28 17:46:17 +00:00
David Brazdil
f7ad5af4a8 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981 am: fe642a81d9
am: 47b4ad2c13

Change-Id: I6a85a7960825a6f2471338b17f8b9cf8497b8e10
2019-01-28 08:33:18 -08:00
David Brazdil
47b4ad2c13 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981
am: fe642a81d9

Change-Id: I927ed3371a0f6df6182999fb188d040af28289e6
2019-01-28 08:24:04 -08:00
Tarandeep Singh
2cbcd7ffbf Pipe IME state into insets (IME transitions 3/n)
Add a IME state changes callback that pipes IME state into the Inset
consumer.

Bug: 118599175
Bug: 118118435
Test: atest InsetControllerTest
Test: atest InsetSourceConsumerTest
Test: atest ImeInsetsSourceConsumerTest

Change-Id: Id878226418e19cdf0499a0094f1d5c47fea33125
2019-01-28 16:58:32 +01:00
David Brazdil
faedae5981 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" 2019-01-28 14:23:43 +00:00
David Brazdil
576da0582f Add @UnsupportedAppUsage to methods known to be used by apps
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 123308819
Bug: 122291025
Test: m appcompat
Change-Id: Iafd62b8ece0d19268fad65086134a1e7369bc0bb
2019-01-28 12:46:33 +00:00
Charles Chen
3dedec3272 Notify SystemUI when ActivityDisplay is ready
Bug: 120748674
Test: atest ActivityManagerMultiDisplayTests#testNavBarNotShowingOnDisplayWithoutDecor * 100
Test: atest ActivityManagerMultiDisplayTests#testNavBarShowingOnDisplayWithDecor * 100
Test: atest ActivityManagerMultiDisplayTests#testNavBarNotShowingOnPrivateDisplay * 100
Test: atest SystemUITests
Change-Id: I302a35b9b860ab881b60c6407edabb2da16b75f8
2019-01-28 14:39:34 +08:00
TreeHugger Robot
4e78dec0d8 Merge "Add api to change charging state update delay" 2019-01-25 22:42:06 +00:00
George Hodulik
3bbd43a9a2 Merge "Use App Prediction Service to get share suggestions." 2019-01-25 20:56:34 +00:00
George Hodulik
69d4a08308 Use App Prediction Service to get share suggestions.
Bug: 111701043
Test: Manual test with an AppPredictionService that just queries ShortcutManager.

Change-Id: I7faa904d0446e9045017d2dd893dd6b4dbee85a1
2019-01-25 10:19:39 -08:00
Ng Zhi An
0941120f79 Add api to change charging state update delay
This adds a field Settings.Global.BATTERY_CHARGING_STATE_UPDATE_DELAY
that overrides the value of battery_charged_delay_ms in
Settings.GLOBAL.BATTERY_STATS_CONSTANTS.

This new field can then be set for experimentation, and easily reset to
default by deleting, or setting it to a negative value.

Expose a method in BatteryManager to set a value for this new setting.

Bug: 111360323
Test: adb shell settings put global battery_charging_state_update_delay 999
adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=999
adb shell settings put global battery_charging_state_update_delay -1
adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=90000
Change-Id: Ic308af938836a1f9c235cec341808b6c6c28d22d
2019-01-25 09:14:44 -08:00
Evan Laird
edd016fa3f Add StatusBarManager#disableForSetup(boolean) @SystemApi
Allows a system app with the STATUS_BAR permission to toggle a default
set of disable flags during device setup.

Test: adb shell cmd disable-for-setup [true/false]
Bug: 114003699
Change-Id: Ieebcf7f8b101e408efe461ca64ad1114d96729c9
2019-01-25 10:41:07 -05:00
Tarandeep Singh
ed3e728055 Merge "Pre-render input method (IME transitions 1/n)" 2019-01-25 02:36:52 +00:00
Christian Wailes
a6fc60e47c Merge "Enables the use of the blastula pool." am: 33a09948e5
am: b649fda0ef

Change-Id: I489ce1f3a9aa072d9627376448bb6bf25b026d5e
2019-01-24 18:31:37 -08:00
Christian Wailes
3763cc1859 Merge "Added Java Language methods for blastula management." am: 0d9156a9c0
am: 8a2facfa4c

Change-Id: Iec674c1318ae87310ff3327fc5f10d48e3191af5
2019-01-24 18:23:22 -08:00
Christian Wailes
33a09948e5 Merge "Enables the use of the blastula pool." 2019-01-25 02:06:47 +00:00
Christian Wailes
0d9156a9c0 Merge "Added Java Language methods for blastula management." 2019-01-25 02:06:28 +00:00
Chris Wailes
cffbf1c9b4 Enables the use of the blastula pool.
This commit adds the code necessar to initialize and use the blastula
pool during application launching.  Highlights include:
* Modifying ZygoteState to allow the creation of blastula session
sockets
* Modified application startup to track if a web view process is being
created.
* Initialization of the blastula pool during Zygote initialization.
* Blastula lifecycle management via reporting pipes and event FDs.
* Launching of applications via the blastula pool.

The creation, maintenance, and use of the blastula pool can be disabled
by setting Zygote.BLASTULA_POOL_ENABLED to false.  When this feature is
disabled applications will launch as they did before this patch.

Topic: zygote-prefork
Test: make & flash & launch app & check log message
Bug: 68253328
Change-Id: I46c32ad09400591e866b6c6121d5a9b0332092f3
Merged-In: I46c32ad09400591e866b6c6121d5a9b0332092f3
2019-01-24 16:50:05 -08:00
Chris Wailes
c37ebe1313 Added Java Language methods for blastula management.
This commit adds Java Language wrappers for native blastula management
functions.  No changes are made to the application lifecycle.

Topic: zygote-prefork
Test: make & flash & launch apps & check log for messages
Bug: 68253328
Change-Id: Ie9fd0aea2952dbd3baaca22c820e9af700f5e89d
Merged-In: Ie9fd0aea2952dbd3baaca22c820e9af700f5e89d
2019-01-24 16:50:02 -08:00
Mehdi Alizadeh
c8dfe98014 Merge "Use old API only if no share targets are published" 2019-01-25 00:37:26 +00:00
Tarandeep Singh
eadb1392f8 Pre-render input method (IME transitions 1/n)
Pre-render input method views and window when EditText receives focus.
This is a pre-requisite for implementing better IME transitions.

Strategy:
Once EditText receives focus, startInput is called. If optimization is
available, IME views and window (SoftInputWindow) are created and
rendered. Until user taps on EditText or showSoftInput() is called, IME
window remains invisible. This pre-rendered window is kept around until
EditorInfo changes or new connection is started (onStartInput).
IME window's visibility will be set using new Insets controller API
rather than conventional client-side dialog.show().

Behavior:
- This is just IME side preparation CL. No performance improvements yet.
- There should be no user perceptible behavior change.
- As long as IME developers were following official lifecycle, they
  shouldn't perceive any behavior change.

Availability:
This optimization, once fully implemented, will be available when:
 - Device is not "Low memory"
 - AND Master flag DebugFlags.FLAG_PRE_RENDER_IME_VIEWS is set.
 - ViewRootImpl.USE_NEW_INSETS_API is enabled

Bug: 118599175
Bug: 111084606
Test: atest CtsInputMethodTestCases
Test: atest CtsInputMethodServiceHostTestCases
Test: atest ActivityManagerMultiDisplayTests
Test: Tested with 4 IMEs and didn't preceive any behavior change.
Scenarios tested:
  1. With and without hardware keyboard
  2. Screen rotation w/ fullscreen mode.
  3. split-screen

Change-Id: I1a6300fe167eb205ee2b4214a6e270a52ebae062
2019-01-25 00:47:21 +01:00
Christine Franks
69aab0df31 Merge "Move color modes to ColorDisplayService" 2019-01-24 22:54:09 +00:00
Mehdi Alizadeh
85fd3d5c8b Use old API only if no share targets are published
In ShareSheet, when querying Direct Share Targets using both old and new
APIs, only query via old API if the app is not publishing any share
targets in its resources (publishing via ShrotcutManager)

Bug: 111698461
Test: Manual test using test app
Change-Id: I4be46110ac4ae6de64a9675a19df5994c4fa65c8
2019-01-24 13:49:31 -08:00
Philip P. Moltmann
a0f377fbe8 Merge "Set assistant as a role" 2019-01-24 20:51:41 +00:00
Chenbo Feng
66b3687364 Merge "Use delta reads for per uid traffic stats" am: 48f46ac83c am: d5cc53302f
am: 8d027dd829

Change-Id: Ia2d3aad715dc1a2ff65ea9ec1a5badeda47c47a6
2019-01-24 11:57:26 -08:00
Chenbo Feng
8d027dd829 Merge "Use delta reads for per uid traffic stats" am: 48f46ac83c
am: d5cc53302f

Change-Id: Ibc1e7d1b6be2915d4000cda2b7a9141ac387f7f0
2019-01-24 11:12:54 -08:00
Christine Franks
d154fe5dbf Move color modes to ColorDisplayService
Bug: 123352608
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: Iee9034721366723a7b2faba0ea2adc9479c6fec5
2019-01-24 10:58:00 -08:00
Irina Dumitrescu
b866a5b6e6 Merge "Add API for proxy configuration over VPN." am: 8b5917965d
am: ac77629a1e

Change-Id: I51930e4ed99cc3df10db2c8bbef27989f0a06a46
2019-01-24 10:20:32 -08:00
Chenbo Feng
48f46ac83c Merge "Use delta reads for per uid traffic stats" 2019-01-24 18:16:25 +00:00
Treehugger Robot
8b5917965d Merge "Add API for proxy configuration over VPN." 2019-01-24 17:52:22 +00:00
Christine Franks
79ea8c34a1 Merge "Move Night Display methods to ColorDisplayManager" 2019-01-24 17:05:39 +00:00
TreeHugger Robot
97b0ca1ea9 Merge "Use new app preload path for WebView zygote." 2019-01-24 16:35:51 +00:00
Jeff Sharkey
578da0fc8d Merge "Parse missing mount option." 2019-01-24 16:24:45 +00:00
Irina Dumitrescu
044a436ac9 Add API for proxy configuration over VPN.
Test: runtest -x
frameworks/base/tests/net/java/com/android/server/ConnectivityServiceTest.java
&& atest HostsideVpnTests
Bug: 76001058
Change-Id: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
Merged-In: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
2019-01-24 16:07:20 +00:00
Olivier Gaillard
058d3ab8d5 Merge "Enable binder calls stats." 2019-01-24 15:52:53 +00:00
TreeHugger Robot
06928f4422 Merge "Add API for proxy configuration over VPN." 2019-01-24 15:09:18 +00:00
Irina Dumitrescu
18622d3d35 Add API for proxy configuration over VPN.
Test: runtest -x
frameworks/base/tests/net/java/com/android/server/ConnectivityServiceTest.java
&& atest HostsideVpnTests
Bug: 76001058
Change-Id: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
2019-01-24 12:54:19 +00:00
TreeHugger Robot
6136239d9d Merge "Voice state + transcription in VoiceInteractionSvc" 2019-01-24 10:04:18 +00:00
Christian Wailes
84635a4d74 Merge "Enables the use of the blastula pool." 2019-01-24 07:17:34 +00:00
Chris Wailes
ba4c2eb189 Enables the use of the blastula pool.
This commit adds the code necessar to initialize and use the blastula
pool during application launching.  Highlights include:
* Modifying ZygoteState to allow the creation of blastula session
sockets
* Modified application startup to track if a web view process is being
created.
* Initialization of the blastula pool during Zygote initialization.
* Blastula lifecycle management via reporting pipes and event FDs.
* Launching of applications via the blastula pool.

The creation, maintenance, and use of the blastula pool can be disabled
by setting Zygote.BLASTULA_POOL_ENABLED to false.  When this feature is
disabled applications will launch as they did before this patch.

Topic: zygote-prefork
Test: make & flash & launch app & check log message
Bug: 68253328
Exempt-From-Owner-Approval: No changes to files with owners between revisions
Change-Id: I46c32ad09400591e866b6c6121d5a9b0332092f3
2019-01-24 07:17:14 +00:00
Jeff Sharkey
5bf9d72d12 Parse missing mount option.
Unrecognized mount option was causing early finish, leaving seinfo
and many other arguments undefined.

Bug: 123319678
Test: manual
Change-Id: If69f4d18e57ffd826075c33c47ec9bdd31e3badf
2019-01-23 23:52:14 -07:00