/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderFallthroughTest.kt | 36 "getString" to { res -> in <lambda>() 39 "openAsset" to { res -> in <lambda>() 42 "openAssetFd" to { res -> in <lambda>() 49 assertEquals(mapToString(mapOf("getString" to "NotFoundException", in <lambda>() 50 "openAsset" to "FileNotFoundException", in <lambda>() 51 "openAssetFd" to "FileNotFoundException")), actual(resources)) in <lambda>() 54 assertEquals(mapToString(mapOf("getString" to "NotFoundException", in <lambda>() 55 "openAsset" to "One", in <lambda>() 56 "openAssetFd" to "One")), actual(resources)) in <lambda>() 59 assertEquals(mapToString(mapOf("getString" to "Two", in <lambda>() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestAppPrebuilt/ |
D | README.md | 3 ApkVerityTestApp is a test helper app to be installed with fs-verity signature 4 file (.fsv\_sig). In order for this CTS test to run on a release build across 5 vendors, the signature needs to be verified against a release certificate loaded 6 to kernel. 8 How to modify the test helper app 10 Modifying the test helper app will also require to sign the apk with a local debug 11 key. You will also need to point the test to use your local build. 13 How to load debug key 23 is to copy the .der file to /system/etc/security/fsverity. Upon reboot, the 24 certificate will be loaded to kernel as usual. [all …]
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionTest23.kt | 64 android.Manifest.permission.READ_CALENDAR to true, in testInteractiveGrant() 65 android.Manifest.permission.WRITE_CALENDAR to true in testInteractiveGrant() 82 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to true) { in testRuntimeGroupGrantSpecificity() 97 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to false) { in testCancelledPermissionRequest() 109 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to true) { in testRequestGrantedPermission() 115 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to true) {} in testRequestGrantedPermission() 125 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to false) { in testDenialWithPrejudice() 131 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to false) { in testDenialWithPrejudice() 137 requestAppPermissionsAndAssertResult(android.Manifest.permission.WRITE_CONTACTS to false) {} in testDenialWithPrejudice() 165 requestAppPermissionsAndAssertResult(android.Manifest.permission.CAMERA to false) { in testGrantPreviouslyRevokedWithPrejudiceShowsPrompt() [all …]
|
D | PermissionTest30.kt | 37 requestAppPermissionsAndAssertResult(ACCESS_FINE_LOCATION to false, in testCantRequestFgAndBgAtOnce() 38 ACCESS_BACKGROUND_LOCATION to false) { in testCantRequestFgAndBgAtOnce() 49 requestAppPermissionsAndAssertResult(ACCESS_FINE_LOCATION to true) { in testRequestBothInSequence() 53 requestAppPermissionsAndAssertResult(ACCESS_BACKGROUND_LOCATION to true) { in testRequestBothInSequence() 66 requestAppPermissionsAndAssertResult(ACCESS_FINE_LOCATION to false, in testRequestFgLocationAndNoAccuracyOptions() 67 ACCESS_COARSE_LOCATION to false) { in testRequestFgLocationAndNoAccuracyOptions()
|
D | BaseUsePermissionTest.kt | 110 to "@android:string/permgrouplab_contacts", in <lambda>() 112 to "@android:string/permgrouplab_contacts", in <lambda>() 115 to "@android:string/permgrouplab_calendar", in <lambda>() 117 to "@android:string/permgrouplab_calendar", in <lambda>() 119 android.Manifest.permission.SEND_SMS to "@android:string/permgrouplab_sms", in <lambda>() 120 android.Manifest.permission.RECEIVE_SMS to "@android:string/permgrouplab_sms", in <lambda>() 121 android.Manifest.permission.READ_SMS to "@android:string/permgrouplab_sms", in <lambda>() 122 android.Manifest.permission.RECEIVE_WAP_PUSH to "@android:string/permgrouplab_sms", in <lambda>() 123 android.Manifest.permission.RECEIVE_MMS to "@android:string/permgrouplab_sms", in <lambda>() 124 "android.permission.READ_CELL_BROADCASTS" to "@android:string/permgrouplab_sms", in <lambda>() [all …]
|
/cts/tests/media/ |
D | README.md | 2 …edia extractor, media muxer, media codec SDK and NDK Api. These tests aims to test all codecs adve… 4 The aim of these tests is not solely to verify the CDD requirements but also to test components, th… 8 The test suite looks to cover sdk/ndk api in normal and error scenarios. Error scenarios are separa… 22 To select codecs by name, *codec-prefix* can be passed to media codec tests to select one or more c… 24 Example: To limit the tests to run for codecs whose names start with c2.android. 30 Example: To limit the tests to run for c2.android.hevc.decoder 37 To select codecs by type, *mime-sel* can be passed to media codec tests to select one or more codec… 39 Example: To limit media codec decoder tests to mp3 and vorbis decoder 46 To select extractors by type, *ext-sel* can be passed to extractor tests to select one or more extr… 48 Example: To limit extractor tests to mp4 and webm types [all …]
|
/cts/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/ |
D | SharedVerifications.kt | 66 DOMAIN_1 to DomainVerificationUserState.DOMAIN_STATE_NONE, in verifyDomains() 67 DOMAIN_2 to DomainVerificationUserState.DOMAIN_STATE_NONE, in verifyDomains() 68 DOMAIN_3 to DomainVerificationUserState.DOMAIN_STATE_NONE, in verifyDomains() 84 DOMAIN_1 to DomainVerificationUserState.DOMAIN_STATE_VERIFIED, in verifyDomains() 85 DOMAIN_2 to DomainVerificationUserState.DOMAIN_STATE_NONE, in verifyDomains() 86 DOMAIN_3 to DomainVerificationUserState.DOMAIN_STATE_NONE, in verifyDomains() 101 DOMAIN_1 to DomainVerificationUserState.DOMAIN_STATE_VERIFIED, in verifyDomains() 102 DOMAIN_2 to DomainVerificationUserState.DOMAIN_STATE_SELECTED, in verifyDomains() 103 DOMAIN_3 to DomainVerificationUserState.DOMAIN_STATE_NONE, in verifyDomains() 116 DOMAIN_1 to DomainVerificationUserState.DOMAIN_STATE_VERIFIED, in verifyDomains() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | README.md | 1 How to add a test for a new HID device 4 1. Connect the device of interest to Android 6 3. Go to /sys/kernel/debug/hid/0005:0B05:4500.000F 8 Just print the /sys/kernel/debug/hid directory to see what it is for you. 9 This identifier will also change each time you reconnect the same physical device to Android. 15 To observe the MotionEvents that Android receives in response to the hid reports, write a small 17 There, print all of the event data that has changed. For MotionEvents, ensure to look at the
|
/cts/ |
D | Android.bp | 6 // 'apply every license found to every target'. While this makes sure we respect 9 // e.g. GPL in an MIT project might only apply to the contrib/ directory. 12 // taking care not to lose any license_kind information, and overriding the 16 // to attach the license to, and including a comment whether the files may be 30 // large-scale-change unable to identify any license_text files 37 // Set of error prone rules to ensure code quality 66 // Set of error prone rules to ensure code quality of tests 67 // Goal is to eventually merge with cts_error_prone_rules 85 // Used with an android_test / android_test_helper_app, this is equivalent to 98 // Used with different module types, this is equivalent to:
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | DisplayUtil.java | 63 public static boolean isModeSwitchSeamless(Display.Mode from, Display.Mode to) { in isModeSwitchSeamless() argument 64 if (from.getModeId() == to.getModeId()) { in isModeSwitchSeamless() 68 if (from.getPhysicalHeight() != to.getPhysicalHeight() in isModeSwitchSeamless() 69 || from.getPhysicalWidth() != to.getPhysicalWidth()) { in isModeSwitchSeamless() 74 if (Math.abs(alternativeRefreshRate - to.getRefreshRate()) < REFRESH_RATE_TOLERANCE) { in isModeSwitchSeamless()
|
/cts/hostsidetests/appsecurity/res/pkgsigverify/ |
D | README.md | 17 - OID-params: PKI object identifiers indicating how to use the provided key 18 to generate the signature. See, e.g. rfc3279 and rfc4055. 20 - extra_info: additional notes to distinguish packages. Currently this denotes 21 which test certificates were used to generate a proof-of-rotation object, 23 capabilities of those certificates according to APK Signature Scheme v3. 27 android source tree. Please refer to the usage instructions there for how to 34 README in tools/apksig/) to create invalid or unsupported outcomes (e.g. ag/11575267).
|
/cts/tests/signature/api-check/hidden-api-blocklist-28-api/ |
D | Android.bp | 9 // Unless required by applicable law or agreed to in writing, software 31 // Ideally the following should be uncommented but unfortunately due to 32 // limitations in the build that causes build failures due to duplicate copy 33 // rules being generated. In the meantime it is necessary to build 34 // CtsHiddenApiBlocklistCurrentApiTestCases before running this test to 35 // pick up any changes to CtsHiddenApiBlocklistApiDynamicConfig.dynamic.
|
/cts/tests/signature/api-check/hidden-api-blocklist-27-api/ |
D | Android.bp | 9 // Unless required by applicable law or agreed to in writing, software 31 // Ideally the following should be uncommented but unfortunately due to 32 // limitations in the build that causes build failures due to duplicate copy 33 // rules being generated. In the meantime it is necessary to build 34 // CtsHiddenApiBlocklistCurrentApiTestCases before running this test to 35 // pick up any changes to CtsHiddenApiBlocklistApiDynamicConfig.dynamic.
|
/cts/tests/signature/api-check/hidden-api-killswitch-sdklist/ |
D | Android.bp | 9 // Unless required by applicable law or agreed to in writing, software 28 // Ideally the following should be uncommented but unfortunately due to 29 // limitations in the build that causes build failures due to duplicate copy 30 // rules being generated. In the meantime it is necessary to build 31 // CtsHiddenApiBlocklistCurrentApiTestCases before running this test to 32 // pick up any changes to CtsHiddenApiBlocklistApiDynamicConfig.dynamic.
|
/cts/tests/signature/api-check/hidden-api-blocklist-test-api/ |
D | Android.bp | 9 // Unless required by applicable law or agreed to in writing, software 29 // Ideally the following should be uncommented but unfortunately due to 30 // limitations in the build that causes build failures due to duplicate copy 31 // rules being generated. In the meantime it is necessary to build 32 // CtsHiddenApiBlocklistCurrentApiTestCases before running this test to 33 // pick up any changes to CtsHiddenApiBlocklistApiDynamicConfig.dynamic.
|
/cts/hostsidetests/sustainedperf/dhrystone/ |
D | LICENSE.TXT | 18 Permission is hereby granted, free of charge, to any person obtaining a copy of 19 this software and associated documentation files (the "Software"), to deal with 20 the Software without restriction, including without limitation the rights to 22 of the Software, and to permit persons to whom the Software is furnished to do 23 so, subject to the following conditions: 33 Urbana-Champaign, nor the names of its contributors may be used to 51 to that code. 54 applies to all code in the LLVM Distribution, and nothing in any of the 55 other licenses gives permission to use the names of the LLVM Team or the 56 University of Illinois to endorse or promote products derived from this
|
D | Rationale | 15 satisfies a need for an easy-to-use integer benchmark; it gives a first 19 With the increasing use of the benchmark, it seems necessary to 20 reconsider the benchmark and to check whether it can still fulfill this 43 o As far as it is possible without changes to the Dhrystone statistics, 47 removal" or "dead variable elimination"). This has lead to the 58 know some suggestions for improvement, I didn't want to change the 61 outweight the benefits. If I were to write a new benchmark program, I 65 always be encouraged to use more than just one benchmark. 71 Readers who want to use the benchmark for their own measurements can 87 outside the measaurement loop. As a concession to older compilers, [all …]
|
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/ |
D | HostTestHelper.java | 122 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyStagedRollback_Phase2_RollBack() 130 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyStagedRollback_Phase2_RollBack() 151 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyStagedRollback_Phase3_Confirm() 185 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyMultipleStagedRollback_Phase2_RollBack() 193 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyMultipleStagedRollback_Phase2_RollBack() 204 Rollback.from(TestApp.B2).to(TestApp.B1)); in testApkOnlyMultipleStagedRollback_Phase2_RollBack() 212 Rollback.from(TestApp.B2).to(TestApp.B1)); in testApkOnlyMultipleStagedRollback_Phase2_RollBack() 230 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyMultipleStagedRollback_Phase3_Confirm() 240 Rollback.from(TestApp.B2).to(TestApp.B1)); in testApkOnlyMultipleStagedRollback_Phase3_Confirm() 273 Rollback.from(TestApp.A2).to(TestApp.A1)); in testApkOnlyMultipleStagedPartialRollback_Phase2_RollBack() [all …]
|
/cts/tests/tests/hardware/res/raw/ |
D | sony_dualshock3_usb_lighttests.json | 1 // Refer to kernel sony_set_leds() in drivers/hid/hid-sony.c 14 // Dualshock 3 USB need to send a HID report to start working.
|
/cts/tools/incremental-cts/ |
D | README.md | 2 incremental-cts is an EXPERIMENTAL project. It's for analysis purpose only and is NOT meant to be u… 9 python3 incremental_deqp.py -s device_serial_number -t /path/to/test_resources 16 copy it to test resources directory. `extra_deqp_dependency.txt` includes the 19 python3 incremental_deqp.py -s device_serial_number -t /path/to/test_resources 20 -b /path/to/target_file
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | layered_filter_fast_f32.rscript | 11 // 2. The depth value represents inverse depth. Larger depths are closer to the 40 // This image buffer is used to store input image initially. 42 // back-most to the focal depth. This image buffer is padded. 45 // This image buffer is used to save an integral image of g_sharp_image 49 // whether or not to use integral image in this iteration. 52 // This image buffer is used to store output image, both for intermediate 54 // In the first pass from back-most to focal depth, g_fuzzy_image holds the 55 // layer filtering result temporarily and then the result is used to update the 57 // In the second pass from front-most to focal depth, g_fuzzy_image accumulates 59 // blended with the input image (which has been updated in the first pass) to [all …]
|
D | layered_filter_fast_d1new.rscript | 11 // 2. The depth value represents inverse depth. Larger depths are closer to the 43 // This image buffer is used to store input image initially. 45 // back-most to the focal depth. This image buffer is padded. 47 // This image buffer is used to save an integral image of g_sharp_image 50 // whether or not to use integral image in this iteration. 53 // This image buffer is used to store output image, both for intermediate 55 // In the first pass from back-most to focal depth, g_fuzzy_image holds the 56 // layer filtering result temporarily and then the result is used to update the 58 // In the second pass from front-most to focal depth, g_fuzzy_image accumulates 60 // blended with the input image (which has been updated in the first pass) to [all …]
|
/cts/hostsidetests/theme/ |
D | README | 9 * Unless required by applicable law or agreed to in writing, software 21 theme tests, a device must be able to generate images that are identical to the 25 modifications to the reference images will invalidate the test results. 38 export ANDROID_SDK_ROOT = /path/to/sdk 44 3. Use the SDK's AVD Manager tool to create a single virtual device using the 52 5. Use the reference image script to generate the reference images. The script 66 2. Use the reference image script to generate the reference images: 70 There is an option to build locally an Android system image and use an emulator that is stored in 72 require a SDK and can be used to generate images with locally modified source code: for example 79 2. Use the reference image script to generate the reference images. The script [all …]
|
/cts/tools/cts-test-metrics/ |
D | README | 1 The parse_test_metrics.py script can be used to parse test metrics json files. Run the following 2 command to see a demo: 12 The MetricsParser class defines functions to parse a json file. The _Parse function takes a filename 13 as input, reads the json file and adds the json object to json_data. The _PrintJson function
|
/cts/tests/appsearch/certs/ |
D | README | 2 # These files shouldn't need to change unless you want to generate new certificates to sign the APKs
|