Commit Graph

21190 Commits

Author SHA1 Message Date
xshu
44a90fb123 Add new wifi nearby devices app-ops am: b4933d744e am: e8a5bf3545 am: 0b632103df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863288

Change-Id: I62eb2e26be2b95409d25362201eed9c2aa56270a
2021-10-25 18:58:58 +00:00
xshu
0b632103df Add new wifi nearby devices app-ops am: b4933d744e am: e8a5bf3545
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863288

Change-Id: I645ef4e64dd2a4fa15059b53d6d7912156a1720f
2021-10-25 18:45:37 +00:00
xshu
e8a5bf3545 Add new wifi nearby devices app-ops am: b4933d744e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863288

Change-Id: Ib9d3764ccf2a0a0dbb0e943969b236fe0811a237
2021-10-25 18:40:40 +00:00
Treehugger Robot
29958c66a6 Merge "Add accessibility framework team to the owners for UiAutomation. Bug:159651900 Test: n/a" am: c12df4f3b1 am: c503fcf05c am: 02d6125883
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1850981

Change-Id: I90dd4fbc15aced5523bae8d20a34deaee700953e
2021-10-20 19:57:39 +00:00
Treehugger Robot
02d6125883 Merge "Add accessibility framework team to the owners for UiAutomation. Bug:159651900 Test: n/a" am: c12df4f3b1 am: c503fcf05c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1850981

Change-Id: I3c82423eb16883bee89c9d66315e8369ce9a723c
2021-10-20 19:36:01 +00:00
xshu
b4933d744e Add new wifi nearby devices app-ops
(cherry-picked from internal master)
This will be part of nearby devices permission group

Bug: 197776854
Test: compiles
Change-Id: I6002edfd951322d959cd8f4c7a06381badfd1660
Merged-In: I6002edfd951322d959cd8f4c7a06381badfd1660
2021-10-19 16:26:38 -07:00
Ameer Armaly
187d8c7ac7 Add accessibility framework team to the owners for UiAutomation.
Bug:159651900
Test: n/a

Change-Id: I7d89bfc67f2077bca00a048d79f4b90792ed8c69
2021-10-18 20:18:14 +00:00
Jonathan Scott
7f97053267 Merge "Centralise owners for Enterprise Platform team." am: 7593e112ae am: 733ee81b03 am: c0f0020671
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1860102

Change-Id: Ic33ad172213349dd93db8e534de88a81eedeaa4b
2021-10-18 19:02:21 +00:00
Jonathan Scott
c0f0020671 Merge "Centralise owners for Enterprise Platform team." am: 7593e112ae am: 733ee81b03
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1860102

Change-Id: Iaa05f7bc4d0ed56c190ef8b508b0abf2e07efef1
2021-10-18 18:50:24 +00:00
Jonathan Scott
7593e112ae Merge "Centralise owners for Enterprise Platform team." 2021-10-18 18:31:04 +00:00
Jonathan Scott
7443751dd9 Centralise owners for Enterprise Platform team.
This will allow us to point other directories at these files for OWNERS
and make it easier to update after future team changes.

Test: N/A
Bug: 202714830
Change-Id: Iaaf5b8eb7568be4ebfd1b30abae0b757153f0391
2021-10-18 19:28:50 +01:00
Neil Fuller
8d70e9f514 Merge "Adjust OWNERS to reflect new ownership" am: ead9d53764 am: 81115930fa am: 55f3beebb2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1856324

Change-Id: I715015f2defdf26f0dd1f3e25084cd6bfd28a33b
2021-10-13 17:36:45 +00:00
Neil Fuller
55f3beebb2 Merge "Adjust OWNERS to reflect new ownership" am: ead9d53764 am: 81115930fa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1856324

Change-Id: Ifba51b22f47f52aa1716dfbc621fb311a3865bba
2021-10-13 17:21:44 +00:00
Neil Fuller
e26bbeb94a Adjust OWNERS to reflect new ownership
This changes owners files based on latest org changes and changes
links to improve maintainability.

Changes:
+ It removes a specific owner from most to reduce future maintenance.
+ It adds indirection so android/app references the associated service
code, tests reference the OWNERS of the code under test.
+ services/core/java/com/android/server/timezonedetector/OWNERS is the
single list of time / time zone detector maintainers.
+ Code associated with time zone rules moved to libcore/ ownership
+ It adds one new file for an upcoming commit.
+ Added documentation around API purpose to API OWNERS files, since
there are multiple similar-looking package names with different purposes
/ clients.

Test: None
Bug: 189810551
Change-Id: I948d4b8eff59f3cd5ff63018949e49679795a5c0
2021-10-13 13:57:42 +01:00
Treehugger Robot
7b03023777 Merge "Avoid full unparcelling where possible in Bundle" am: 3ad4ecc296 am: 3aaf984908 am: cb329ca948
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842226

Change-Id: Ib1f1a23a5e3fcac9691db094f79e63b4415546b3
2021-10-06 12:55:15 +00:00
Treehugger Robot
cb329ca948 Merge "Avoid full unparcelling where possible in Bundle" am: 3ad4ecc296 am: 3aaf984908
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842226

Change-Id: I598b562401860e5e838f891eb2944e49becc2fe6
2021-10-06 12:35:43 +00:00
Treehugger Robot
3aaf984908 Merge "Avoid full unparcelling where possible in Bundle" am: 3ad4ecc296
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842226

Change-Id: I0aef93d99d83f20b22753e8e1d41cfb5c4b5cdce
2021-10-06 12:25:47 +00:00
Treehugger Robot
3ad4ecc296 Merge "Avoid full unparcelling where possible in Bundle" 2021-10-06 12:06:59 +00:00
Alex Johnston
60be94ef59 Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" am: 5c35d3bce6 am: c8c3e89dce am: 82b82e3a73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059

Change-Id: I042c8fbba177a506068183be34fe8a3d053ada99
2021-10-05 15:54:53 +00:00
Alex Johnston
82b82e3a73 Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" am: 5c35d3bce6 am: c8c3e89dce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059

Change-Id: I3d56b09b853516237428e695a21ab263722952bd
2021-10-05 15:23:58 +00:00
Alex Johnston
c8c3e89dce Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" am: 5c35d3bce6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059

Change-Id: I90e8a4d567fe2de9ab765806fc7bd3aba4fe0845
2021-10-05 15:11:32 +00:00
Alex Johnston
4e8851d0d8 Revert "Revert "Cherrypicking flags and override methods for all..."
Revert "Revert "Required change for adding overload method for r..."

Revert submission 1842720-revert-1836473-receiverChangesinAOSP-FWJQDTADTI

Reason for revert: DroidMonitor-triggered revert due to breakage, bug b/202144225
Reverted Changes:
I03409ea39:Revert "Required change for adding overload method...
I583a11d2a:Revert "Cherrypicking flags and override methods f...

Change-Id: I5cdf9c74d51a259fdaa43dfdc9423d22145eac60
2021-10-05 14:57:10 +00:00
Bernardo Rufino
9e26212dac Avoid full unparcelling where possible in Bundle
and put a warning where it's not possible. This is to make sure we know
when to touch bundles provided by apps.

In this CL:
* deepCopy() now doesn't deserialize lazy objects before copying. It
  doesn't copy them either, it merely passes them into the new map as
  the same reference. This works because we implemented fine-grained
  locking into each lazy value, so concurrent access won't be a problem.
  Furthermore, LazyValue caches the deserialized object, so we'd still
  honor the contract of deepCopy() that "Other types of objects (such
  as Parcelable or Serializable) are referenced as-is and not copied in
  any way". I had to perform one extra check in the synchronized block
  in LazyValue to guarantee this (double-checked locking), I explain
  that in the comments.
* Removed filterValues() and codepaths that used it. This was created
  with the purpose of removing items whose classes weren't available to
  the system to prevent crashes coming from full deserialization. This
  is not a concern anymore with lazy bundle, hence we can remove the
  codepaths altogether (see email for more details).
* Put warnings in javadoc of getMap() and PeristableBundle().

Test: Boots
Test: atest -d android.os.cts.ParcelTest android.os.cts.BundleTest android.os.BundleTest android.os.ParcelTest
Bug: 195622897
Change-Id: I14bb6a7874814f42cbcc6b5fd372c42752aa74c8
2021-10-05 13:39:36 +01:00
Jacky Kao
c3404a20aa Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" am: 98ff8ecdaa am: 1a894180c9 am: 9403386966
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721

Change-Id: I2bf6d7e1885ac56e79111263f6de6e44dbf1e18c
2021-10-05 02:29:33 +00:00
Jacky Kao
9403386966 Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" am: 98ff8ecdaa am: 1a894180c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721

Change-Id: Icdc4fc061e2b7208fdc6d4e17da860e47bc4548a
2021-10-05 02:19:52 +00:00
Jacky Kao
1a894180c9 Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" am: 98ff8ecdaa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721

Change-Id: Ieaed4fcc2fa97db551a70f4a3076b4237acfb8ab
2021-10-05 02:08:29 +00:00
Jacob Hobbie
56fe73076c Merge "Cherrypicking flags and override methods for allowing dynamically registered receivers to mark themselves explicitly as exported or not exported." am: 316e0e8336 am: 7e5da1ee2e am: 060b377211
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1836473

Change-Id: I2ab664531cdf77d597ff19ccff5abadf30215862
2021-10-05 01:56:58 +00:00
Jacky Kao
0827cf0cca Revert "Cherrypicking flags and override methods for allowing dy..."
Revert "Required change for adding overload method for registerR..."

Revert submission 1836473-receiverChangesinAOSP

Reason for revert: <INSERT REASONING HERE>
Reverted Changes:Making build break
I906ce9eb0:Required change for adding overload method for reg...
I9a16f566c:Cherrypicking flags and override methods for allow...

Change-Id: I583a11d2a23651db24acde303d522a5faae15c6b
2021-10-05 01:48:25 +00:00
Jacob Hobbie
060b377211 Merge "Cherrypicking flags and override methods for allowing dynamically registered receivers to mark themselves explicitly as exported or not exported." am: 316e0e8336 am: 7e5da1ee2e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1836473

Change-Id: I9cd085b98819b50bd520d44220b8b8dec9ce802c
2021-10-05 01:44:09 +00:00
Jacob Hobbie
7e5da1ee2e Merge "Cherrypicking flags and override methods for allowing dynamically registered receivers to mark themselves explicitly as exported or not exported." am: 316e0e8336
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1836473

Change-Id: I39049e42feb66c3fa3f0ebdef8e175ae86d5d410
2021-10-05 01:24:33 +00:00
TreeHugger Robot
35700e13a7 Merge "Don't ret admin info from createAdminSupportIntent" into sc-qpr1-dev am: 66b1090499
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15843713

Change-Id: Iac3eb4af4d48a5187091e67060e3de8abe160040
2021-10-01 18:17:16 +00:00
TreeHugger Robot
66b1090499 Merge "Don't ret admin info from createAdminSupportIntent" into sc-qpr1-dev 2021-10-01 18:15:57 +00:00
TreeHugger Robot
d0bfa4c226 Merge "API renaming asked by API Council" into stage-aosp-master am: d7cef086ca am: cbb7188ae0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934238

Change-Id: I151133e723e08ae9bb222970f5ffd81fc9880cd3
2021-09-29 17:12:59 +00:00
TreeHugger Robot
cbb7188ae0 Merge "API renaming asked by API Council" into stage-aosp-master am: d7cef086ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934238

Change-Id: Ie556f989ac6ce680b7de6caf37d71c6632ac927b
2021-09-29 17:00:13 +00:00
Etienne Ruffieux
4c70432d82 API renaming asked by API Council
Renamed all "cancelled" to "canceled" for PendingIntent.

Tag: #feature
Bug: 201405682
Test: atest android.app.cts.PendingIntentTest#testCancelListener
Change-Id: I0f5457f58836c6e80845dcd4d874a810008a320e
2021-09-29 13:08:09 +00:00
TreeHugger Robot
4230a055d3 Merge changes from topic "expose-pending-intent" into stage-aosp-master am: b4f626d13e am: 78f1a9bf51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15879511

Change-Id: I66a50ffbae15636a6a2221f1b27b2449b724a26b
2021-09-28 11:13:33 +00:00
Makoto Onuki
7baac81d13 Expose PendingIntent.addCancelListener am: 30bd1bb72d am: 81767ac876
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15879510

Change-Id: I8430547bd0a27020be5bcf2c99777f2e95b7b3e5
2021-09-28 11:13:31 +00:00
TreeHugger Robot
78f1a9bf51 Merge changes from topic "expose-pending-intent" into stage-aosp-master am: b4f626d13e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15879511

Change-Id: I617f1e422eba270fa07bac7218a8858f4f41da2f
2021-09-28 11:03:11 +00:00
Makoto Onuki
81767ac876 Expose PendingIntent.addCancelListener am: 30bd1bb72d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15879510

Change-Id: I80d0e7ee71ee126fb6da726bdce6fc8eec839576
2021-09-28 11:03:08 +00:00
Makoto Onuki
41b8d147fd Reduce PendingIntent memory allocation
Fix: 195146423
Test: atest android.app.cts.PendingIntentTest

Change-Id: I246d272c77337f77623f0c11d5f445895cdbf5e8
2021-09-27 09:35:58 +00:00
Makoto Onuki
30bd1bb72d Expose PendingIntent.addCancelListener
Bug: 195146423
Test: atest android.app.cts.PendingIntentTest#testCancelListener
Change-Id: I74e6ae49bfb2b31f0bc693d75e1f1433206011ce
2021-09-27 09:35:48 +00:00
Jacob Hobbie
f76e50ba48 Cherrypicking flags and override methods for allowing dynamically
registered receivers to mark themselves explicitly as exported or not
exported.

Test: will add tests with enforcement
Change-Id: I9a16f566c54e389743dcf460734ecdc0b1081768
2021-09-23 08:20:04 -07:00
Misha Wagner
bcf575e987 Change CacheOomRanker's "uses" feature. am: 7d611c750c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15684479

Change-Id: Icff2cbdb91ec2c33ca49e8fb76c026abdf29f736
2021-09-21 09:13:03 +00:00
Misha Wagner
78c1e444ab Merge changes from topic "CacheOomRanker-new-features-sc-qpr1-dev" into sc-qpr1-dev
* changes:
  Use Process.getRss instead of mProfile.getLastRss in CacheOomRanker.
  Change CacheOomRanker's "uses" feature.
  Fix race condition when using mPreserveTopNApps.
  Allow CacheOomRanker to rerank when there's <8 processes in the cache.
  Fix CacheOomRankerTest.
2021-09-21 08:48:56 +00:00
Hui Yu
c10b7d62e2 Merge "tempAllowList duration can be updated if an UID is already temp allowlisted." into sc-qpr1-dev am: add3a2e361
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15851148

Change-Id: I9ae1ebb4f3918edb520b3bf9d48f7b5ad9f799ab
2021-09-20 22:06:52 +00:00
Hui Yu
add3a2e361 Merge "tempAllowList duration can be updated if an UID is already temp allowlisted." into sc-qpr1-dev 2021-09-20 21:54:30 +00:00
Hui Yu
0ebc9cd55b tempAllowList duration can be updated if an UID is already temp
allowlisted.

Previously when PowerExemptionManager.addToTemporaryAllowList() is
called for a second time before the first time call's duration expires, the
second call does not update ActivityManagerService's
FgsTempAllowList for the new duration. This CL fixes this problem.

Bug: 199801023
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Ibb8c6f41740a9b7468b50a4cdabe526ae58550ec
2021-09-20 21:14:23 +00:00
TreeHugger Robot
28d37ec3ee Merge "Fix unstyled Notification RemoteViews inflation logic for apps targeting API 23 and lower." into sc-qpr1-dev am: 86536be56b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15861704

Change-Id: Ic52ac09a6f73331bc3172f9eddf729cf7a22b093
2021-09-20 20:38:40 +00:00
Misha Wagner
7d611c750c Change CacheOomRanker's "uses" feature.
The previous implementation was incorrect, as an app goes in and out of
the cache several times during oom_adj calculation. If all apps started
at the same time, then this would be OK - as they all get incremented
the same amount, plus get incremented when they actually go in and out
of the cache. This would result in the relative counts being correct.

However, as all apps aren't started at the same time, the old
implementation is instead a measure of how long the app has been
started.

So instead we use mSetProcState, which isn't changed on each oom_adj
calculation. This measure should accurately reflect the number of times
the process is used - whether that's by a user app open, or a content
receiver call, or an intent being broadcast.

See go/sim-v-impl for more details.

Test: atest CacheOomRankerTest
Bug: 196031723
Change-Id: I49d02362b8277f8472355e78412f79256c2289a1
Merged-In: I49d02362b8277f8472355e78412f79256c2289a1
(cherry picked from commit 480cc3123c)
2021-09-20 18:16:31 +00:00
Jeff DeCew
72ea9c6884 Fix unstyled Notification RemoteViews inflation logic for apps targeting API 23 and lower.
Fixes: 199152536
Test: post ForegroundServiceNotification with ApiDemos; ensure expandble.
Change-Id: Iac5cb78fb8a8462c8778f92a407387c57792d812
2021-09-20 13:39:04 -04:00