393832 Commits

Author SHA1 Message Date
Shuo Qian
f590bb40ec [automerger skipped] Merge "Remove dummy subscription ids" am: 22d12411fd am: f7a5ef5caa
am: 75418ebfe2  -s ours

Change-Id: I6dd5f2ea38f7a9720ebe71ca4e0ae61729b83429
2018-11-19 14:38:31 -08:00
Eugene Susla
a931f9eec0 Remove exclusive OWNERS for BitUtils
BitUtils is a fairly generic place where all framework engineers should
be able to contribute reusable code.

Test: test after merge in gerrit UI
Change-Id: Ibd00f0618e3e85aab466cedc43605115994cca4f
2018-11-19 14:38:12 -08:00
Jack Yu
b400507670 Move hidden APIs into system APIs
To allow vendor code to construct LinkAddress, which is
one of the parameter in the system API DataCallResponse.

Test: Build
Bug: 73659459
Change-Id: I3e203781d3a03285fa0e047cc8837ccb4a09016a
2018-11-19 14:37:44 -08:00
TreeHugger Robot
6ef3c9f91d Merge "Fix a code comment" 2018-11-19 22:33:41 +00:00
Shuo Qian
75418ebfe2 Merge "Remove dummy subscription ids" am: 22d12411fd
am: f7a5ef5caa

Change-Id: Id0a69db7c6668770361b6df58eef8d1a082ceca4
2018-11-19 14:24:52 -08:00
Ryan Mitchell
19954a261c Merge "Do not serialize empty text in manifest proto" 2018-11-19 22:13:35 +00:00
Shuo Qian
f7a5ef5caa Merge "Remove dummy subscription ids"
am: 22d12411fd

Change-Id: I107462d3037bc0ced691ceaf3aa625ca2434dd1c
2018-11-19 14:11:16 -08:00
Ryan Mitchell
b85d9b2a32 Fix copying null reference across themes
When themes have two different AssetManagers, we only copy attributes
that exist in both the themes. If the value of the attribute or
reference is equal to 0 (a null reference but not using the TYPE_NULL
type), do not attempt to fix the package id of that null reference.

Bug: 119522708
Test: manual test of broken app
Change-Id: Id615d5a47b7f121b08bbba885d106b9cd3f54afc
2018-11-19 14:09:14 -08:00
Shuo Qian
22d12411fd Merge "Remove dummy subscription ids" 2018-11-19 22:03:58 +00:00
TreeHugger Robot
c8a685abf9 Merge "Add MATCH_APEX flag to getInstalledPackages." 2018-11-19 22:00:19 +00:00
TreeHugger Robot
6637c47d30 Merge "Add extcon specific UEventObserver" 2018-11-19 21:54:37 +00:00
Hongming Jin
c796e17aa8 Merge "Add AppOps entries for read sms operation for financial apps." 2018-11-19 21:47:12 +00:00
Mark Salyzyn
adc63f02b3 Merge changes I664fb325,I5e289469 am: 701001688f am: 833a491fab
am: beea2153ab

Change-Id: Ifd30d79d06e4e80103ff2f09b0ae960ceb8bc7f9
2018-11-19 13:46:31 -08:00
Salvador Martinez
2f792ef813 Fix user setting for dark mode not being applied
There was nothing making it so that night mode would be read
from settings global when the user was switched. Additionally
the settings was not being explicitly saved for the user. This
change makes it so we save the setting per user and registers
a receiver to update the UI when the user changes.

Test: Manual verification in settings by toggling
Change-Id: I4ddbc6bbcc51c81cb0271525a71b37440581feab
Fixes: 116001869
2018-11-19 13:33:56 -08:00
Mark Salyzyn
beea2153ab Merge changes I664fb325,I5e289469 am: 701001688f
am: 833a491fab

Change-Id: If9ccdbfe5ee734c9cbd95a0c7bef04e6336d6f48
2018-11-19 13:33:13 -08:00
TreeHugger Robot
5c9cf0e485 Merge "Improved generics on AbstractMasterSystemService / AbstractPerUserSystemService." 2018-11-19 21:31:53 +00:00
Dichen Zhang
2d767d2f8b Make AudioManager.generateAudioSessionId() static
Bug: 119775358
Test: MediaPlayer2Test
Change-Id: Ie4fe5088c9d5f2c3bae251ed8cb0fa2e0a7038f8
2018-11-19 13:14:57 -08:00
Mark Salyzyn
833a491fab Merge changes I664fb325,I5e289469
am: 701001688f

Change-Id: Ieafa0716c008f6ab439b0305145f6273875283e1
2018-11-19 13:01:21 -08:00
John Reck
1733e2a6a3 Add an OWNERS to HWUI
Test: none
Change-Id: Idb248e91e1ccc8558775907d20208424a265796c
2018-11-19 12:56:09 -08:00
sqian
91412858b7 Remove dummy subscription ids
Test: Treehugger
Bug: 119144366
Change-Id: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
Merged-In: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
(cherry picked from commit bfde48f4ed4958251d28e695a39ce88f10f3542f)
2018-11-19 12:54:44 -08:00
Aurimas Liutikas
588bdc6719 Merge "Add style value to ResolvedBag in AssetManager2." 2018-11-19 20:48:55 +00:00
Shuo Qian
2f6ef53ec6 Merge "Remove dummy subscription ids" 2018-11-19 20:38:42 +00:00
TreeHugger Robot
8145a37aac Merge "Turn on feature flag for data usage v2." 2018-11-19 20:28:25 +00:00
Treehugger Robot
701001688f Merge changes I664fb325,I5e289469
* changes:
  switch to using android-base/file.h instead of android-base/test_utils.h
  Remove unused reference to android-base/test_utils.h
2018-11-19 20:25:30 +00:00
Peter Collingbourne
13a734dc96 Fix a use-after-free found by HWAsan.
The variable sizeResult is an iterator pointing into mCurrentValues,
and clearing mCurrentValues invalidates the iterator.

Bug: 119773465
Change-Id: I940ea397af87561d33f74a9d52abc3afd0a7538f
2018-11-19 20:15:26 +00:00
TreeHugger Robot
d1633c3bdb Merge "Incidentd: Fix switch break warnings" 2018-11-19 20:14:12 +00:00
Nick Chalko
0816eb3b4a Add extcon specific UEventObserver
Change-Id: If751f7264eebdedd9a23f8dbb33e1cc1fab00951
Test: m -j services.core
Bug: 116011465
2018-11-19 11:58:18 -08:00
Wale Ogunwale
953fd225cc Added mockito-extended support to WmTests.
Allows us to use spyOn() in window manager tests

Test: existing tests pass
Bug: 113806960
Change-Id: I7b0e5749ab656697f692c423c0ac24fbaebfcfd0
2018-11-19 11:55:29 -08:00
TreeHugger Robot
c2d4773ec8 Merge "Updating shared lib ref to new class." 2018-11-19 19:44:33 +00:00
Dan Willemsen
d6764f8503 Merge "Convert libwebviewchromium_plat_support to Android.bp" am: 1feeeba433 am: e9db0313a3
am: f1c1db0153

Change-Id: I2aaa83120ea4c50bff44dbcbe976795602fdc89f
2018-11-19 11:22:57 -08:00
Felipe Leme
e20bf9f5cc Improved generics on AbstractMasterSystemService / AbstractPerUserSystemService.
Bug: 117779333
Test: atest CtsAutoFillServiceTestCases

Change-Id: I777fbe44aa395372eba3c97a1c18c2de4c771dd4
2018-11-19 11:15:48 -08:00
xshu
a33726eea6 WifiUsability proto for ML
Bug: 113262380
Test: compile, unit tests

Change-Id: I60d29116fa2ee3d5781ef49e30b462b7a26d90bc
2018-11-19 11:12:53 -08:00
TreeHugger Robot
4c9e89671b Merge "Reorders arguments in Context Hub Service methods" 2018-11-19 19:12:36 +00:00
Dan Willemsen
f1c1db0153 Merge "Convert libwebviewchromium_plat_support to Android.bp" am: 1feeeba433
am: e9db0313a3

Change-Id: I41744a45ab7e749737def35bf9f260020236d70f
2018-11-19 11:09:45 -08:00
Leon Scroggins III
19ff0c57d5 Use ALLOCATOR_SOFTWARE with ImageDecoder
Bug: 119510493
Test: atest FrameworksCoreTests:android.content.ContentResolverTest

An app may want to draw this thumbnail to a software canvas, so use the
software allocator to support that.

Change-Id: Ib789e0bf98c3638c61c43fe6cd7d504cdfe02ced
2018-11-19 14:08:52 -05:00
TreeHugger Robot
76dd19544a Merge "Add ProcessMemoryHighWaterMark atom" 2018-11-19 19:04:38 +00:00
Mihai Popa
1ddabb2c80 [Magnifier-57] Add API to set overlay
The CL adds an API to customize what overlay will be drawn on the top of
the magnifier content. Our default is to draw a 5% white overlay to make
magnifiers distinguishable in dark contexts.

Bug: 72211470
Test: manual testing
Change-Id: I1a356813960a60f49e068c6135ded9d41429d57c
2018-11-19 19:01:46 +00:00
Dan Willemsen
e9db0313a3 Merge "Convert libwebviewchromium_plat_support to Android.bp"
am: 1feeeba433

Change-Id: Ie1d1747dab1dcf6e8d4ed9a538f6f9bad1208b2a
2018-11-19 11:00:24 -08:00
Louis Pullen-Freilich
b9596fa128 Deprecates framework Preference classes
The AndroidX Preference Library is the recommended way to build settings
screens moving forward.

Bug: b/114357488
Test: n/a
Change-Id: I3b3bff2daf43d8239d8bf247a9c2acebbc6374eb
2018-11-19 18:58:44 +00:00
Chris Blume
026d70ba45 Do not use both "virtual" and "override".
C++'s "override" keyword implies "virtual". When "virtual" and
"override" are both specified it means something slightly different from
just "override", which is what was intended here.

I teach the C++11 class here at Google. I asked the C++ arbitors to help
me understand this difference. They warned that it is dangerous and not
worth knowing. But that it is worth avoiding.

Test: Tested on local device -- no noticable change.
BUG=115613038

Change-Id: I372821053755fc4cbb1d001b71af7f02dffde5b2
2018-11-19 10:53:04 -08:00
Dario Freni
cb7a68d29a Add MATCH_APEX flag to getInstalledPackages.
If set, PackageManager will query apexservice and ask for activated
packages.

Test: wrote a small app to test the new query.
Bug: 117589375
Change-Id: I498bd97896f3eab65c88e9684874a30713be585e
2018-11-19 18:51:21 +00:00
Treehugger Robot
1feeeba433 Merge "Convert libwebviewchromium_plat_support to Android.bp" 2018-11-19 18:37:06 +00:00
TreeHugger Robot
5798ef6a96 Merge "public eSIM APIs created in Android P" 2018-11-19 18:26:23 +00:00
Andrew Solovay
49e3049613 Merge "docs: Fixing typos." into pi-dev am: 94a49c90a7
am: 0db8a96a7c

Change-Id: Ib4e0492fb8b58acb215c566f60d9f3156687b278
2018-11-19 10:11:08 -08:00
tonyzhu
6ac54dc519 [API Review]Clarify method that obtain a component name
Change JavaDoc in CarrierConfigManager.java. Clarify what format
string will be set and get from the key. Using ComponentName methods
to convert.

Bug: 118675660
Test: build success.
Change-Id: I47db5b665808ef7dbc9081e0112a04958497d6fd
2018-11-20 02:04:27 +08:00
Andrew Solovay
0db8a96a7c Merge "docs: Fixing typos." into pi-dev
am: 94a49c90a7

Change-Id: I21aeb887a0bc4001ce4926909e1ce197fc0eb85f
2018-11-19 09:57:19 -08:00
Amin Shaikh
710d123010 Add Intent#EXTRA_CONTENT_QUERY.
Fixes: 119269845
Test: make
Change-Id: I849d0ca62a222b8cabb8cb0e71eb6b016026cc0c
2018-11-19 12:51:13 -05:00
David Brazdil
b319ccfdcc Create AppComponentFactory.instantiateClassLoader API
Adds a hook to AppComponentFactory to allow control over the
instantiation of the main app class loader. LoadedApk creates
the default class loader and uses it to load the base APK. If
AppComponentFactory is declared in the manifest, its new method
instantiateClassLoader is called and its result becomes the
class loader used by LoadedApk to instantiate other classes
declared in the manifest. By default this is simply the class
loader created by LoadedApk.

Second method provides AppComponentFactory with a copy of
ApplicationInfo. The factory otherwise cannot locate any of the
app's resources, including its APK or the data folder.

Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Merged-In: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
Change-Id: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
(cherry picked from commit fd6dcc21d9ee8ee5d1cad71a8d705cf0d42980a7)
2018-11-19 17:47:13 +00:00
Olivier Gaillard
b4bbd2c8a8 Merge "Update documentation for ThreadLocalWorkSource." 2018-11-19 17:42:05 +00:00
Andrew Solovay
94a49c90a7 Merge "docs: Fixing typos." into pi-dev 2018-11-19 17:37:52 +00:00