Commit Graph

649029 Commits

Author SHA1 Message Date
TreeHugger Robot
b59a268cb9 Merge "Fix user icon visibility bugs" into sc-dev am: 16d25c70c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15238060

Change-Id: Iec70e204ef7a3c10150ae796d24aa01857166ce3
2021-07-10 04:22:35 +00:00
TreeHugger Robot
16d25c70c0 Merge "Fix user icon visibility bugs" into sc-dev 2021-07-10 04:09:13 +00:00
Chris Li
fec7d6ec1e Merge "Add onErrorCallback for TaskFragmentOrganizer" into sc-v2-dev 2021-07-10 03:43:08 +00:00
TreeHugger Robot
8b03c849e2 Merge "Add orientation listener to all biometric overlays." into sc-dev am: b172012858
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237859

Change-Id: I7a47682c7b434aadb2d8081dcea09f418b28b51a
2021-07-10 02:27:48 +00:00
TreeHugger Robot
c4fe42e347 Merge "Optimize AttributionSource tokens - base" into sc-dev am: 2b90cc827b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247205

Change-Id: I4b1d8d446ea18a308c4a523298682b3a7d217421
2021-07-10 02:27:03 +00:00
TreeHugger Robot
b8cfb6772d [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 49c6fc0fdb -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247204

Change-Id: I666593525946bf65af97435c0a67c10682d9ff38
2021-07-10 02:26:00 +00:00
TreeHugger Robot
b172012858 Merge "Add orientation listener to all biometric overlays." into sc-dev 2021-07-10 02:23:23 +00:00
TreeHugger Robot
2b90cc827b Merge "Optimize AttributionSource tokens - base" into sc-dev 2021-07-10 02:16:24 +00:00
TreeHugger Robot
49c6fc0fdb Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-10 02:12:23 +00:00
TreeHugger Robot
d41c2cec9f Merge "Use FalsingManager for QS user switcher" into sc-dev am: 6061740344
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15226239

Change-Id: I178360c3a92c3e34600d8cd5682218c8816d46e4
2021-07-10 01:33:59 +00:00
Xiaoyu Jin
29243122a7 Merge "Register callback to statsD for AppSearchStorageInfo" into sc-dev am: d4ce296d90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15083854

Change-Id: Iff5a881c8fabb964df83346df94373304324ecbc
2021-07-10 01:33:45 +00:00
TreeHugger Robot
6061740344 Merge "Use FalsingManager for QS user switcher" into sc-dev 2021-07-10 01:26:23 +00:00
Xiaoyu Jin
d4ce296d90 Merge "Register callback to statsD for AppSearchStorageInfo" into sc-dev 2021-07-10 01:20:18 +00:00
Bill Lin
6412447d27 Merge "Redesign One-haned tutorial UX behavior" into sc-dev am: 5ad4a8093c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15187818

Change-Id: Iaaa00752187baa50b75e14aedd25c08cfbc31e98
2021-07-10 01:10:53 +00:00
Bill Lin
1e1856fc4d Merge "Improve SystemUIBootiming_StartServices_avg" into sc-dev am: 1334cfb90d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15243692

Change-Id: Ibcef8192752d2a20bf9b047e2d02f925a23346d9
2021-07-10 01:10:49 +00:00
TreeHugger Robot
18c43f4451 Merge "Allow double tap power to trigger camera during device is sleeping" into sc-dev am: bc4d799c95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15186120

Change-Id: Ia1d1a50b9032017371d543cb60af25a6870ac6d4
2021-07-10 01:10:43 +00:00
Bill Lin
5ad4a8093c Merge "Redesign One-haned tutorial UX behavior" into sc-dev 2021-07-10 01:05:11 +00:00
Bill Lin
1334cfb90d Merge "Improve SystemUIBootiming_StartServices_avg" into sc-dev 2021-07-10 01:03:56 +00:00
TreeHugger Robot
bc4d799c95 Merge "Allow double tap power to trigger camera during device is sleeping" into sc-dev 2021-07-10 00:57:54 +00:00
Svet Ganov
1babd5bf51 Optimize AttributionSource tokens - base
For cases where the attribution soruce doesn't need to be
registered as trusted we are now using a shares static
token since the only purpose of the token in these cases
is for watching the source process dying as opposed to that
and security for registered cases.

bug: 192415943

Test: CtsPermissionTestCases
      CtsPermission2TestCases
      CtsPermission3TestCases
      CtsPermission4TestCases
      CtsPermission5TestCases

Change-Id: I93fde9ca1cacada7929761533dcae11b2736ce1e
2021-07-10 00:24:30 +00:00
Xiaoyu Jin
57bd208139 Register callback to statsD for AppSearchStorageInfo
Bug: b/173532925, b/193254235
Test: statsd_testdrive 10116
      atom {
        app_search_storage_info {
          user: 0
          total_storage_size_bytes: 3929088
          document_storage_info {
            num_alive_documents: 1116
            num_deleted_documents: 4933
            num_expired_documents: 0
            document_store_size_bytes: 3637760
            document_log_size_bytes: 2928640
            key_mapper_size_bytes: 49152
            document_id_mapper_size_bytes: 49152
            score_cache_size_bytes: 122880
            filter_cache_size_bytes: 73728
            corpus_mapper_size_bytes: 20480
            corpus_score_cache_size_bytes: 4096
            namespace_id_mapper_size_bytes: 20480
            num_namespaces: 21
          }
          schema_store_storage_info {
            schema_store_size_bytes: 39424
            num_schema_types: 4
            num_total_sections: 9
            num_schema_types_sections_exhausted: 0
          }
          index_storage_info {
            index_size_bytes: 248320
            lite_index_lexicon_size_bytes: 155648
            lite_index_hit_buffer_size_bytes: 262144
            main_index_lexicon_size_bytes: 0
            main_index_storage_size_bytes: 0
            main_index_block_size_bytes: 4096
            num_blocks: 1
            min_free_fraction: 0.99999905
          }
        }
      }
      appsearch cts tests

Change-Id: I009c0932e36afb467c93013215d1e67dfae5a28a
2021-07-09 17:05:23 -07:00
TreeHugger Robot
199a5df6c1 Merge "Cache weak reference for static context." into sc-dev am: f7d20b351f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15245990

Change-Id: I257dca8cb4b5a97868f19bcd4f9e3e8cd64ef2cf
2021-07-10 00:01:32 +00:00
Grace Cheng
34f39c86ba Merge "Grants WRITE_SECURE_SETTINGS permission to AdasLocationTestApp" into sc-v2-dev 2021-07-09 23:53:49 +00:00
TreeHugger Robot
f7d20b351f Merge "Cache weak reference for static context." into sc-dev 2021-07-09 23:43:06 +00:00
Bill Yi
04b409790f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie11080ee2df1a23295c7c07843d4f1927f64e48a
2021-07-09 23:17:01 +00:00
Hans Boehm
982ee31641 Merge "Add System.runFinalization() call" into sc-dev am: 84209e128d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15245491

Change-Id: Ib8553e733744f7bfe5aaa750fb5e4947d9d25b52
2021-07-09 23:08:01 +00:00
Hans Boehm
84209e128d Merge "Add System.runFinalization() call" into sc-dev 2021-07-09 23:04:30 +00:00
Terry Wang
6cbcf65fc0 Merge "Add check for optimize after each mutation operation." into sc-dev am: 878a0d7c8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15138065

Change-Id: I7de5d4fc7771500d582f2db29965e3e2a97c93fb
2021-07-09 23:01:07 +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
Joe Bolinger
34a6c46d1d Add orientation listener to all biometric overlays.
Listener is only active when the overlays are showing (see Icce7846c5637711d8abad1121095fd7a25ed644f).

Fix: 186372522
Test: atest SidefpsControllerTest UdfpsControllerTest AuthControllerTest
Test: manual (Settings -> enroll fingerprint, flip device in all orientations)
Change-Id: I9981aecd08decf03336caccc313a86aead441797
2021-07-09 14:23:43 -07:00
TreeHugger Robot
27903b85ac Merge "Use exact brightnesses values for comparison." into sc-dev am: 8769ff6429
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15221614

Change-Id: I898fcb1639aacceb1445cdf6b6f0f373dffe97f3
2021-07-09 20:49:09 +00:00
TreeHugger Robot
8769ff6429 Merge "Use exact brightnesses values for comparison." into sc-dev 2021-07-09 20:33:27 +00:00
Tiger Huang
efe2a20ec1 Merge "Use the real behavior to decide the animation" into sc-dev am: 26c159d640
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15232838

Change-Id: I0d3b8ab1074e3e3dcbce151f0b92f9751b079edd
2021-07-09 19:57:04 +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
TreeHugger Robot
25b6810060 Merge "Make AttributedOpEntry gracefully handle empty array" into sc-dev am: 07dcb9d6dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15245446

Change-Id: I45e3623130922c888151dbf3ea26e40d5b435594
2021-07-09 19:21:04 +00:00
Pyuli Naithani
a5cf555d9a Merge "Add logs for sensor privacy enable dialog." into sc-dev am: 81f862389f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15239319

Change-Id: Ie26385bca0b3836ccd49b85679b80d8c37971465
2021-07-09 19:15:52 +00:00
Matt Casey
54c17c2bc7 Merge "Don't try to load a long screenshot image more than once" into sc-dev am: 088e0f5c7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237355

Change-Id: I3b3d62a0bcd09122029448a48f79a034945b21dc
2021-07-09 19:12:07 +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
3f9ea37a52 Merge "Fix a bug that the QuickAccessWalletTile displaying packageName as title." into sc-dev am: 851904a45c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237268

Change-Id: I95fcaaf6c756a9b1f45d1e224cd0d3f4aa89106d
2021-07-09 18:33:04 +00:00
TreeHugger Robot
ff5f95ecf5 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: dc7452c45f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15241729

Change-Id: I46a446298973f6df056533177c85ad0213e28920
2021-07-09 18:32:48 +00:00
Rucha Katakwar
ff649536f4 Merge "Revert "Camera: Restore FastNative annotation."" into sc-dev am: ea03a04bb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15241850

Change-Id: I418e9e75944896cb2d0257e06c2c767467a0cd1c
2021-07-09 18:31:44 +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
a8f3a8e297 Merge "Revert "Enable orientation listener at all times."" into sc-dev am: f36c575bee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15241710

Change-Id: I3833e1a8581760f15dbdb6ba4ca2c1fbee3ede69
2021-07-09 17:49:41 +00:00