Commit Graph

10855 Commits

Author SHA1 Message Date
Susi Kharraz-Post
b5de2782de Merge "Add logging for profile switching for sharesheet" 2019-02-22 18:00:34 +00:00
Susi Kharraz-Post
0446fab756 Add logging for profile switching for sharesheet
We want to know which profile people share from and if users are
switching from work to personal profile when sharing and vice versa.
This adds the current profile to the sharesheet and also logs when the
profile is switched.

Bug: 124503277
Test: Added new unit tests for ChooserActivity and IntentForwardActivity
Change-Id: Ideb83682bf3395258ff457988f4a3e9f519a844c
2019-02-22 08:47:16 -05:00
Olivier Gaillard
51f669e8bf Increase binder/looper sampling.
It will reduce the resource usage of binder/looper instrumentation.

Test: atest BinderCallsStatsTest LooperStatsTest
Change-Id: Ide843ae3e4d30a58f547df1cd338ffb5531e9426
2019-02-21 16:06:39 +00:00
TreeHugger Robot
3ffadce8b9 Merge "Optimized Content Capture workflow by caching some state at the application level." 2019-02-21 05:34:34 +00:00
Jeff Sharkey
f862750207 Merge "Flesh out CR.getTypeDrawable() with more details." 2019-02-21 04:39:53 +00:00
Felipe Leme
326f15a392 Optimized Content Capture workflow by caching some state at the application level.
Content Capture for an activity and/or package is only available when the Content Capture service
explicitly whitelists it. As the whitelist is kept at system-server level, it's better to fetch that
info when the application is started and cache it locally, so we can optimize the
ContentCaptureManager APIs to return quickly when it's disabled.

This CL also caches other values such as the buffer parameters.

Test: atest CtsContentCaptureServiceTestCases

Bug: 120494182
Bug: 121202151

Change-Id: I9d5211bca496ffa85ba9efc2a7bb32411834b787
2019-02-20 18:44:05 -08:00
Christian Wailes
a2f67c96cc Merge "Updated Zygote IPC related comments." am: f8881b6821 am: c850654edc
am: 49574608ae

Change-Id: Ie14f3a5377599f3542dedc0a42a87ca3a41ca9ba
2019-02-20 16:56:15 -08:00
Christian Wailes
49574608ae Merge "Updated Zygote IPC related comments." am: f8881b6821
am: c850654edc

Change-Id: I15a33cdf792727f58b3d89d86ccf454536737868
2019-02-20 16:12:40 -08:00
Makoto Onuki
3d44f6379c Merge "Fix boost charging, also expose test API" 2019-02-20 22:06:05 +00:00
Lucas Dupin
b53be1d28c Merge "Improve the performance when loading image wallpaper colors" into pi-dev
am: 98684aa82a

Change-Id: I4ff2e38dc3f40ccf6289ffbee69eed23c96fa4dc
2019-02-20 12:43:52 -08:00
Chris Wailes
b13bfc5682 Updated Zygote IPC related comments.
Bug: 124637285
Test: None; comment only changes
Change-Id: Ie567715a1ee08cdf65e3135aa75e3bd95ef5ab0d
2019-02-20 11:19:54 -08:00
Jeff Sharkey
806bece3be Flesh out CR.getTypeDrawable() with more details.
Providing icons for MIME types is generally useful, but we also
need to provide a label and content description.  This interface
can be extended internally to surface details about special MIME
types, such as "image/vnd.google.panorama360+jpg".

Bug: 122887179, 120791890
Test: atest android.content.cts.ContentResolverTest
Change-Id: Ibe655896315b9a9662dfdace3ee8ffacf1302eb8
2019-02-20 18:26:16 +00:00
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
Xin Li
4ba3b12efb Merge changes from topic "PPRL.190205.001"
* changes:
  Fix merge problems with cherry-picking "Add notification settings to backup&restore" change into pi-dev
  DO NOT MERGE - Merge PPRL.190205.001 into master
2019-02-20 16:25:58 +00:00
Andrei-Valentin Onea
98b52faf43 Merge "Use sampled value in hidden api logger" am: 619ed85e81
am: 818e8c1bf2

Change-Id: I2cb5ac6bfae6cc98398688a4b5695260a863578a
2019-02-20 07:15:07 -08:00
Andrei-Valentin Onea
818e8c1bf2 Merge "Use sampled value in hidden api logger"
am: 619ed85e81

Change-Id: Ib6ff5b5aa75d1b35bf91748f260bab14aa6eabab
2019-02-20 07:04:44 -08:00
Andrei-Valentin Onea
619ed85e81 Merge "Use sampled value in hidden api logger" 2019-02-20 14:49:10 +00:00
Adrian Roos
381584a50b Merge "Fix potential memory leak in SomeArgs" am: 8a71e01423
am: 17f5ae9e26

Change-Id: I3e8c2c3f2e6cf0e119b1c6dcc1249096ea538e8c
2019-02-20 05:18:06 -08:00
Adrian Roos
17f5ae9e26 Merge "Fix potential memory leak in SomeArgs"
am: 8a71e01423

Change-Id: I007ff55f39a3239c530c30306409b498ac066801
2019-02-20 05:03:59 -08:00
Andrei Onea
3513d3c8b0 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

(cherry picked from commit 31bde16393)

Change-Id: I3345bdcdf57e1f60970c85572e503d7b33af7148
Merged-In: I707a2624a254a80391cdae277dd59daa503d055f
2019-02-20 12:56:52 +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
Bin Chen
5f0521e3b9 Fix potential memory leak in SomeArgs
When recycling SomeArgs in pool, some fields are not set to null.
Which result potential memory leak as SomeArgs in pool still holds
the reference object.
To fix this issue, clear all args when recycling.

Change-Id: Ie730c3889da948c60ef746ddbe2e926d94ad7e06
Signed-off-by: Bin Chen <bin0515@gmail.com>
Signed-off-by: Wei Huang <hwbest.v@gmail.com>
2019-02-20 17:40:02 +08: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
Makoto Onuki
897f63664a Fix boost charging, also expose test API
Bug: 124437856
Bug: 111360323
Test: atest CtsBatterySavingTestCases
Change-Id: I7cf25e9dca669ae1bb5d9bb62ada35a59ca26f6f
2019-02-19 13:12:09 -08:00
Christian Wailes
18f7673fcd Merge "Add blastula pool system properties" 2019-02-19 18:15:48 +00:00
wilsonshih
5abc71b27b 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.
Merged-In: I8589b28a17b0a2b33b4bbbda2265080af983f26a
Change-Id: I8589b28a17b0a2b33b4bbbda2265080af983f26a
2019-02-19 16:57:59 +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