Commit Graph

468813 Commits

Author SHA1 Message Date
Leon Scroggins III
898ce7516d [HWUI] Remove private references to AHardwareBuffer
Bug: 135299581
Test: CtsGraphicsTestCases (BitmapTest)

Previously, we were calling
android_hardware_HardwareBuffer_getNativeHardwareBuffer, which is
private. There is already an NDK API for doing the same thing. Ideally,
we would use it directly. However, libandroid_graphics (where the
calling code resides) cannot depend on libandroid (where the NDK API
resides), because that would introduce a circular dependency. Instead,
use dlopen/dlsym to find the necessary method. A similar approach was
used in ag/9975329.

Change-Id: I660bbcd153c52c339245ce2b4ee7765c4efa4623
2020-02-18 14:13:19 -05:00
Robert Carr
f2f84f5f27 Remove more deferTransactionUntilSurface calls
These won't work with the BLAST adapter since the Surface isn't
known to the server side. We just convert them in to the other
variant of defer transaction calls.

Bug: 146598493
Bug: 149251083
Test: Existing tests pass
Change-Id: I34fc4bb90114bae8b0d9ffdee5c91a2371e5c240
2020-02-18 11:08:52 -08:00
Rob Carr
033f51cde7 Merge "SurfaceControl: C++ Binding Lifetime refactoring" 2020-02-18 19:07:00 +00:00
Bohdan Petrivskyy
7139780e10 Removes redundant @SystemApi for registerMonitorCallback
and from MONITOR_DEVICE_CONFIG_ACCESS permission declaration.

Test: no need, just removing annotation.

Bug: 149487442
Change-Id: I73bbe9672eb5c8c0fd043c07a5e27463f0f14e5c
2020-02-18 19:05:39 +00:00
Eric Sandness
6be46b94d3 Merge "An allow-list for personal system apps on org-owned devices" 2020-02-18 19:05:13 +00:00
Sudheer Shanka
b497dd4045 Allow usagestats for multiple pkgs to be dumped.
+ Skip dumping database summaries when dumping data for specific pkgs.

Bug: 145420790
Test: manual
Change-Id: If4ac1008ffc73ad4b3227c0a407323b43547a6b8
2020-02-18 18:59:59 +00:00
Benedict Wong
b570e8654d Add always-on VPN support for platform VPNs
This commit allows Platform VPNs to be started as part of always-on
mode.

Test: FrameworksNetTests passing, new tests added in subsequent CL
Test: Manually tested.
Change-Id: I5eda88e5b406a0e425eb7424665cf702e0979324
2020-02-18 18:58:54 +00:00
nchalko
f3681741e3 Merge "Add encoding information to TvTrackInfo" 2020-02-18 18:57:34 +00:00
Hunter Knepshield
62912a8655 Merge "Forward IBinder#dump to CarrierService#dump" 2020-02-18 18:52:30 +00:00
TreeHugger Robot
2beecee9cf Merge "Declare a public field for new Japanese Era Reiwa" 2020-02-18 18:50:50 +00:00
Evgenii Stepanov
077e78a71f Merge "Refactor NativeHeapTagging compat feature." 2020-02-18 18:47:55 +00:00
Bill Yi
074e2f2120 Import translations. DO NOT MERGE
Change-Id: Id8b2a0f8ca9782ba4c4e0899ba19cedfff8d0fef
Auto-generated-cl: translation import
2020-02-18 10:42:04 -08:00
Amit Mahajan
223696559f Merge "Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead" 2020-02-18 18:40:30 +00:00
TreeHugger Robot
02e829dd80 Merge "Add feature ids to system server services that requset location." 2020-02-18 18:39:13 +00:00
Amy Zhang
e891f575a4 Merge "Moving TRM under a separate package Change the TunerResourceManagerListener to ResourcesReclaimListener" 2020-02-18 18:38:38 +00:00
Alex Kershaw
809c58a598 Merge "CrossProfileApps#startActivity by intent starts in same task by default" 2020-02-18 18:37:12 +00:00
Marin Shalamanov
ed881341e7 Log signatures for failing JNI lookups.
The JNI helper methods such as GetFieldIDOrDie, GetFieldIDOrDie
mast commonly fail due to wrong signatures. However, currently
the error logs do not show the signatures which makes it hard
to debug. This CL adds the signatures of the failing lookups.

Test: 1. introduce an error in a signature in
         android_view_SurfaceControl.cpp
      2. build and flash a device
      3. inspect logcat

Change-Id: I055dfe761517625b0d541e9660de709d19360efc
2020-02-18 19:36:29 +01:00
Marin Shalamanov
98af159104 DeviceProductInfo API.
DeviceProductInfo API that can be used to prime an Android TV remote
with entries from an infrared database for controlling connected
audio and TV devices. See go/display-identifiers.

Bug: 145299597
Test: adb shell dumpsys display
Change-Id: I8d709d55d830eed932b51bb8c374d32e20eecf6d
2020-02-18 19:36:29 +01:00
Julia Reynolds
e6d85ede20 Merge "Fix persistence bug with toggle actions" 2020-02-18 18:29:50 +00:00
TreeHugger Robot
1c95829a27 Merge "Collect only AppOps self noted by app and proxied by trusted apps." 2020-02-18 18:19:39 +00:00
TreeHugger Robot
0e0454f517 Merge changes I639852a4,I599024a1
* changes:
  Modifies PIP to use the FloatingContentCoordinator.
  Modifies Bubbles to use the FloatingContentCoordinator.
2020-02-18 18:17:24 +00:00
TreeHugger Robot
003dedcc7d Merge "Controls API - Remove unnecessary templates" 2020-02-18 18:15:20 +00:00
TreeHugger Robot
928add13d4 Merge "Set a shorter timeout for logging a warn on slow IUserSwitchObservers." into qt-qpr1-dev 2020-02-18 18:08:42 +00:00
Oscar Shu
2f156b0da2 Merge "Bucket channel frequency on device" 2020-02-18 18:08:17 +00:00
TreeHugger Robot
3b657dc514 Merge "Add feature id to location dumpsys." 2020-02-18 18:07:14 +00:00
Oscar Azucena
2a180f1140 Merge "Remove user id based audio captured API." 2020-02-18 17:55:19 +00:00
TreeHugger Robot
d2822ad088 Merge "Update empty overflow copy" 2020-02-18 17:48:12 +00:00
Kyeongkab.Nam
ada0f3079c Add encoding information to TvTrackInfo
Add TIF API for getting encoding in order for TV App to use it.

Test: build
Bug: 112835103
Change-Id: I975dda20f129cb05d55eb59a1a60bcdb22b2533e
Merged-In: I975dda20f129cb05d55eb59a1a60bcdb22b2533e
2020-02-18 17:45:00 +00:00
Treehugger Robot
28484421fc Merge changes I758270b8,Ic08b2b06 am: fbbb808b2a am: f6ac8fca82
Change-Id: I69688fdbc66f9d45d1985be5aeaf236ff326177a
2020-02-18 17:41:18 +00:00
Patrick Baumann
74a2684799 Adds --force-queryable option to adb install am: 264700a361
Change-Id: I7ed25c8305510417f215624e56e93ee626a6c648
2020-02-18 17:41:15 +00:00
Patrick Baumann
2a1380d471 Revert "DO NOT MERGE: Adds --force-queryable option to adb install" am: e464d16f7d am: 128eb4ce34
Change-Id: I6f8c3a079bbb0808e1da9c76832da3c897e3e898
2020-02-18 17:41:09 +00:00
TreeHugger Robot
5a99280ce7 Merge "Fix GnssManagerServiceTest" 2020-02-18 17:39:58 +00:00
Andrei-Valentin Onea
309680b57a Merge changes from topic "add-caching-platformcompat" am: 8f269473b2 am: 61e6c86f54
Change-Id: I29bd6489714d3101eef2d8c18a12bd71391ff4ef
2020-02-18 17:39:43 +00:00
Daniel Colascione
9df97ead62 Add property-invalidated cache am: 764ff47f87 am: 7c9f1499bc
Change-Id: Ib917ce8f32bccf91ec2c4d77e445f8afae6d7ad5
2020-02-18 17:39:40 +00:00
Lucas Dupin
80fedffc34 Merge "Fix potential NPE while releasing worker thread of ImageWallpaper" 2020-02-18 17:37:37 +00:00
Philip P. Moltmann
a04b9ab403 Improve AppOpsManager documentation
... focusing on public APIs.

Test: one docs changes
Bug: 136505050
Change-Id: I90215a638a3c380fcffde2b9209c4386f8fd70ea
2020-02-18 09:36:45 -08:00
Treehugger Robot
f6ac8fca82 Merge changes I758270b8,Ic08b2b06 am: fbbb808b2a
Change-Id: I266e6d653d74189775480378d1a685935285facf
2020-02-18 17:34:23 +00:00
Patrick Baumann
128eb4ce34 Revert "DO NOT MERGE: Adds --force-queryable option to adb install" am: e464d16f7d
Change-Id: Ib6c62581068538f8e320219f3996ba9365bae1f5
2020-02-18 17:34:18 +00:00
Treehugger Robot
fbbb808b2a Merge changes I758270b8,Ic08b2b06
* changes:
  Adds --force-queryable option to adb install
  Revert "DO NOT MERGE: Adds --force-queryable option to adb install"
2020-02-18 17:30:48 +00:00
Andrei-Valentin Onea
61e6c86f54 Merge changes from topic "add-caching-platformcompat" am: 8f269473b2
Change-Id: If1af69efe644b57c990a85bbb07ea9442edf808e
2020-02-18 17:30:44 +00:00
Daniel Colascione
7c9f1499bc Add property-invalidated cache am: 764ff47f87
Change-Id: I49849de310a637d9d407698a4a0120b5b8aa48aa
2020-02-18 17:30:40 +00:00
Jean-Michel Trivi
fc3b8a8df3 MediaFormat AAC DRC documentation updates
Better doc for Target Ref level.
Clarify behavior of -1 for Target Ref level

Bug: 148385721
Test: atest DecoderTestXheAac DecoderTestAacDrc
Change-Id: I8ef83abc73d72552c4ea8e63839cc6efb4d22a45
2020-02-18 09:29:13 -08:00
Dmitri Plotnikov
ca854b42fd Merge "Prevents an NPE when content provider is slow to start" 2020-02-18 17:26:04 +00:00
Bill Yi
70ea2282eb Import translations. DO NOT MERGE
Change-Id: I46ec43cc8038e45b9c415ec0fec0411beb48ea8e
Auto-generated-cl: translation import
2020-02-18 09:18:25 -08:00
Andrei-Valentin Onea
8f269473b2 Merge changes from topic "add-caching-platformcompat"
* changes:
  Cache binder calls in CompatChanges
  Add property-invalidated cache
2020-02-18 17:16:09 +00:00
kwaky
c26e4fa64f Add vertical type check to prevent non-Automotive Androids from force displaying system bars.
Force displaying system bars can cause app screen compatibility issues
in non-Automotive Android.

Bug: 148407132
Test: CTS Test + Unit Tests
Change-Id: Ia433572650760e3b85954724c63084dca769eaa0
Merged-In: Ia433572650760e3b85954724c63084dca769eaa0
2020-02-18 09:15:54 -08:00
Sudheer Shanka
d939311ba4 Allow verbose logging to be enabled for an app.
Structured similar to "cmd activity watch-uids --oom <uid>".

Bug: 145420790
Test: manual
Change-Id: I99c8427368234d5763e355a4f483eca764e29de3
2020-02-18 09:10:32 -08:00
Nate Myren
ccc0f8b5d5 Merge "Don't mutate permission state when setting app op from PermissionPolicyService." 2020-02-18 17:08:59 +00:00
Nathalie Le Clair
c67b893a68 Default wake on plug to false for audio system
Changes made:
	1. Audio system device no longer wakes up on hotplug (as was already done for playback devices in change https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/10319601)
	2. Added unit tests for 1.
	3. Added unit tests for change https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/10319601

Note: we should consider implementing this change in HdmiCecLocalDeviceSource instead (which is the class HdmiCecLocalDevicePlayback and HdmiCecLocalDeviceAudioSystem extend), to have a streamlined behavior for all future source classes.

Test: N/A
Bug: 149479986

Change-Id: I953af5ea93b609919d768fa98dce47daf62f2f06
2020-02-18 17:01:02 +00:00
Sudheer Shanka
60803039f8 Return randomly generated session ids from createSession().
Bug: 149324538
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Test: atest ./services/tests/mockingservicestests/src/com/android/server/blob/BlobStoreManagerServiceTest.java
Change-Id: I889c0cc0ebe8baef65f741a2f15c1e3201aec7d2
2020-02-18 08:57:02 -08:00