Commit Graph

10721 Commits

Author SHA1 Message Date
Lucas Dupin
be1fd400a8 Merge "Ignore wake-up sensor right after sleeping" 2019-02-26 06:31:32 +00:00
Lucas Dupin
8a13aa7b7b Ignore wake-up sensor right after sleeping
Otherwise the phone might not turn off if the sensor false-triggers

Test: manual
Test: atest DozeSensorsTest
Change-Id: If1be8158c5b342e9d892dd55f1a7db156bbf1a17
2019-02-25 19:38:57 -08:00
Kiyoung Kim
92011a08e4 Merge "Schematize Crypto state system property" 2019-02-26 01:44:28 +00:00
TreeHugger Robot
5daa6d5c67 Merge "Added a DeviceConfig property for Content Capture idle timeout to unbind from system server." 2019-02-25 21:10:50 +00:00
TreeHugger Robot
3d61f89275 Merge "Address API council feedback" 2019-02-25 19:21:52 +00:00
Felipe Leme
e764fa2892 Added a DeviceConfig property for Content Capture idle timeout to unbind from system server.
Test: manual verification
Bug: 111276913

Change-Id: I3c8f0ffc5fbadfc033ef6574cab7e0ec1419b38e
2019-02-25 09:42:14 -08:00
TreeHugger Robot
05675bc0cf Merge "Made AbstractRemoteService.getRemoteRequestMillis() optional." 2019-02-23 03:25:46 +00:00
John Reck
e57475e6c9 Address API council feedback
Bug: 125027187
Bug: 125026102
Bug: 125026678
Bug: 125026234
Bug: 125027586
Bug: 125026476
Bug: 125026103
Bug: 125026237
Bug: 125027248
Bug: 125026475
Bug: 125027487
Test: RenderNodeTests
Change-Id: Ic63ea7a3cfe359a7dff0c1b46e534e499f7e928b
2019-02-22 14:24:28 -08:00
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
Kiyoung Kim
0de21d7e81 Schematize Crypto state system property
Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: m -j
Change-Id: Id36208fac5d4de062a51d541b64145560242f8fc
2019-02-22 13:54:45 +09:00
Felipe Leme
81299d0d96 Made AbstractRemoteService.getRemoteRequestMillis() optional.
Also split some logic from PendingRequest into BasePendingRequest, so they're
not leaked into the async requests.

Test: atest CtsContentCaptureServiceTestCases CtsAutoFillServiceTestCases
Bug: 117779333
Change-Id: Ife9a3ab3a817944408caf9eae69dd75f48ab90c6
2019-02-21 16:11:26 -08: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