- Feb 21, 2018
-
-
Paul Duffin authored
android.test.legacy is now build against SDK, thus available to apps build with SDK. In doing so, android.test.mock.stubs had to be built with SDK (because it is used by android.test.legacy). However, this wasn't trivial. The problem was that some classes in test-mock implemented abstract methods of platform classes. Even though they are marked as @hide, doclava automatically emit them to the stub file because otherwise the class in the stub file does not implement some abstract methods from its parent class, which in turn makes the stub file non-compilable. This CL solves the problem by introducing an adapter class in between the class in test-mock and the class in the framework. The adapter class implements abstract methods which are @hide and having reference to types that aren't available to SDK. The abstract methods are removed from the original class. Then doclava does not emit the abstract methods. Also by @hide'ing the adapter classes, they are not compiled when building the stub library. Bug: 30188076 Bug: 73339598 Test: m -j android.test.base Test: m -j android.test.legacy Test: m -j android.test.mock.stubs are successful and do not show link-check warning Merged-In: I8e432950e693ee3c6f0240852e62da6133d31571 Change-Id: I8e432950e693ee3c6f0240852e62da6133d31571
-
- Feb 18, 2018
-
-
Paul Duffin authored
This ensures that the API definitions for the android.test.mock package matches the definitions in the api/current.txt file. Bug: 30188076 Test: make update-api (cherry-picked from commit bd97e3dd) Merged-In: Id325b8cf2f189117ac4cfe7634095ab710eee004 Change-Id: Id325b8cf2f189117ac4cfe7634095ab710eee004
-
- Feb 17, 2018
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
- Feb 16, 2018
-
-
Brad Ebinger authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Robert Sesek authored
This adds a new --start-child-zygote argument that instructs the main zygote to create a new child process that will also be a zygote. The system_server generates a random name in the abstract socket namespace for it and the child-zygote to communicate over, and that is passed as an argument to the new process. A child-zygote bypasses the normal post-fork-child of the zygote process in order to preserve itself as a zygote. This means not starting the Binder threadpool nor launching into ActivityThread. Instead, a child-zygote calls into its own main function. The main function runs a ZygoteServer select loop, listening on the socket name specified by the system_server when it was forked. Unlike the system zygotes, a child-zygote can be killed without bringing down the system. Killing a child-zygote will not terminate its child processes, which will be reparented to init for reaping when they eventually exit. Bug: 63749735 Test: m (with multi-project commits landed) Change-Id: I3e7ebbdba498f8fec1d84cdf927dc43a92be4b68
-
Benedict Wong authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Mathew Inwood authored
Just support "*" for now, meaning disable all API blacklisting for all apps. Test: Manually verified by: - installing test app that accesses hidden API - manually blacklist the API - $ adb shell settings put global hidden_api_blacklist_exemptions \\* This is a cherry pick of change I9a41a104742c9aaaf3a753e7b0f3a1106e37d4d3 from internal master. Merged-In: I9a41a104742c9aaaf3a753e7b0f3a1106e37d4d3 Change-Id: Ibb2a1d054c1b099fc6093e37f24b2ed421a2313c
-
Treehugger Robot authored
-
Benedict Wong authored
testCreateTransformsWithSameConfigEqual used assertFalse rather than assertTrue Bug: 69385347 Test: Passing on walleye Change-Id: I8caa26e184e8bfc3e8acc9061d85c22d27ebf448
-
Calin Juravle authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Andreas Gampe authored
Bug: 72714520 Test: m javac-check-platformprotos RUN_ERROR_PRONE=true Merged-In: I00f5a588fa74621d4c35dc4e39b54536815ad476 Change-Id: I00f5a588fa74621d4c35dc4e39b54536815ad476
-
Dan Zhang authored
-
Treehugger Robot authored
-
- Feb 15, 2018
-
-
Treehugger Robot authored
-
Scott Kennedy authored
This makes it much easier to add null-safety when calling this from Kotlin. Test: refactoring CL. Existing unit tests still pass. Change-Id: I55c33ad4ff1306afd80c1a5562c54dfcb6068b0b
-
Hall Liu authored
Bug: 63934808 Test: builds Change-Id: I59a892fb0e314810e92dd9ad7d0c2f4610055045 Merged-In: I59a892fb0e314810e92dd9ad7d0c2f461005504
-
Nathan Harold authored
The Doc string for LTE timing advance incorrectly lists the range based on the maximum size of an incremental TA command rather than the cumulative timing advance. The spec reference is correct, but the range was wrong. Bug: 66751464 Test: compilation (docstring only change) Change-Id: I0242cae7af40a7d9ed5ae9a2a509592076e5b6a3
-
Hall Liu authored
-
Calin Juravle authored
Record the compilation reason in the oat files to enable better performance monitoring. Test: DexoptOptionsTest manual Bug: 73102540 Change-Id: Ifa487d4bc33dcd06f12af6bdd1d9a9c5f4562f4b
-
Xiangyu/Malcolm Chen authored
-
Hall Liu authored
Add a system setting to store preferred RTT mode for calls. Add logging for RTT in Telecom base classes. Bug: 63934808 Test: manual Change-Id: Ie26fac800931604379bbe7b8abfed7caa8c0236d Merged-In: Ie26fac800931604379bbe7b8abfed7caa8c0236d
-
Brad Ebinger authored
-
Treehugger Robot authored
* changes: Allow public profile compilation for primary apks [framework] Pass .dm files to dexopt at install time Extend the ArtManager profiling API to cover boot image profiling [framework] Extend profile operations to take the profile name Accept UserHandle.USER_ALL during profile preparation [framework] Prepare profile for app code paths Perform a non strict matching of .dm files when computing the size Support installation of DexMetadata files (.dm) Rename snapshotProfile to createProfileSnapshot for consistency Implement ArtManager#snapshotProfile API Add SystemApis to expose runtime profile information Log SHA256 of secondary dex files during reconcile.
-
David Brazdil authored
-
Chalard Jean authored
* changes: Deprecate CONNECTIVITY_ACTION. Publish FOREGROUND and add NOT_SUSPENDED capabilities. Send null UIDs to apps instead of single-uid lists.
-
Lorenzo Colitti authored
* changes: Restrict OWNERS in android.net.* Add OWNERS to the libandroid_net library.
-
David Brazdil authored
Change the toast message shown by an Activity when VMRuntime reports that the app has used a private API. (a) fix a typo: compatiblity -> compatibility (b) change guidance from "please consult log" to "go to <url> for more info" where devs can learn how to proceed if their app does have compatibility issues. Bug: 64382372 Test: make, visual Change-Id: Idbe32a724438bb7b0826d0b4e11ef505015cb321
-
Lorenzo Colitti authored
Test: None Change-Id: Icd56662dcbc86b49015d094fd8ae2ade235aa475
-
Lorenzo Colitti authored
Test: None Change-Id: I0ece820fc0de786a81df9f922135acdf92f1d136
-
Treehugger Robot authored
-
Tyler Gunn authored
Test: N/A Bug: 73373651 Change-Id: Ia0e19018d6cd72923f9f20b372d303fa532409b0
-
- Feb 14, 2018
-
-
Malcolm Chen authored
Add hidden API to add NetworkRegistrationState into SS's NetworkRegistrationState list. Bug: 73305596 Test: unittest Change-Id: Ief7f22632c1f3400c01663d13b990dc9b0d59e2e
-