Commit Graph

646316 Commits

Author SHA1 Message Date
TreeHugger Robot
f7d20b351f Merge "Cache weak reference for static context." into sc-dev 2021-07-09 23:43:06 +00:00
Hans Boehm
84209e128d Merge "Add System.runFinalization() call" into sc-dev 2021-07-09 23:04:30 +00:00
Terry Wang
878a0d7c8f Merge "Add check for optimize after each mutation operation." into sc-dev 2021-07-09 22:47:24 +00:00
jiabin
0f3339cfc2 Cache weak reference for static context.
Use weak reference to cache static context to avoid leak.

Test: atest RingtoneManagerTest
Test: atest RequestPinItemTest
Bug: 192995480
Change-Id: Idbfc9bd0c93ddb40693989c0d09719af24363f1d
2021-07-09 14:53:26 -07:00
TreeHugger Robot
8769ff6429 Merge "Use exact brightnesses values for comparison." into sc-dev 2021-07-09 20:33:27 +00:00
Tiger Huang
26c159d640 Merge "Use the real behavior to decide the animation" into sc-dev 2021-07-09 19:36:27 +00:00
Terry Wang
da0e9a9b37 Add check for optimize after each mutation operation.
Optimize is an important job for AppSearch to work properly.
It could collect garbage and release resources. Without it, the garbage
resource will last forever and the device's space will be fulled up by
zombie documents.

The algorithm to trigger optimize is:
1: Query garbage resource info after a batch of mutation operations.
2: Only trigger optimize if there are enough resource could be released.

The behavior exists in AppSearch Jetpack for a while and working properly
for our Jetpack dogfooders.

Bug: 175255572
Test: FrameworkOptimizeStrategyTest
Test: AppSearchConfigTest
Test: AppSearchImplTest
Change-Id: Ib7ae475cc035d1b69969df1e22ac409895e0e3fa
2021-07-09 12:09:10 -07:00
TreeHugger Robot
07dcb9d6dc Merge "Make AttributedOpEntry gracefully handle empty array" into sc-dev 2021-07-09 19:08:25 +00:00
Pyuli Naithani
81f862389f Merge "Add logs for sensor privacy enable dialog." into sc-dev 2021-07-09 19:01:42 +00:00
Matt Casey
088e0f5c7b Merge "Don't try to load a long screenshot image more than once" into sc-dev 2021-07-09 18:55:39 +00:00
Silin Huang
851904a45c Merge "Fix a bug that the QuickAccessWalletTile displaying packageName as title." into sc-dev 2021-07-09 18:21:57 +00:00
TreeHugger Robot
dc7452c45f Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-09 18:20:53 +00:00
Rucha Katakwar
ea03a04bb8 Merge "Revert "Camera: Restore FastNative annotation."" into sc-dev 2021-07-09 18:13:07 +00:00
Nate Myren
87ab9d9f5e Make AttributedOpEntry gracefully handle empty array
The inProgress/paused inProgress arraymaps should be null when empty.
However, if they are not, the code should handle this gracefully.

Test: presubmit
Fixes: 191392370
Change-Id: I7cddd5ff5452611cb067b1c77ea85dd534b360da
2021-07-09 10:55:46 -07:00
Manish Varma
f36c575bee Merge "Revert "Enable orientation listener at all times."" into sc-dev 2021-07-09 17:39:47 +00:00
Xi Han
fe5022a3c8 Merge "Correct the flag in NetworkController." into sc-dev 2021-07-09 17:36:16 +00:00
Manish Varma
ff3268f426 Revert "Enable orientation listener at all times."
This reverts commit 7efc7a9171.

Reason for revert: seems to causing PTS PowerTest (pts/device-presubmit-power) failure  - b/193195601

Bug: 193195601

Change-Id: Ie5d25787bfff3e1f0bb7afc73ed580012eea66ae
2021-07-09 17:30:38 +00:00
Hans Boehm
6a5274513a Add System.runFinalization() call
Lone calls to System.gc() generally don't do anything.
Runtime.getRuntime().gc() would force a GC, but it would be ineffective
without waiting for reference processing and finalization to complete.
Adding the runFinalization() call implicitly makes the preceding GC call
effective.

Bug: 183912710
Test: Treehugger
Change-Id: I0f4806b8e3f9ca898eb7ea1b1c8de14aa94e2646
Merged-In: I0f4806b8e3f9ca898eb7ea1b1c8de14aa94e2646
2021-07-09 10:23:30 -07:00
Rucha Katakwar
4f83d813d6 Revert "Camera: Restore FastNative annotation."
Bug: 193176503

This reverts commit 99ebd95ef1.
Reason for revert: Recent flakiness as mentioned in b/193176503.This cl was merged in build:7532561. Any test failures post this build shows exception linked to CameraMetadataNative.Reverting this cl to find and fix the issue.

Change-Id: If9fe3ce69f013b842a47745d976942aa71dfb8f6
2021-07-09 17:20:57 +00:00
Beverly Tai
fa6a428347 Merge "Don't set udfps icon visibility on illumination change" into sc-dev 2021-07-09 16:54:25 +00:00
Songchun Fan
3172fe263a Merge "Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev 2021-07-09 16:39:42 +00:00
Anna Zappone
268234b2b9 Merge "Add available description for talkback" into sc-dev 2021-07-09 15:52:54 +00:00
Andy Hung
91327adeda Merge "MediaMetricsManagerService: Unify logSessionId representation" into sc-dev 2021-07-09 15:48:11 +00:00
Henry Fang
d2b280408b Merge "fix memory leak in initilization and finalization" into sc-dev 2021-07-09 15:48:09 +00:00
Mark Renouf
a7af7f8346 Merge "Quiet down long screenshots logcat output" into sc-dev 2021-07-09 15:29:18 +00:00
Michael Wright
25fd67372e Use exact brightnesses values for comparison.
Using BrightnessSynchronizer introduced an epsilon value in the
comparison. This meant it was possible for brightness changes to never
reach min or max if they were made in sufficiently small steps. Given:

1) The need to reach both min and max brightnesses.

2) The increased resolution of brightness controls on devices.

3) The desire to make the framework as independent as possible of
brightness resolution.

we no longer allow for an epsilon delta.

Fixes: 191935286
Test: manual

Change-Id: Ie4872fa81aa6f23799cd6b4dfdbfd2a61ec6ce7a
2021-07-09 15:52:33 +01:00
TreeHugger Robot
4596722184 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-09 14:12:43 +00:00
TreeHugger Robot
5b31467f3b Merge "Add limitations to HDR." into sc-dev 2021-07-09 14:02:34 +00:00
TreeHugger Robot
bf79a4c434 Merge "Crash invalid FGS notifications" into sc-dev 2021-07-09 13:55:38 +00:00
Lais Andrade
1dd6f20e3b Merge "Fix concurrent external vibrations on ExternalVibratorService" into sc-dev 2021-07-09 13:44:56 +00:00
Santos Cordon
5ba3e1fec4 Add limitations to HDR.
1. Only allow HDR if HDR takes up more than 50% of the screen.
2. Scale normal brightness range to HDR levels. To do this, we now keep
the normal brightness range when HDR is enabled and scale the brightness
value to the higher HBM range. This allows HDR to scale as it did
previous as well as function as expected when automatic-brightness is
off.
3. Add more logging to HBMController dumpsys.

Bug: 187804126
Bug: 188479946
Bug: 189384189
Test: atest com.android.server.display
Change-Id: I515a9ee7ca16bcf8070b1cdab09943b68f038949
2021-07-09 13:43:58 +01:00
Lais Andrade
76761e8b6b Fix concurrent external vibrations on ExternalVibratorService
The ongoing external vibration should be muted via
IExternalVibrationController and the service should not
set external control on the vibrator more than once.

Fix service to mute ongoing external vibration at the time it's
cancelled and to skip calls to setExternalControl when it's already set.

Fix: 193127756
Test: VibratorManagerServiceTest
Change-Id: If61f5fd2c41dc6d15655d9ce537c858caaf530c6
2021-07-09 12:34:15 +01:00
Nikita Ioffe
1d2cbb6f50 Merge "Grant INSTALL_PACKAGE_UPDATES permission to Shell" into sc-dev 2021-07-09 11:33:01 +00:00
Jason Chang
56bb99d410 Merge "Add metrics log for One-handed mode Shortcut toggle switch" into sc-dev 2021-07-09 11:30:14 +00:00
George Chang
bf0d8be298 Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
Remove @Readable for security vulnerability.
Remove @TestApi since there's no exceptions in ReadSettingsFieldsTest

Bug: 191519696
Bug: 174151290
Test: atest CtsNfcTestCases
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: atest CtsQuickAccessWalletTestCases
Test: make RunSettingsRoboTests -j
Test: atest QuickAccessWalletTileTest
Merged-In: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
Change-Id: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
2021-07-09 09:46:29 +00:00
Tej Singh
5801ebb8e6 Merge "Cleanup appsearch platform logger" into sc-dev 2021-07-09 08:26:21 +00:00
Bill Yi
6c3d995336 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8c1d1996a32657801a4cfdfa9ed8647d5f9f874f
2021-07-09 07:13:58 +00:00
Bill Yi
980807a40a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I307bbf6400f26475ceb324c5c022e4adaed2946d
2021-07-09 06:19:49 +00:00
TreeHugger Robot
929e584dce Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-09 05:08:56 +00:00
Chiawei Wang
bb8c2fa657 Merge "Add config_customizedMaxCachedProcesses to symbols.xml" into sc-dev 2021-07-09 04:05:27 +00:00
Jason Chang
97b75f09ed Add metrics log for One-handed mode Shortcut toggle switch
To write metrics log for One-handed mode Shortcut toggle switch state.

Bug: 192641587

Test: Local add logs to verify before writing metrics logs API call
Test: atest SystemUITests
Test: atest WMShellTests
Change-Id: I02fda724bf2960355d78f1a26ac6d65225687176
2021-07-09 03:24:58 +00:00
Henry Fang
f3e53d082c fix memory leak in initilization and finalization
bug: 193107250
Test: Manual
Change-Id: I5b57ee6467d39765fab15d7a2b4b8e7c09ad8f3a
2021-07-08 19:56:26 -07:00
Rob Carr
5f28230d34 Merge "ViewRootImpl: Fix issue with early draw report in seamless rotation" into sc-dev 2021-07-09 02:28:27 +00:00
Bill Lin
7f162ddaf0 Merge "Improve SystemUIBootTiming performance in OneHandedController" into sc-dev 2021-07-09 02:00:33 +00:00
Amith Yamasani
9eed97ac10 Merge "Fix FGS notification mismatch" into sc-dev 2021-07-09 01:45:59 +00:00
Mark Renouf
84f80d152d Quiet down long screenshots logcat output
With this change, a long screen shot flow generates only
the following log entries:

D Screenshot: ScrollCapture: connected to window [com.example/.ExampleActivity]
D Screenshot: onCaptureStarted
D Screenshot: end()
I Screenshot: Completed: LongScreenshot{w=1080, h=5339}

Tags covered:

LongScreenshotActivity
Screenshot
ScrollCaptureConnection
ScrollCaptureInternal
ScrollCaptureViewSupport
ScrollCaptureController
ViewRenderer

Bug: 190399332
Test: observe logcat during long screenshot
Change-Id: Ia2b018224897ad1ca153967ff9f60340a64f4815
2021-07-09 01:25:50 +00:00
Pyuli Naithani
5605cec3cd Add logs for sensor privacy enable dialog.
BUG: 192269258

Test: statsd_testdrive 382
Change-Id: I0a0a01ad013586c84ccf85cd7ef867c70a0a70cb
2021-07-09 00:14:13 +00:00
Jeff DeCew
82a1baf813 Merge "Delete dead code which had adverse performance impact." into sc-dev 2021-07-09 00:12:59 +00:00
Hasini Gunasinghe
55d8797628 Merge "Pull Keystore2CrashStats Atom." into sc-dev 2021-07-09 00:08:39 +00:00
Nikita Ioffe
65eb22cc56 Grant INSTALL_PACKAGE_UPDATES permission to Shell
Bug: 188062003
Test: m
Change-Id: I342f64e666afa4202b8af69f04d64b05d40fac40
2021-07-09 00:52:08 +01:00