- May 23, 2024
-
-
Makoto Onuki authored
- Support a few more ParcelFileDescriptor APIs. - Support OsConstants and a couple of Os APIs. - Also clean up f/b/ravenwood. Now we have "runtime-common" library that can be used from different components of Ravenwood infra, with native code support. Bug: 292141694 Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Test: CtsOsTestCases (on tree hugger) Flag: EXEMPT hostside test change only Change-Id: I259a04201e05e615e17da0529cb500a102887ec9
-
- May 21, 2024
-
-
Makoto Onuki authored
Bug: n/a Test: n/a Change-Id: I3c359283b8efa04d0731018c0d6647586221f8cc
-
Makoto Onuki authored
... even without a RavenwoodRule. There are situation where android APIs are called outside of a RavenwoodRule, but some of the APIs require a RavenwoodRule to initialize them. Since Build and SystemProperties are critical and often used by the test infra code (e.g. test runner or other junit rules), make sure they're always accessible. Fix: 341735388 Test: atest CtsOsTestCases Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Change-Id: Iedcfae7e75c5ee9f2c7fb87c61262c2b33450d04
-
- May 20, 2024
-
-
Makoto Onuki authored
Revert submission 27402077-2024-05-17-PFD Reason for revert: Broke tests Reverted changes: /q/submissionid:27402077-2024-05-17-PFD Change-Id: If2b50329dbcaccb5f13f7631f1fa4df532bfcc60
-
Makoto Onuki authored
- Support a few more ParcelFileDescriptor APIs. - Support OsConstants and a couple of Os APIs. - Also clean up f/b/ravenwood. Now we have "runtime-common" library that can be used from different components of Ravenwood infra, with native code support. Bug: 292141694 Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Test: CtsOsTestCases (on tree hugger) Change-Id: Ia06873114e80e9dd309d2cf077b208aaa7396542
-
- May 15, 2024
-
-
Makoto Onuki authored
We should minimize uses of it, but once in a while, it's useful as a last resort. Bug: 340556010 Test: atest FrameworksCoreTestsRavenwood:com.android.internal.ravenwood.RavenwoodEnvironmentTest Test: tree hugger for device side tests Merged-In: Ice651a55cad092514466dd56940a2cf7b2285e4e Change-Id: Ice651a55cad092514466dd56940a2cf7b2285e4e
-
Makoto Onuki authored
- Now unsupported Context API will throw with a more useful message. - Change all the "stub"s in the policy files to "keep"s. They are the same thing (with the current use of hoststubgen) and "keep" matches the annotation name better. Bug: 292141694 Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Change-Id: I56b60543801ebe9a4f1ba253996edc80f1bf3e32
-
- May 14, 2024
-
-
Makoto Onuki authored
- Moved Color's JNI methods out of Shader.cpp, so Ravenwood can enable it without enabling other shader native methods. - Also, leaned up the Matrix native methods while I'm here. Bug: 337110712 Test: atest CtsGraphicsTestCases Test: atest CtsGraphicsTestCasesRavenwood Test: Boot the device Change-Id: I0e99fb56ef581b4f59944994d07fd5253208dc31
-
Makoto Onuki authored
We should minimize uses of it, but once in a while, it's useful as a last resort. Bug: 340556010 Test: atest FrameworksCoreTestsRavenwood:com.android.internal.ravenwood.RavenwoodEnvironmentTest Test: tree hugger for device side tests Change-Id: Ice651a55cad092514466dd56940a2cf7b2285e4e
-
Makoto Onuki authored
- Also make ravenwood-stats-collector.sh collect "keep-all" files too. Bug: 292141694 Test: atest hoststubgentest tiny-framework-dump-test hoststubgen-invoke-test Change-Id: Ib0943c7c2f28c2558ddabe804d692b379fc178ed
-
- May 09, 2024
-
-
Makoto Onuki authored
Bug: 292141694 Test: Created http://ag/27283818 Change-Id: I5d5a98666debcaca8304b64600e3433eeda3bd3d
-
- May 07, 2024
-
-
Makoto Onuki authored
Bug: 292141694 Test: ravenwood/scripts/ravenwood-stats-collector.sh and check the output file Change-Id: I4e8e8462248355045e2494aa5e9fd457f85be15a
-
Makoto Onuki authored
... to allow other modules to refer to the text files. Bug: 292141694 Test: ./scripts/run-all-tests.sh Change-Id: I46f0c0e238a6d7f8dc1a30cf111296a529c83664
-
- May 02, 2024
-
-
Makoto Onuki authored
Enable Matrix, Path and Interpolator for starters Bug: 337110712 Bug: 337329128 Test: ./ravenwood/scripts/run-ravenwood-tests.sh Test: atest CtsGraphicsTestCasesRavenwood Test: atest CtsGraphicsTestCases Change-Id: Iefa17f91837c5382067bf17fc148b158133a4de5
-
- May 01, 2024
-
-
Makoto Onuki authored
We don't track native allocation size, but we still need to release native allocations. Bug: 337110712 Test: atest RavenwoodBivalentTest Test: atest RavenwoodBivalentTest_device Test: ./ravenwood/scripts/run-ravenwood-tests.sh Change-Id: Ia50c963731a26fc951a8040cbf353a5c56505b6a
-
- Apr 30, 2024
-
-
Makoto Onuki authored
Test: Treehugger Bug: 292141694 Change-Id: I87b14fbac29fdefecd9c503c2c97d16b00151e58
-
Makoto Onuki authored
- Now we show all methods including unsupported ones, with actual policies. - Also show inherited APIs. e.g. Now Object.toString() will always be included in every class. Bug: 292141694 Test: ./ravenwood/scripts/ravenwood-stats-collector.sh and examine the generated files Test: ./ravenwood/scripts/run-ravenwood-tests.sh Change-Id: I43bd40cf5013b0eb8f900dbc2f4b4b3fd158ad3f
-
- Apr 25, 2024
-
-
Makoto Onuki authored
Bug: 292141694 Test: ./ravenwood/scripts/ravenwood-stats-collector.sh and examine the generated files Change-Id: I3ea52f20ca54644f3ab724f23ae3e8f0e08e269f
-
- Apr 20, 2024
-
-
Dmitri Plotnikov authored
Bug: 323970018 Test: atest PowerStatsTestsRavenwood && atest PowerStatsTests Flag: com.android.server.power.optimization.streamlined_connectivity_battery_stats Change-Id: Id12cce9c3bb311ff97fcde0f21286cbc761ee48e
-
- Apr 09, 2024
-
-
Makoto Onuki authored
Test: MD change only Bug: 292141694 Change-Id: I10017cc470a85cf2c27d44709e584725925e3d12
-
- Apr 08, 2024
-
-
Dmitri Plotnikov authored
This is done in preparation for adding MobileRadioPowerStatsCollector. Mobile radio has multiple different states (3G, LTE, NR etc) and multiple different signal levels. The space of all states is vast, but sparse. This CL prepares to handle per-state stats without wasting too much RAM and disk space. Bug: 323970018 Test: atest --host FrameworksCoreTestsRavenwood PowerStatsTestsRavenwood Change-Id: I76841a59a385f5df0fcc957f5b00116b68d34250
-
- Apr 05, 2024
-
-
Makoto Onuki authored
Move all the tests to the `com.android.ravenwoodtest` package in order to tell them part from actual ravenwood code. This allows various tools to ignore ravenwood code without ignoring ravenwood test code. Test: ./ravenwood/scripts/run-ravenwood-tests.sh Bug: 292141694 Change-Id: I48728784e7dd2e5aea3327da793923c8ef3b795d
-
Makoto Onuki authored
[Fixed the NPE in the sysui test] - Bug fix: Now native substitution methods can handle bytes correctly. - Spec change: disallow using DisabledOnNonRavenwood on types. It turned out the device side test runner can't handle it if a class rule uses Assume. We could still support it with a non-class rule, but to avoid confusion, let's disallow using it on classes for the time being. - Add more tests - Some refactoring for future changes. Test: ./ravenwood/scripts/run-ravenwood-tests.sh Test: v2/sysui/unit_test on ABTD: https://android-build.corp.google.com/abtd/run/L40000030002931752/ Bug: 292141694 Bug: 332973325 Change-Id: I6d8df1e879840b60326e2beeeee2d8ee7b2ff925
-
- Apr 04, 2024
-
-
Priyanka Advani authored
This reverts commit ec5e313e. Reason for revert: Probable culprit for b/332911993. Will be verifying through ABTD for confirmation and before submitting the revert. Change-Id: I030e2d27d6b897013106b9d73b57b50823ea87c9
-
- Apr 03, 2024
-
-
Makoto Onuki authored
- Bug fix: Now native substitution methods can handle bytes correctly. - Spec change: disallow using DisabledOnNonRavenwood on types. It turned out the device side test runner can't handle it if a class rule uses Assume. We could still support it with a non-class rule, but to avoid confusion, let's disallow using it on classes for the time being. - Add more tests - Some refactoring for future changes. Test: ./ravenwood/scripts/run-ravenwood-tests.sh Bug: 292141694 Change-Id: I6e2fd389ef63d31472f5eafcd9a58ac9e52e8117
-
- Mar 28, 2024
-
-
Makoto Onuki authored
Also re-organize the f/b/ravenwood directory. Test: ./ravenwood/scripts/run-ravenwood-tests.sh Bug: 292141694 Change-Id: Icf6677c8ab8ead76148ae5278cb54d38fa0b34f2
-
- Mar 27, 2024
-
-
Makoto Onuki authored
Test: atest ravenwood-stats-checker Bug: 292141694 Change-Id: I51a295d940e4a02f33341614ca4b80bca330200c
-
- Mar 21, 2024
-
-
Makoto Onuki authored
This reverts commit 21b3abe2. Reason for revert: Ravenwood has resumed. Change-Id: I96b6ec9583775cd8b626fef57efcfbd419c645d4
-
Makoto Onuki authored
This reverts commit 109fe5c1. Reason for revert: Ravenwood has resumed. Change-Id: I53d4fdc0b99bb3b34e38bb5ce8f98ce6ed251b33
-
- Mar 20, 2024
-
-
sandeepbandaru authored
This is an extension to the existing `hasFileDescriptors` method, both of which are "Active Objects" of a sort and allow writes across processes. This check would be useful to perform validations on Bundle entries or any Parcelable type if it only contains non-active objects and can be essentially treated read only without having to inspect the marshalled parcel object. Test: TODO Bug: 316589195 API-Coverage-Bug: 323147058 Change-Id: I1fd8c8a27e3e7b90df8fefb0fe77bbad908db6b6
-
- Mar 13, 2024
-
-
Jeff Sharkey authored
Change-Id: Iee3d67a9e5269453f91bee6f3665a2460ba11517
-
- Mar 12, 2024
-
-
Jeff Sharkey authored
Change-Id: I46e09b507f84d47ca0aed8f5b471346470f8e7a4
-
- Mar 04, 2024
-
-
Michael Hoisie authored
The system properties can be stored in a std::unordered_map and can be read in one fell swoop. This reduces the amount of JNI boilerplate required to read individual system properties. Also remove the '**n/a**' magic string. LayoutLibLoader system property logic is designed to support the empty string value. This is effectively a cherry-pick of ag/25672148 but modified for LayoutlibLoader in `main`. Test: layoutlib-tests Change-Id: I7562dc6eecada3199d8a3b20879b2e1b296cfb32
-
- Feb 29, 2024
-
-
Jeff Sharkey authored
Many test authors are starting to use `CheckFlagsRule` across suites like CTS, so instead of recommending that they use `null` when on Ravenwood, offer them a clear behavior that is either "all-on" or "all-off". Eventually we'll explore providing default flag values on Ravenwood, but let's get something cleaner available now. Bug: 318841620 Test: ./frameworks/base/ravenwood/run-ravenwood-tests.sh Change-Id: Id234a375426fad38f64d3a999339bb720eae84bf
-
Jeff Sharkey authored
Ravenwood test authors should only need to call setServicesRequired() for the services they directly interact with, but often those services will have indirect dependencies on other OS internals, and those dependencies will evolve over time. To handle this, we add the concept of dependencies to SystemService, where a service declares the other services required to run. (They can choose to omit services from their dependencies where they gracefully handle a missing service at runtime.) Bug: 325506297 Test: atest RavenwoodServicesTest Change-Id: I42187b3494fef499d619ad882891e832b0fd6bca
-
- Feb 27, 2024
-
-
Jeff Sharkey authored
One of our eventual goals with Ravenwood is to support usage of system services from test code. A recent change added support for "real" services on Ravenwood, and this change expands that to add support for "fake" services. Some services are so tangled with dependencies it would take a long time until we'd be able to run their "real" code. Also, some services with deep hardware dependencies that it can be difficult to add new abstraction layers to support Ravenwood. Finally, we want to support service owners that only have resources to meet the "Pareto principle", where enabling 20% of their functionality on Ravenwood is enough to unblock 80% of test use-cases. Thus, we're supporting teams bringing either "real" or "fake" implementations of their services. Since all test interactions still go through published FooManager and FooManagerInternal-style interfaces, teams can start with a "fake" and slowly transition to using more of their "real" code over time, without having to update test clients. And as a final reminder, because Ravenwood requires test suites like CTS, we're already verifying that "fake" services behave similarly to the "real" services on physical devices. Bug: 325506297 Test: atest CtsContentTestCasesRavenwood Change-Id: I8ed5bd030e03143c15cb9fa945bbdcb0b412611e
-
- Feb 23, 2024
-
-
Antonio Kantek authored
Bug: 324438289 Test: atest --host FrameworksInputMethodSystemServerTests_host:com.android.server.inputmethod.ClientControllerTest Test: atest FrameworksInputMethodSystemServerTests:com.android.server.inputmethod.ClientControllerTest Change-Id: I176064d24917f12af3f4551aa82cf54f59466fc0
-
- Feb 20, 2024
-
-
Jeff Sharkey authored
One of our eventual goals with Ravenwood is to support usage of system services from test code. Robolectric takes the approach of publishing "shadows" which are effectively fakes of the Manager objects visible to app processes, and it unfortunately doesn't offer a mechanism to run "real" services code. In contrast, Ravenwood aims to support API owners progressively offering their system services either via a "fake" approach, or by using various levels of the "real" code that would run on a device. This change wires up the foundational support and uses the simple `SerialManager` example to demonstrate using the same "real" code on both Ravenwood and devices. It also demonstrates the `Internal` pattern being used to customize behavior for tests. To offer as hermetic as a test environment as possible, we start new instances of each requested service for each test. Requiring developers to be explicit about the services they need will help keep overhead low, especially for tests that don't need services. Bug: 325506297 Test: atest RavenwoodServicesTest Change-Id: Ie22436b38f2176f91dfce746b899ebab7752bbb8
-
Makoto Onuki authored
See the Test: line Test: ATEST=atest-dev ravenwood/run-ravenwood-tests.sh Bug: 292141694 Change-Id: I18851d99f175578ffec78873599e842f72568c57
-
- Feb 16, 2024
-
-
Makoto Onuki authored
Enable android.util.Log's native code Test: ./ravenwood/run-ravenwood-tests.sh Bug: 318393625 Change-Id: I0ec607586d71b1cc34b71db67249e110edc304df
-