Commit Graph

10832 Commits

Author SHA1 Message Date
Adam He
fa1ba40359 Merge "Fixed autofill workflow to call onConnected before handling pending requests." 2019-02-20 17:39:19 +00:00
Christine Franks
339aa01bc6 Merge "Remove ColorDisplayController" 2019-02-20 17:01:55 +00:00
TreeHugger Robot
e4c287516b Merge "Removed debugging logging that was left in." 2019-02-20 11:41:58 +00:00
Andrei-Valentin Onea
9599d06761 Merge "Use sampled value in hidden api logger" 2019-02-20 10:29:43 +00:00
TreeHugger Robot
fe71582e23 Merge "Introduce a way to turn a fullscreen window into freeform" 2019-02-20 09:43:51 +00:00
Yunfan Chen
d967af828b Introduce a way to turn a fullscreen window into freeform
Change the exitFreeformMode to toggleFreeformMode. Now the original
maximize button will work as maximize/restore button.

Test: go/wm-smoke
Test: Manual test.
Bug: 117075771
Bug: 124475503

Change-Id: I268d053ed0e665b8ac5e56019c6ae8f8b7ee1317
2019-02-20 15:51:40 +09:00
TreeHugger Robot
fb9dcf288e Merge "Sharesheet - Support sharing from downloads" 2019-02-20 04:14:55 +00:00
Chris Wailes
69f2f0fd69 Removed debugging logging that was left in.
This patch removes some debugging logging that was left in in a previous
CL.

Test: compile and boot
Change-Id: Ia852a28bb9327c26da10637019057f07c9e2668a
2019-02-19 15:26:26 -08:00
Adam He
f0d7409454 Fixed autofill workflow to call onConnected before handling pending requests.
Fixes: 124391206
Test: atest CtsAutoFillServiceTestCases
Test: manual verification with DebugService
Change-Id: Ia8519fd934d3cdc3b55ed0baa326ec9f270b334b
2019-02-19 14:48:57 -08:00
Christian Wailes
18f7673fcd Merge "Add blastula pool system properties" 2019-02-19 18:15:48 +00:00
Lucas Dupin
311af9ea4b Merge "Improve the performance when loading image wallpaper colors" 2019-02-19 16:57:38 +00:00
Matt Pietal
f38e9d25ae Sharesheet - Support sharing from downloads
Don't assume that all shared files have a DISPLAY_NAME index.
Downloads provide a different title index, so check the cursor
index for -1 values. Also make sure to close the cursor when done.

Bug: 124448157
Test: atest ChooserActivityTest, manually test sharing a download
Change-Id: I0beda6b72fb74c65fc4665c8234f147667925784
2019-02-19 09:44:18 -05:00
Raj Mamadgi
50ca62a11b Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa am: 0f174795e4
am: 03549b860a

Change-Id: I4d6037597d60b5990db0b95bdee3cb69c500ec49
2019-02-18 18:36:10 -08:00
Raj Mamadgi
03549b860a Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa
am: 0f174795e4

Change-Id: Ie32376993dcc8b06f3d2254d6aecdb9a4f843236
2019-02-18 18:22:41 -08:00
Raj Mamadgi
0f174795e4 Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch"
am: 43d11758fa

Change-Id: I6b248297523070983c63b5dd870e235eea5ee59c
2019-02-18 18:13:45 -08:00
wilsonshih
0e490d9e77 Improve the performance when loading image wallpaper colors
When SystemUI start up, ColorExtractor will get wallpaper colors so
status bar can use it to update theme, however, this will also block
SystemUI start up process if the wallpaper is image wallpaper.
In order to break the latency, we can extract getWallpaperColors
method from ColorExtractor's contructor, and do it at another thread,
so it won't block SystemUI start up.

Bug: 124279857
Test: atest ColorExtractorTest
Test: Manual test change theme feature can work normally.

Change-Id: I8589b28a17b0a2b33b4bbbda2265080af983f26a
2019-02-19 10:06:22 +08:00
Treehugger Robot
43d11758fa Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" 2019-02-19 02:02:35 +00:00
Andrei Onea
31bde16393 Use sampled value in hidden api logger
The hidden api logger interface also receives the actual sampled value.
This is an intermediate step before a new logging method is added.

Test: m
Bug: 119217680
Change-Id: I707a2624a254a80391cdae277dd59daa503d055f
2019-02-18 16:16:17 +00:00
Svet Ganov
23c88db8f4 Add request object for querying historical ops
Test: atest CtsAppOpTestCases

bug:123253745

Change-Id: Ia473f9298a83214f2fdfb1062992b48357965003
2019-02-17 07:35:52 -08:00
Mathieu Chartier
0bccbf7984 Add blastula pool system properties
This patch adds the following properties to DeviceConfig:
* BLASTULA_POOL_ENABLED
* BLASTULA_POOL_SIZE_MAX
* BLASTULA_POOL_SIZE_MIN
* BLASTULA_POOL_REFILL_THERSHOLD

The BLASTULA_POOL_ENABLED property is checked by ZygoteProcess but not
currently used due to an existing bug (b/123409530).  This will be
enabled by go/ag/6162164.  Until then the code path is tested via log
inspection.

The remaining properties are checked by ZygoteServer.  Values are
clamped to ensure that they cannot be set to values that are harmful to
the device.

Since device_config is not available in the Zygote the system properties
interface is used instead.

Bug: 123524494
Bug: 68253328

Test: adb shell device_config put runtime_native blastula_pool_enabled true
Test: manually verify the property change is observed

Change-Id: I2b675afd9fbc1cbb0e8bc1c491cfdbbb612d0d3b
2019-02-15 17:07:37 -08:00
Philip P. Moltmann
7d717842c5 Merge changes from topic "actuallyUsePermissionControllerToRestoreBackup"
* changes:
  Expose permission flag APIs for tests
  Move permission restore code into permission controller.
2019-02-15 21:15:36 +00:00
Makoto Onuki
9f5521ad89 Merge "Add BackgroundThread as Executor directly." 2019-02-15 19:34:00 +00:00
Philip P. Moltmann
4845667a81 Move permission restore code into permission controller.
- Split system-server internal interface in two. One accessible only
  inside of the services part of system server. One accessible
  everywhere. This is necessary as the second part needs to be
  accessible by the PermissionBackupHelper. But the former uses internal
  data structures that should not be moved into android.permission.
- Remove old delayed permission restore code from
  PermissionManagerService and Settings. This code now lives in
  permission controller
- Keep the logic to remember which users still have delayed permissions
  left. It is quite expensive to call into permission controller for
  ever install of an app, hence this check is necessary. Currently this
  mirrors the original logic. This can be improved further later.

Test: Built
Change-Id: Ibc1d5183c361dc55896882db1f7b765e1bee6e84
2019-02-15 08:57:16 -08:00
TreeHugger Robot
a45b41f5ab Merge "Sharesheet - Check number of uris being shared" 2019-02-15 16:45:14 +00:00
Christine Franks
41e6a70ddb Remove ColorDisplayController
Bug: 123352608
Test: builds

Change-Id: I7fb6785ba34673869eab8aa8651292dce0436e93
2019-02-14 16:48:16 -08:00
Makoto Onuki
8341526d99 Add BackgroundThread as Executor directly.
Bug: 123774494
Test: atest AppBindingHostTest

Change-Id: I12715f4b2dd444f1d9b1a5a53ae385af497fb52d
2019-02-14 15:43:12 -08:00
TreeHugger Robot
8cfc6d83a9 Merge "Sharesheet - landscape mode" 2019-02-14 22:47:27 +00:00
James O'Leary
08211297cf Merge "Encapsulate state & transcription in hints bundle" 2019-02-14 21:25:24 +00:00
Matt Pietal
3087bca219 Sharesheet - Check number of uris being shared
It's possible to use SEND_MULTIPLE while only sending 1 item.
Adjust the text in this case so that we don't show:
"{fileName} + 0 files".

Better handle errors when attempting to extract file names
and thumbnails.

Bug: 120419296
Test: atest ChooserActivityTest
Change-Id: Ib381974ffbf61c98031ada287bf2533172e6cf9f
2019-02-14 15:40:46 -05:00
TreeHugger Robot
faf86628aa Merge "Sharesheet - broken file preview with profile switch" 2019-02-14 20:30:34 +00:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Matt Pietal
acabc574e7 Sharesheet - broken file preview with profile switch
Capturing any security exceptions for file content preview, and
logging for now

Bug: 124203056
Test: Bug report -> Share -> Switch profile
Change-Id: Ia22f5d646795d09eae34ca498bee4442665783cd
2019-02-14 11:02:05 -05:00
James O'Leary
9c9dd98ee0 Encapsulate state & transcription in hints bundle
Continuation of ag/6226654; edits made per Svetoslav's last comments.

Bug: 122740752
Bug: 123080754
Test: blueline-userdebug build completes successfully.

Change-Id: I3e43137eb6e0d8cae77e14d331150d5a05ede07c
2019-02-14 15:24:08 +00:00
Matt Pietal
18bbd821fa Sharesheet - landscape mode
Need to limit the width of the content preview area
to a maximum, especially for landscape mode

Bug: 120419296
Test: Visual inspection of landscape/portrait
Change-Id: Ia1d6dc00ca4e0bcb0d06b0d30c24be25b20528e8
2019-02-14 08:40:58 -05:00
Blake Kragten
cb308d9c61 Power Monitor Addition framworks base:
Frameworks Base section of power monitor addition. Since IPowerStats
does not have a java interface, we needed to make a native interface
into the code. I followed how the LowPowerStats collection is being
done.

Native code is located in
com_android_server_am_BatteryStatsService.cpp. We are calling the
getEnergyData to get all rails energy data that has been collecting from
boot. This energy data is collected in uWs (microWatt seconds). After
the rail data is collected at each update in the RailStats class, the
wifi and cellular total energy values will contain the energy that all
rails associated with the specific subsystem will have.

We update and collect the energy data using battery stats and propagate
it to telephony metrics. When we collect the total energy for an update
we need to zero out the energy data so it can be accumulated correctly.

1/31: Added modemRailEnergy and wifiRailEnergy to Volta historian.

Bug: 115929961
Test: adb shell dumpsys activity service TelephonyDebugService --metrics
Results Examples:
	Energy consumed by modem (mAh): 2.41
	Energy Rails consumed by modem (mAh): 2.76
Dumpsys historian results:
	  +4m23s712ms (2) 100 cc511a18 modemRailChargemAh=0.34 wifiRailChargemAh=1.17 +wifi_scan stats=0:"dump"
         +10m24s089ms (2) 100 c4511a18 modemRailChargemAh=0.71 wifiRailChargemAh=1.77 stats=0:"write"
         +11m24s228ms (3) 100 c4511a19 volt=4315 charge=3988 modemRailChargemAh=0.77 wifiRailChargemAh=1.94 wifi_signal_strength=2 stats=0:"battery-state"

Change-Id: I97521a03204968079e61f3de86640d4f1a580255
2019-02-13 13:23:37 -08:00
Misha Wagner
dc5beb50c8 Merge "Add KernelCpuThreadReader minimium CPU usage threshold" 2019-02-13 10:31:15 +00:00
Matt Pietal
af5c88b87e Merge "Sharesheet - file preview support" 2019-02-12 21:09:46 +00:00
Matt Pietal
46d828c99e Sharesheet - file preview support
Support sharing 1 or more non-image type files, with potential
for system generated thumbnail image

Bug: 120419296
Test: atest ChooserActivityTest

Change-Id: I17c44435bb0444035e2ec7675cbc367b75cc3a8e
2019-02-12 07:28:15 -05:00
Misha Wagner
648d20359f Add KernelCpuThreadReader minimium CPU usage threshold
Configurable using KernelCpuThreadReaderSettingsObserver.

Test: atest KernelCpuThreadReaderTest#testReader_filtersLowUsage
Change-Id: I92bb5fbee6b56bff00c61f359e8281966e2882c1
2019-02-12 11:05:29 +00:00
Martijn Coenen
470d6165a7 Merge "Fix min uid/gid allowed for child zygotes." 2019-02-12 09:29:42 +00:00
Olivier Gaillard
36b80caa6e Add a flag to disable optional dimensions.
This is to decrease the size of the data. We are not using some of the
dimensions we collect the data for currently.

Test: atest LooperStatsTest BinderCallsStatsTest
Change-Id: I9e51eadb0001e4e7bc5250e5e72b1d4c082ee6d9
2019-02-11 17:08:30 +00:00
Martijn Coenen
70bcf8cf8d Fix min uid/gid allowed for child zygotes.
This should start at the app zygote isolated UID range, not the
regular isolated UID range.

Bug: 123758436
Test: atest CtsSeccompHostTestcases
      atest android.app.cts.ServiceTest#testActivityServiceBindingLru

Change-Id: Ic1b1ee02ab86a2e0f6a02525b466e6f5fdcdaf6c
2019-02-11 15:26:59 +01:00
Andrei-Valentin Onea
d8c3bf5bb2 Merge "Fix regression in Dalvik:HEAP_TOTAL" am: deb35fb00b
am: 4d65d3cbac

Change-Id: I7e370c252f14988d60711c1fa777832825d54d48
2019-02-11 03:50:48 -08:00
Andrei-Valentin Onea
deb35fb00b Merge "Fix regression in Dalvik:HEAP_TOTAL" 2019-02-11 11:26:46 +00:00
Lucas Dupin
de86b3754b Merge "Apply colors extracted from wallpaper to clock faces." 2019-02-10 18:12:46 +00:00
Sudheer Shanka
82c999d7f9 Merge "Remove sandbox specific bind mounts from root namespace." 2019-02-08 00:36:00 +00:00
Ahmed ElArabawy
dd4895f5b4 Merge "Statsd atom: Add WifiLock type" 2019-02-07 23:25:45 +00:00
Raj Mamadgi
7b6ae663d6 Fix for testLifecycleOnMoveToFromSplitScreenRelaunch
The configuration change occurs twice and the CallbackTrackingActivity is
relaunched twice, this causes the test to fail on some devices with certain
densities.

BUG:123342948

Change-Id: Idbf79a48a55477445cd70a6f76c104d7669bf2fa
Signed-off-by: Raj Mamadgi <r.mamadgi@samsung.com>
2019-02-07 22:17:32 +00:00
Mathieu Chartier
9c3874add3 Merge "Add use_app_image_startup_cache feature flag" am: b5a69ab764
am: b2f6041624

Change-Id: Ic4f04f06056c5e1036345373118a00eccd2a4497
2019-02-07 14:01:18 -08:00
Robert Snoeberger
0397c843a3 Apply colors extracted from wallpaper to clock faces.
Bug: 122301289
Test: Looked at clock faces with various wallpapers.
Change-Id: I5c0bda2fa1f3da783315a10e1c2f8047d63e1e6d
2019-02-07 15:12:00 -05:00