Commit Graph

8992 Commits

Author SHA1 Message Date
Jeff Sharkey
34229aaf73 Merge "General BytesMatcher utility class." into sc-dev 2021-03-05 18:12:15 +00:00
Sean Stout
084f08258d Merge "Pass Display ID when reporting user activity from Java" into sc-dev 2021-03-05 13:24:10 +00:00
Christian Wailes
02d6322bd2 Merge changes I04ac8fba,Ia0a8548f am: db6628bb7d am: a534c95087 am: 87287a5859
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1615382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ief019f6e8ee38664c5319e1756ca2c72065cd1af
2021-03-05 05:15:59 +00:00
Christian Wailes
87287a5859 Merge changes I04ac8fba,Ia0a8548f am: db6628bb7d am: a534c95087
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1615382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I06eb075d11b110ccbbd8dcaecb948e502d69f6bb
2021-03-05 05:10:07 +00:00
Jeff Sharkey
6644436a75 General BytesMatcher utility class.
As part of an upcoming feature, we're anticipating the need to match
arbitrary byte sequences, such as Bluetooth UUIDs or MAC addresses,
so this change adds a new BytesMatcher similar in spirit to
the existing PatternMatcher.

It supports a reasonably compact serialization format which can be
used to transport a server-pushed deny-list.  The choice to support
both "accept" and "reject" rules in an ordered list means that very
complex matching rules can be expressed efficiently.

Bug: 181812624
Test: atest FrameworksCoreTests:android.os.BytesMatcherTest
Change-Id: I55193051354278abaef8bef51413c632b07c7177
2021-03-04 14:57:01 -07:00
Christian Wailes
db6628bb7d Merge changes I04ac8fba,Ia0a8548f
* changes:
  Autoformatter changes.
  Inclusivity cleanup of the Zygote.
2021-03-04 21:09:52 +00:00
TreeHugger Robot
2aebc3e739 Merge "Add vibrator capabilities to service dumpsys" into sc-dev 2021-03-04 20:09:57 +00:00
Zimuzo Ezeozue
ed23887b8e Merge changes I2a817d71,I86f800c4 into sc-dev
* changes:
  Avoid waiting for the async notifyAnrDelayStarted
  Implement ANR delay with app IO blocked reason
2021-03-04 10:37:03 +00:00
Remi NGUYEN VAN
3c649ed684 Merge "Add Build.IS_DEBUGGABLE to public API" am: 9c16d8e25d am: 739f8a3fb1 am: 043099e934
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1397947

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie58769fe349a87152d0b3a23c6e59a9649b49e92
2021-03-04 05:10:15 +00:00
Remi NGUYEN VAN
043099e934 Merge "Add Build.IS_DEBUGGABLE to public API" am: 9c16d8e25d am: 739f8a3fb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1397947

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19e099baa632221842cf1687fbef0bad06fda060
2021-03-04 04:23:30 +00:00
Remi NGUYEN VAN
9c16d8e25d Merge "Add Build.IS_DEBUGGABLE to public API" 2021-03-04 03:02:56 +00:00
TreeHugger Robot
198c943d87 Merge "Hide API for combined sequential effects." into sc-dev 2021-03-04 01:00:03 +00:00
Chris Wailes
a6f8803c85 Inclusivity cleanup of the Zygote.
Changed "whitelist" to "allowlist" in many Zygote files.

BYPASS_INCLUSIVE_LANGUAGE_REASON="compatability with vendor files"

Test: cts
Change-Id: Ia0a8548f2e254fc36a9dce7e50af8284ed0caa47
2021-03-03 14:23:32 -08:00
Lais Andrade
c8bd45a817 Hide API for combined sequential effects.
Hide the introduced public API until we have more clarity on how
VibrationEffect.Composition will look like after changes related to PWLE
effects.

Bug: 167946760
Test: N/A
Change-Id: I152f8ac09c35d672b90e3ebcb2e1041f8f08efaf
2021-03-03 17:14:51 +00:00
Zimuzo Ezeozue
3d28144bbd Merge "Accept UUID instead of String in notifyAppIo APIs" into sc-dev 2021-03-03 16:15:58 +00:00
Zim
1985e314e2 Implement ANR delay with app IO blocked reason
The ExternalStorageService now notifies the system_server of app IO
blocked reasons, specifically transcoding. If an ANR occurs, we query
these reasons for the uid to modify the ANR dialog behavior

Bug: 170486601
Test: Manual
Change-Id: I86f800c4a6c565a7bced0f2a5c5da7ba6c048168
2021-03-03 15:57:27 +00:00
Zim
055878b433 Accept UUID instead of String in notifyAppIo APIs
UUID is more strongly typed and encouraged from an API
perspective.

Also added null checks

Test: m
Bug: 170486601
CTS-Coverage-Bug: 181222557
Change-Id: I25565711ca51e8459a89142ac5ac1b767a6326f9
2021-03-03 12:46:46 +00:00
Saumya Pathak
288500af87 Adding API to get PendingIntent to launch manageSpaceActivity
Bug: 167966131
Test: StorageTestApp and atest StorageManagerTest#testLaunchManageSpaceActivityIntent
Change-Id: Id3d23fcca992819238cd24fc441c98719d5e7709
Merged-In: Id3d23fcca992819238cd24fc441c98719d5e7709
2021-03-03 10:46:01 +00:00
Remi NGUYEN VAN
e5e3843176 Add Build.IS_DEBUGGABLE to public API
For testing purposes, system components such as mainline modules may
need to relax some security restrictions on debuggable builds only, in
cases where there is no testing strategy that would be reasonable on
user builds security-wise.
One example is to test interfaces between a mainline module and the
rest of the system, which typically require very privileged permissions.

There is no particular reason or permission check to keep the symbol
non-public so add it to the public API.

Test: m
Fixes: 163699557
Change-Id: I15c093af04f024eed5567151b241a4bc35c611d4
2021-03-03 11:16:35 +09:00
Patrick Baumann
2d55bda434 Merge "Adds caller check to getAllPackages()" into rvc-qpr-dev am: ec4ba204d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13617976

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iceb77ee1f663833202421151654151893b68ea72
2021-03-02 23:51:52 +00:00
Songchun Fan
d011cf614e Merge "[pm/incremental] minor fix for unbind timing" into sc-dev 2021-03-02 22:55:06 +00:00
TreeHugger Robot
ad44b3ceaa Merge "Add return value annotation to getSoundTriggerMode" into sc-dev 2021-03-02 21:59:09 +00:00
Remi NGUYEN VAN
3f5702c5ef Merge "Move UidRange to connectivity" am: 5a81037576 am: 4f6f17230f am: 6dd910c726
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612295

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie9d41595a21c494931e9bf45bfc4e8b2aa9803f3
2021-03-02 21:09:32 +00:00
Abhijeet Kaur
b68c51d4c4 Merge "Removed unused mount mode constants" am: 14f35d5f2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1605513

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I80d0c585e742f33ce90fac787f54b5c0903f070f
2021-03-02 20:59:46 +00:00
Remi NGUYEN VAN
6dd910c726 Merge "Move UidRange to connectivity" am: 5a81037576 am: 4f6f17230f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612295

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic05c10eca12c3c43190c767b4cef6ad88a0835f5
2021-03-02 20:43:46 +00:00
Remi NGUYEN VAN
4f6f17230f Merge "Move UidRange to connectivity" am: 5a81037576
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612295

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I672615b0804b9a9de4befa1ba5aea2efb9c962df
2021-03-02 20:24:20 +00:00
Songchun Fan
825e6a7fef [pm/incremental] minor fix for unbind timing
Do not unbind stage dir after rename. IncrementalFileStorages.cleanUp() will take
care of that. Otherwise, we lose the chance to unregister the loading
progress listener.

BUG: 181610887
Test: manual
Change-Id: I690609ffeac25b07fd8fe6fd4fdfe44148325523
2021-03-02 20:02:25 +00:00
Chiachang Wang
9ec3eb7802 Merge changes Ifc561b6d,I63137b24 am: 0d7553b30e am: fed4ec6ff6 am: 089104cf50
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1605334

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I695ba5ac549800fbf87a8c2a53e1eab86e91d2c3
2021-03-02 19:55:22 +00:00
Chiachang Wang
089104cf50 Merge changes Ifc561b6d,I63137b24 am: 0d7553b30e am: fed4ec6ff6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1605334

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib734109b5f2e6acb26e25e65139890415dfb0bc2
2021-03-02 19:50:50 +00:00
Chiachang Wang
fed4ec6ff6 Merge changes Ifc561b6d,I63137b24 am: 0d7553b30e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1605334

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I23cce279f53babac5b90364dd4fc0e55eb382dfa
2021-03-02 19:22:34 +00:00
Nicholas Ambur
22816ac3e7 Add return value annotation to getSoundTriggerMode
Bug: 181064773
Test: build and manually verify SoundTrigger
Change-Id: I75929c9fc0747e4df9dc385b580dff844b4a7b8c
2021-03-02 11:12:49 -08:00
Abhijeet Kaur
14f35d5f2d Merge "Removed unused mount mode constants" 2021-03-02 16:37:30 +00:00
Lais Andrade
b847d63f25 Add vibrator capabilities to service dumpsys
Add list of supported vibrator capabilities to information reported to
dumpsys, and fix Vibration to log original effect before any change is
applied by the local service.

Bug: 180924179
Test: manual
Change-Id: I97201771d3ee211dc2f4b6f9eac50b5b150affc0
2021-03-02 16:26:17 +00:00
Sean Stout
e3865a7dd1 Pass Display ID when reporting user activity from Java
Display ID information will be used to implement per-DisplayGroup
timeouts.

Test: manual - ensure Display ID is passed
Bug: 175764389
Change-Id: Id6881e10408eef26458359e1bb0a7356a8d70e62
2021-03-02 16:16:46 +00:00
Abhijeet Kaur
d41a537ed0 Merge "Removed unused mount mode constants" into rvc-qpr-dev-plus-aosp 2021-03-02 13:54:01 +00:00
Remi NGUYEN VAN
5a81037576 Merge "Move UidRange to connectivity" 2021-03-02 09:27:50 +00:00
Remi NGUYEN VAN
c983440dd8 Move UidRange to connectivity
UidRange is a data class that is an implementation detail of
Connectivity. Move it to the connectivity boundary.

Remaining usages of UidRange outside of Connectivity (in VPN) should be
migrated to other classes, like Range<Integer> or UidRangeParcel.

Bug: 181512874
Test: m
Change-Id: I6f2e3685ad1c07171dd90480d1e546329de8732d
2021-03-02 15:35:36 +09:00
Chiachang Wang
0d7553b30e Merge changes Ifc561b6d,I63137b24
* changes:
  Remove RouteInfo hidden depdendency in NMS
  Remove the hidden ConnectivityManager dependency in NMS
2021-03-02 05:13:22 +00:00
Zim
c534503ac0 Add API to notify the system_server when app is blocked on I/O
The MediaProvider is also the ExternalStorageService and manages all
app I/O on external storage. While handling an apps request, the MP
might block on some long running computations e.g transcoding

Test: Manual
Bug: 170486601
CTS-Coverage-Bug: 181222557

Change-Id: I36b59eb84d8de6b73ed22e82df1093e946e53eab
2021-03-01 10:36:16 +00:00
Hunter Knepshield
0da42ef255 Merge "[API review] Additional detail in BugreportCallback javadoc." am: 39742a519c am: b79c80ba78 am: 0f5e18a9f0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607112

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I09da5ada79dc0417e9f40769b924d1834fed3250
2021-03-01 08:12:58 +00:00
Almaz Mingaleev
4d562f64fd Merge "Re-throw system server exception." am: 112cd8df86 am: c76d1a4c26 am: 08f03dc59c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608233

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib5c9d8adbe377432df0710d8ab473683f6866bd7
2021-03-01 08:08:35 +00:00
Dmitri Plotnikov
1a0e70c7bd Merge "Add battery history to BatteryStatsUsage" into sc-dev 2021-03-01 04:45:20 +00:00
Felipe Leme
c3459a6e4e Merge "Minor adjustements on UserManager.isUserForeground()." into sc-dev 2021-03-01 03:52:48 +00:00
Dmitri Plotnikov
20720fa188 Add battery history to BatteryStatsUsage
Bug: 173745486
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryUsageStatsProviderTest
Change-Id: Icfd9e49b68f1be99312c88ac889b06aa669367ef
2021-02-28 17:05:39 -08:00
Dmitri Plotnikov
3539f8eea2 Remove support for OLD_HISTORY
The OLD_HISTORY constants has been set to false for almost
ten years. Need to simplify history support in preparation for
including history in BatteryUsageStats.

Bug: 180765532
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsHistoryTest
Change-Id: I8b7f55eb6e9e1c896dc046d2e6dafba885bf8970
2021-02-26 23:14:04 +00:00
Hunter Knepshield
0f5e18a9f0 Merge "[API review] Additional detail in BugreportCallback javadoc." am: 39742a519c am: b79c80ba78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607112

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I71f11a4a2ecec595a428f611d5bf62181a5e18d4
2021-02-26 19:12:00 +00:00
Hunter Knepshield
b79c80ba78 Merge "[API review] Additional detail in BugreportCallback javadoc." am: 39742a519c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607112

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id0c2b746e1be4944a6caa05c6764f37cf960bace
2021-02-26 18:52:56 +00:00
Hunter Knepshield
39742a519c Merge "[API review] Additional detail in BugreportCallback javadoc." 2021-02-26 18:31:22 +00:00
Hans Boehm
1d550ecd10 Merge "Add zygote native fork loop" am: 43a9a8089f am: dd81ed70c7 am: 925ecc3f80
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3afb617aab80b073b56fa0c61398ae6d42800a75
2021-02-26 17:20:42 +00:00
Adam Bookatz
47fe2c6ade Merge "TEST_MAPPING for BatteryStats" into sc-dev 2021-02-26 17:11:40 +00:00