Treehugger Robot
e987d6eb82
Merge "[MS29] Remove Trace hidden API dependencies" am: be70a4353a am: 56da05be6c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952201
Change-Id: I735fbe031bef57ecb7a4e0428bcd56484a9af116
2022-01-21 08:44:24 +00:00
Treehugger Robot
be70a4353a
Merge "[MS29] Remove Trace hidden API dependencies"
2022-01-21 08:29:29 +00:00
Junyu Lai
c048d53e60
[MS29] Remove Trace hidden API dependencies
...
Since data usage related code is going to move to mainline module,
hidden classes and methods can no longer be accessed. Thus,
expose the needed system apis since there is no alternative.
Test: TH
Fix: 215152167
Bug: 204830222
Change-Id: I41046f90b9ff8f1755304e5d289584d39599fd13
2022-01-21 06:34:55 +00:00
Etienne Ruffieux
0fcd2ed905
Merge "Making Process.NFC_UID SystemApi for modules" am: 06580338e6 am: d086e8ee72
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945288
Change-Id: I8adadb76c51aa37665ac9847c51e852bd7d933b8
2022-01-21 00:00:34 +00:00
Etienne Ruffieux
fe195c9b7e
Making Process.NFC_UID SystemApi for modules
...
In order for Bluetooth to be a mainline module, we need to
remove all hidden APIs calls from and to it. NFC_UID is
used inside BluetoothManagerService so we need to be able
to access it.
Tag: #feature
Test: make
Bug: 211851706
Change-Id: Ie778c4467f5db1efa1f759c405373cc3e34747ca
2022-01-20 19:09:50 +00:00
Junyu Lai
d312550ff8
Merge changes from topics "ms34-tm", "ms40-clock" am: beb9fb3cc8 am: 08c51b04ca
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914533
Change-Id: I244779c19fab00eede1b7e9f3980679131e75cbb
2022-01-06 14:09:31 +00:00
Junyu Lai
beb9fb3cc8
Merge changes from topics "ms34-tm", "ms40-clock"
...
* changes:
[MS09] Expose NetworkTemplate APIs which are needed by NetworkPolicy
[MS34.1] Replace TelephonyManager#getSubscriberId(subId) with public API
[MS40.1] Remove Clock dependencies from NetworkStatsService
[MS27] Expose noteUntaggedSocket SystemApi
2022-01-06 13:56:39 +00:00
Junyu Lai
2aa7b9ec4d
[MS40.1] Remove Clock dependencies from NetworkStatsService
...
This includes:
1. Re-implement the BestClock in the static library.
2. Expose SystemClock#currentNetworkTimeClock as public Api
Test: TH
Bug: 204830222
CTS-Coverage-Bug: 213393821
Exempt-From-Owner-Approval: 1. Owner approved the change with
explicitly granted submission after adderessing the
straight-forward comment. 2. Owner is OOO for 3 months.
Change-Id: I08c0162a7101cc6184f3eca3d4a59211183fb843
2022-01-06 08:49:59 +00:00
Junyu Lai
0cf9e87c79
[MS27] Expose noteUntaggedSocket SystemApi
...
While Data usage related codes are moving to mainline module,
StrictMode#vmUntaggedSocketEnabled() and onUntaggedSocket()
can no longer be accessed from NetworkManagementSocketTagger.
Thus, expose alternative SystemApi to allow invocations from
the module.
Test: TH
Bug: 204830222
Exempt-From-Owner-Approval: 1. Owner approved the change with
explicitly granted submission after adderessing the
straight-forward comment. 2. Owner is OOO for 3 months.
Change-Id: Ib54ff54ce3617ae0d04080a1740e78b086bbb039
2022-01-06 08:49:46 +00:00
Dmitri Plotnikov
c8eaba313f
Merge "Add BATTERY_STATS_OWNERS to all *Stats files" am: 884e5d8456 am: b759da54a3
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1936287
Change-Id: I5fc46af02882bd65a5359705e67240809731d4f5
2022-01-05 00:09:15 +00:00
Dmitri Plotnikov
884e5d8456
Merge "Add BATTERY_STATS_OWNERS to all *Stats files"
2022-01-04 23:42:08 +00:00
Dmitri Plotnikov
5e85751023
Add BATTERY_STATS_OWNERS to all *Stats files
...
Test: N/A
Change-Id: Ifb1865b2db902bf0cca1bde48a7381903dca229c
2022-01-04 15:31:01 -08:00
Treehugger Robot
130599d186
Merge "Fix for run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest" am: c9ed425df2 am: 1b148ed131
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1918645
Change-Id: I0260a0c7e994d4186dda7553fe5fa44b39c7de2e
2021-12-20 15:15:33 +00:00
Treehugger Robot
c9ed425df2
Merge "Fix for run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest"
2021-12-20 14:33:41 +00:00
Steven Moreland
b4f0710e19
Merge "Binder: recycle Parcel in finally block" am: 8581d27415 am: 0c1dac2572
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1926857
Change-Id: I822c72fb027da80e39762c03b228e7c966bbe253
2021-12-16 17:46:12 +00:00
Steven Moreland
8581d27415
Merge "Binder: recycle Parcel in finally block"
2021-12-16 17:16:31 +00:00
Steven Moreland
713c258edc
Binder: recycle Parcel in finally block
...
If other types of exceptions happen here, we should still recycle the Parcel.
Bug: 207778694
Test: boot
Change-Id: I3375b87a674c45f8bc66848dfaf899497f5acaa8
2021-12-16 01:03:54 +00:00
Treehugger Robot
8b81ff8dbc
Merge "Log UI events to traces" am: a9666fccb9 am: 6e713ddc1e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920746
Change-Id: Ica852f77a0771b6a44bbaffbe019a634f0dc4622
2021-12-15 18:48:31 +00:00
Treehugger Robot
a9666fccb9
Merge "Log UI events to traces"
2021-12-15 18:11:52 +00:00
Lucas Dupin
2f72aa0bd1
Log UI events to traces
...
Add LogBuffer tags to perfetto traces in order to simplify the process
of reading them.
A new track will indicate the state of notification, lock screen, AOD,
etc.
Bug: 207049735
Test: atest TraceDevTest
Change-Id: I3253c0f5a369ad4a25d6646daa62810644553a36
2021-12-14 21:35:19 +00:00
hupengcheng
b166fcedac
Fix for run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest
...
For dual vibrator device, the AOSP code needs to be adjusted as follow.
Bug: 209932477
Test:
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibrateComposed
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibratorIsVibrating
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibrateMultiThread
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibratorVibratesNoLongerThanDuration
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibrateOneShot
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibratorStateCallback
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibratePattern
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibratePredefined
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibrateWaveform
run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest#testVibratorCancel
Change-Id: I31afc8179acb4f7749b1208f3abd13a1941a01b2
2021-12-13 09:38:05 +00:00
Treehugger Robot
f64706cd2f
Merge "Don't require T to extend Parcelable or Serializable in Parcel" am: 6a2f196dca am: 425b8699bb
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914047
Change-Id: Ib68ac2d8097282793bbf5a687721aedac498bfe5
2021-12-10 00:33:44 +00:00
Treehugger Robot
425b8699bb
Merge "Don't require T to extend Parcelable or Serializable in Parcel" am: 6a2f196dca
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914047
Change-Id: Ie78e98103a3313414fbef82a808e2a0b3fdeba91
2021-12-10 00:11:01 +00:00
Hao Ke
31fa514400
Don't require T to extend Parcelable or Serializable in Parcel
...
This is because we want to support the use-case where the caller
enforces a specific class type that doesn't implement Parcelable
or Serializable but the child classes written on the payload implement them.
One such use-case that needs this before migrating is
https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/com/android/internal/infra/AndroidFuture.java;l=596;drc=2d6a545e3042d7cc91b54746e774681a05e0ff22 :
we need to enforce Throwable class but it doesn't implement Parcelable itself,
while its children written on the wire are expected to.
Test: atest -d android.os.cts.ParcelTest
Bug: 195622897
Change-Id: I150416d0cfb0b87ddbaff1041d8d60aa205f6f39
2021-12-09 15:40:04 +00:00
Bernardo Rufino
017bfa357a
Merge "Deprecate unsafe Parcel.readParcelableArray(ClassLoader)" am: 2ee662c767 am: 91e53b04aa
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910046
Change-Id: Id17598162b99da239a2a68dfcc338b036c3a8a31
2021-12-09 11:17:09 +00:00
Bernardo Rufino
91e53b04aa
Merge "Deprecate unsafe Parcel.readParcelableArray(ClassLoader)" am: 2ee662c767
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910046
Change-Id: I3f12c9a32b1b2146ec83f0a04eb5768cafd2eecd
2021-12-09 10:54:30 +00:00
Bernardo Rufino
2ee662c767
Merge "Deprecate unsafe Parcel.readParcelableArray(ClassLoader)"
2021-12-09 10:35:34 +00:00
Tim Van Patten
f47bb4c73e
Merge "Correctly call setGpuStats() for ANGLE/system driver" am: c6d9eda8c0 am: 4d3d322f09
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906687
Change-Id: I2098eae142d44b482483698e1d5dd47fbb400086
2021-12-08 17:27:33 +00:00
Tim Van Patten
4d3d322f09
Merge "Correctly call setGpuStats() for ANGLE/system driver" am: c6d9eda8c0
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906687
Change-Id: I93a7c79612c189198ef1200d471b685c35664694
2021-12-08 17:10:36 +00:00
Tim Van Patten
c6d9eda8c0
Merge "Correctly call setGpuStats() for ANGLE/system driver"
2021-12-08 16:52:44 +00:00
Evgenii Stepanov
9399b9981d
Merge "Pass MTE RuntimeFlags to AppZygote." am: 1db942e761 am: 7842e7f363
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910277
Change-Id: Iaecf2f0ab6145dda58af10bc17f5b171b169e802
2021-12-07 19:42:08 +00:00
Evgenii Stepanov
7842e7f363
Merge "Pass MTE RuntimeFlags to AppZygote." am: 1db942e761
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910277
Change-Id: If16ed953afd35c4c58ee7ea966b889a1a3ca62fb
2021-12-07 19:19:15 +00:00
Evgenii Stepanov
1db942e761
Merge "Pass MTE RuntimeFlags to AppZygote."
2021-12-07 19:03:17 +00:00
Hao Ke
99c9242a10
Merge "Set default ClassLoader for Parcel readSerializable API." am: 3760188d11 am: d0ba47450c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899432
Change-Id: Iaefad8c2728987e12b089edfe74660424ceacbda
2021-12-06 17:43:54 +00:00
Hao Ke
d0ba47450c
Merge "Set default ClassLoader for Parcel readSerializable API." am: 3760188d11
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899432
Change-Id: I2a3c070553f6f198a8b34f0e3aa0a7cd64d4ee98
2021-12-06 17:21:29 +00:00
Hao Ke
3760188d11
Merge "Set default ClassLoader for Parcel readSerializable API."
2021-12-06 17:03:50 +00:00
Hao Ke
e214082cb0
Set default ClassLoader for Parcel readSerializable API.
...
Set the default ClassLoader for the readSerializable(ClassLoader,
Class) API, when the ClassLoader parameter is null.
Doing so could enhance the security of Parcel deserialization,
as it would prevent resolving the Serializable class using unexpected
ClassLoaders.
Test: atest -d android.os.cts.ParcelTest
Bug: 195622897
Change-Id: I6da4b4f817c33e4464d90d1e9775b54793835c92
2021-12-06 14:34:03 +00:00
Bernardo Rufino
e3d8a1a299
Deprecate unsafe Parcel.readParcelableArray(ClassLoader)
...
Forgot this one.
Test: Builds
Bug: 195622897
Change-Id: Ia258f77fd2e706d2071c853c20d6ec3baa170a1f
2021-12-06 13:40:08 +00:00
Evgenii Stepanov
8895ef1256
Pass MTE RuntimeFlags to AppZygote.
...
Fix AppZygote process and its children (the actual service processes)
ignoring android:memtagMode attribute in the app manifest.
When starting a new AppZygote process, apply memtag-related flags as
determined by the app manifest (and modified by compat features and
actual h/w capabilities). If this is not done, MTE is always disabled in
an AppZygote process, which makes it impossible to enable it in the
AppZygote's children.
This change has no effect unless MTE is supported in the hardware
(ARMv9) and enabled in the system.
Bug: 207557677
Test: CtsTaggingHostTestCases
Change-Id: I8805958545fd790e4ca857184b749a21e58d68cd
2021-12-03 17:20:05 -08:00
Hao Ke
258395cc81
Merge "Added End-of-Parcel check API." am: 93b3eb84ec am: 479f10d9b7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1876569
Change-Id: I0ed21fae1ba8382b9e6a9c0c4569872ddc4ba488
2021-12-04 00:45:37 +00:00
Hao Ke
479f10d9b7
Merge "Added End-of-Parcel check API." am: 93b3eb84ec
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1876569
Change-Id: I49bf528e536c18c64beb464d1021c5779d9f6325
2021-12-04 00:24:10 +00:00
Hao Ke
93b3eb84ec
Merge "Added End-of-Parcel check API."
2021-12-03 23:54:12 +00:00
Hao Ke
d6948b9583
Merge "Deprecate unsafe readParcelableList API." am: f75e459db0 am: ffabccb807
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909291
Change-Id: I8b78ac0212dc49bb1b74b8df7f9d419cd214e1ee
2021-12-02 22:01:33 +00:00
Hao Ke
ffabccb807
Merge "Deprecate unsafe readParcelableList API." am: f75e459db0
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909291
Change-Id: I3178b1085d729e7ce9fdb13f47fb8bdbf2bd06c8
2021-12-02 21:45:22 +00:00
Hao Ke
f75e459db0
Merge "Deprecate unsafe readParcelableList API."
2021-12-02 21:17:21 +00:00
Treehugger Robot
a545285129
Merge "Check for initialization of mUpdateEngine" am: e3a84af1a7 am: 0d39f92360
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907970
Change-Id: I10d42d3c1a27430b377c0363e91a7e37b246ef07
2021-12-02 20:19:12 +00:00
Treehugger Robot
0d39f92360
Merge "Check for initialization of mUpdateEngine" am: e3a84af1a7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907970
Change-Id: Ic6dd9dcbc427d9c867f2b1ccb447a591deb05c96
2021-12-02 19:11:39 +00:00
Treehugger Robot
e3a84af1a7
Merge "Check for initialization of mUpdateEngine"
2021-12-02 18:44:59 +00:00
Hao Ke
d117f6f6d5
Added End-of-Parcel check API.
...
Added End-of-Parcel check API, that verifies there are no
bytes left to be read on the Parcel.
Test: atest -d android.os.cts.ParcelTest#testEnforceNoDataAvail
Bug: 195622897
Bug: 204990745
Change-Id: I3068568d8d4371b071aecd357adeb45a2d7103e4
2021-12-02 16:16:54 +00:00
Hao Ke
aa4e9dfda8
Deprecate unsafe readParcelableList API.
...
Deprecate unsafe parcel APIs and point to the safer ones that take the
expected type as parameter. Also mentioned the typed ones
that take the creator as argument since those are also more performant.
Test: Builds
Bug: 195622897
Bug: 199275680
Bug: 205985058
Change-Id: I77a1a925d8759fd122936780587e3488705d4c56
2021-12-02 15:43:40 +00:00