/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
D | PackageTest.java | 43 assertTrue("Monkey not found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testSinglePackage() 44 assertFalse("Chimp found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testSinglePackage() 57 assertFalse("Monkey found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testSinglePackage() 58 assertTrue("Chimp not found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testSinglePackage() 73 assertTrue("Monkey not found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testMultiplePackages() 74 assertTrue("Chimp not found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testMultiplePackages()
|
/cts/hostsidetests/gputools/layers/jni/ |
D | glesLayer.cpp | 53 if (funcMap.find("glCompileShader") == funcMap.end()) in glesLayer_glCompileShaderA() 66 if (funcMap.find("glCompileShader") == funcMap.end()) in glesLayer_glCompileShaderB() 79 if (funcMap.find("glDrawArraysInstanced") == funcMap.end()) in glesLayer_glDrawArraysInstanced() 92 if (funcMap.find("glBindBuffer") == funcMap.end()) in glesLayer_glBindBuffer() 105 if (funcMap.find("glGetString") == funcMap.end()) in glesLayer_glGetString() 118 if (funcMap.find("eglGetDisplay") == funcMap.end()) in glesLayer_eglGetDisplay() 132 if (funcMap.find("eglInitialize") == funcMap.end()) in glesLayer_eglInitialize() 148 if (funcMap.find("eglChooseConfig") == funcMap.end()) in glesLayer_eglChooseConfig() 164 if (funcMap.find("eglSwapBuffersWithDamageKHR") == funcMap.end()) in glesLayer_eglSwapBuffersWithDamageKHR() 180 if (funcMap.find("eglGetProcAddress") == funcMap.end()) in glesLayer_eglGetProcAddress()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | PowerManagerTests.java | 78 assertTrue(CACHED_PATTERN.matcher(processes).find()); in testCachedProcessReleasesWakeLock() 82 WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock() 83 assertTrue("Wake lock not acquired", WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock() 91 WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock() 92 assertTrue("Wake lock not disabled", WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
D | PackageTest.java | 69 TestApis.packages().find(sContext.getPackageName()); 103 assertThat(TestApis.packages().find(PACKAGE_NAME).packageName()).isEqualTo(PACKAGE_NAME); in packageName_returnsPackageName() 108 assertThat(TestApis.packages().find(NON_EXISTING_PACKAGE_NAME).exists()).isFalse(); in exists_nonExistingPackage_returnsFalse() 113 assertThat(TestApis.packages().find(EXISTING_PACKAGE_NAME).exists()).isTrue(); in exists_existingPackage_returnsTrue() 190 Package pkg = TestApis.packages().find(NON_EXISTING_PACKAGE_NAME); in uninstall_packageDoesNotExist_doesNotThrowException() 198 TestApis.packages().find(sContext.getPackageName()).grantPermission(sUser, in grantPermission_installPermission_throwsException() 205 TestApis.packages().find(sContext.getPackageName()).grantPermission(sUser, in grantPermission_nonDeclaredPermission_throwsException() 237 TestApis.packages().find(NON_EXISTING_PACKAGE_NAME).grantPermission(sUser, in grantPermission_packageDoesNotExist_throwsException() 244 TestApis.packages().find(sContext.getPackageName()).grantPermission(sUser, in grantPermission_permissionDoesNotExist_throwsException() 259 Package pkg = TestApis.packages().find(sContext.getPackageName()); in denyPermission_ownPackage_permissionIsNotGranted_doesNotThrowException() [all …]
|
D | PackagesTest.java | 78 TestApis.packages().find("com.android.providers.telephony"); 80 TestApis.packages().find(TEST_APP_PACKAGE_NAME); 82 TestApis.packages().find(NON_EXISTING_PACKAGE); 83 private final UserReference mNonExistingUser = TestApis.users().find(99999); 106 assertThrows(NullPointerException.class, () -> TestApis.packages().find(null)); in find_nullPackageName_throwsException() 111 assertThat(TestApis.packages().find(mExistingPackage.packageName())).isNotNull(); in find_existingPackage_returnsPackageReference() 116 assertThat(TestApis.packages().find(NON_EXISTING_PACKAGE)).isNotNull(); in find_nonExistingPackage_returnsPackageReference() 212 Package pkg = TestApis.packages().find(TEST_APP_PACKAGE_NAME); in install_inWorkProfile_isInstalled() 225 Package pkg = TestApis.packages().find(TEST_APP_PACKAGE_NAME); in install_differentUser_isInstalled()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DeviceIdentifiersTest.java | 61 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getDeviceId_smsAppReturnsSameValue() 75 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getImei_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 89 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getMeid_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 103 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getSubscriberId_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 117 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getSimSerialNumber_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 131 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getNai_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
|
D | ManagedProvisioningTest.java | 44 assertThat(TestApis.packages().find(MANAGED_PROVISIONING_PKG).hasSystemFlag()).isTrue(); in managedProvisioning_isInstalledInSystemImage() 50 assertThat(TestApis.packages().find(MANAGED_PROVISIONING_PKG) in managedProvisioning_hasLaunchDeviceManagerSetupPermission()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | AdbDevicePolicyParser27.java | 71 return new DeviceOwner(TestApis.users().find(userId), in parseDeviceOwner() 72 TestApis.packages().find(componentName.getPackageName()), componentName); in parseDeviceOwner() 114 return new ProfileOwner(TestApis.users().find(userId), in extractProfileOwner() 115 TestApis.packages().find(componentName.getPackageName()), componentName); in extractProfileOwner()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | Users.java | 107 ui -> find(ui.getId()) in all() 121 .map(ui -> find(ui.getId())).collect(Collectors.toSet()); in profileGroup() 137 .executeAndParseOutput(i -> find(Integer.parseInt(i.trim()))); in initial() 174 return find(currentUserId); in current() 179 return find((int) ShellCommand.builder("am get-current-user") in current() 188 return find(myUserHandle()); in instrumented() 193 return find(0); in system() 208 return find(mainUser); in main() 212 public UserReference find(int id) { in find() method in Users 220 public UserReference find(UserHandle userHandle) { in find() method in Users [all …]
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildUtilBase.java | 151 if (m.find()) { in parseTestMethod() 157 if (titleM.find()) { in parseTestMethod() 169 if (constraintM.find()) { in parseTestMethod() 225 while (m.find()) { in parseTestClassName() 233 while (loadMatcher.find()) { in parseTestClassName() 242 while (loadAndRunMatcher.find()) { in parseTestClassName()
|
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/ |
D | UserReferenceTest.java | 89 assertThat(TestApis.users().find(USER_ID).id()).isEqualTo(USER_ID); in id_returnsId() 94 assertThat(TestApis.users().find(USER_ID).userHandle().getIdentifier()).isEqualTo(USER_ID); in userHandle_referencesId() 99 assertThat(TestApis.users().find(NON_EXISTING_USER_ID).exists()).isFalse(); in exists_doesNotExist_returnsFalse() 129 () -> TestApis.users().find(NON_EXISTING_USER_ID).start()); in start_userDoesNotExist_throwsException() 204 TestApis.users().find(NON_EXISTING_USER_ID).stop(); in stop_userDoesNotExist_doesNothing() 264 UserReference user = TestApis.users().find(NON_EXISTING_USER_ID); in serialNo_userDoesNotExist_throwsException() 280 UserReference user = TestApis.users().find(NON_EXISTING_USER_ID); in name_userDoesNotExist_throwsException() 296 UserReference user = TestApis.users().find(NON_EXISTING_USER_ID); in type_userDoesNotExist_throwsException() 319 UserReference user = TestApis.users().find(NON_EXISTING_USER_ID); in isPrimary_userDoesNotExist_throwsException() 342 UserReference user = TestApis.users().find(NON_EXISTING_USER_ID); in isRunning_userDoesNotExist_returnsFalse() [all …]
|
/cts/tests/tests/jni/libjnitest/ |
D | android_jni_cts_LinkerNamespacesTest.cpp | 91 return err.find("dlopen failed: library \"") == 0 && in not_accessible() 92 err.find("is not accessible for the namespace \"") != std::string::npos; in not_accessible() 96 return err.find("dlopen failed: library \"") == 0 && in not_found() 97 err.find("\" not found") != std::string::npos; in not_found() 104 return err.find("dlopen failed: \"" + library + "\" has unexpected e_machine: ") == 0; in wrong_arch() 229 bool is_public = public_library_basenames.find(baselib) != public_library_basenames.end(); in check_lib() 262 (std::find(kOtherLoadableLibrariesInSearchPaths.begin(), in check_lib() 311 if (path.find("hwasan") != std::string::npos) { in check_path()
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestApp.java | 65 return TestApis.packages().find(packageName()); in pkg() 96 install(TestApis.users().find(user)); in install() 141 uninstall(TestApis.users().find(user)); in uninstall() 150 return instance(TestApis.users().find(user)); in instance()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | KeepUninstalledPackagesBuilder.java | 93 return add(TestApis.packages().find(pkg)); in add() 113 (s) -> TestApis.packages().find(s)).collect(Collectors.toSet())); in addPackageNames()
|
D | Packages.java | 213 .map(p -> find(p.packageName())) in installedForUser() 453 return TestApis.packages().find(installedPackageName); in install() 531 return TestApis.packages().find(installedPackageName); in waitForPackageAddedBroadcast() 617 public Package find(String packageName) { in find() method in Packages 636 find(componentName.getPackageName()), componentName.getClassName()); in activity() 651 find(componentName.getPackageName()), componentName.getClassName()); in component() 657 return find(TestApis.context().instrumentedContext().getPackageName()); in instrumented() 694 return TestApis.packages().find(defaultDialerPackage); in oemDefaultDialerApp() 704 return TestApis.packages().find(defaultSmsPackage); in oemDefaultSmsApp() 732 return find(TestApis.ui().device().getLauncherPackageName()); in launcher()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | TestAppsComponent.kt | 139 val pkg = packages().find(testApp.packageName()) in ensureTestAppInstalled() 141 if (pkg != null && packages().find(testApp.packageName()).installedOnUser(user)) { in ensureTestAppInstalled() 164 val pkg = packages().find(testApp.packageName()) in ensureTestAppNotInstalled() 165 if (pkg == null || !packages().find(testApp.packageName()).installedOnUser(user)) { in ensureTestAppNotInstalled()
|
/cts/tests/media/jni/ |
D | NativeMediaCommon.cpp | 172 auto end = fmtMsg.find(limiter); in deSerializeMediaFormat() 178 end = fmtMsg.find(limiter, start); in deSerializeMediaFormat() 187 end = fmtMsg.find(limiter, start); in deSerializeMediaFormat() 197 end = fmtMsg.find(limiter, start); in deSerializeMediaFormat()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/accessibility/ |
D | AccessibilityService.kt | 29 fun pkg(): Package = TestApis.packages().find(serviceInfo.resolveInfo.serviceInfo.packageName)
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/inputmethods/ |
D | InputMethod.java | 35 return TestApis.packages().find(mInputMethodInfo.getPackageName()); in pkg()
|
/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_status.cpp | 168 EXPECT_EQ(kErrorExceptions.find(exception), kErrorExceptions.end()) in TEST() 180 EXPECT_EQ(kErrorExceptions.find(exception), kErrorExceptions.end()) in TEST() 192 EXPECT_EQ(kErrorStatuses.find(statusT), kErrorStatuses.end()) << statusT; in TEST()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-23704/src/android/security/cts/CVE_2024_23704/ |
D | DeviceTest.java | 106 return resumedMatcher.find() && visibleMatcher.find(); in checkActivityLaunched()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21091/src/android/security/cts/CVE_2023_21091/ |
D | DeviceTest.java | 99 if (activityPatternByPkg.matcher(activityDumpByPkg).find()) { in testPocCVE_2023_21091() 124 .find()) { in testPocCVE_2023_21091()
|
/cts/tests/tests/security/src/android/security/cts/BUG_293602970/ |
D | BUG_293602970.java | 112 return resumedMatcher.find() && visibleMatcher.find(); in checkActivityLaunched()
|
/cts/common/device-side/nativetesthelper/jni/ |
D | gtest_wrapper.cpp | 225 auto found = gNativeTestNames.find(testNameChars); in Java_com_android_gtestrunner_GtestRunner_nAddTest() 243 if (entry.second.nativeName.find("DISABLED_") == 0 || in Java_com_android_gtestrunner_GtestRunner_nRun() 244 entry.second.nativeName.find("/DISABLED_") != std::string::npos || in Java_com_android_gtestrunner_GtestRunner_nRun() 245 entry.second.nativeName.find(".DISABLED_") != std::string::npos) { in Java_com_android_gtestrunner_GtestRunner_nRun()
|
/cts/hostsidetests/jvmti/base/jni/ |
D | redefine.cpp | 71 if (redefinitions_.find(name) == redefinitions_.end()) { in PushRedefinition() 79 auto stack = redefinitions_.find(name); in RetrieveRedefinition() 90 auto stack = redefinitions_.find(name); in PopRedefinition()
|