Home
last modified time | relevance | path

Searched refs:find (Results 1 – 25 of 122) sorted by relevance

12345

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DPackageReferenceTest.java46 sTestApis.packages().find(TEST_APP_PACKAGE_NAME);
58 sTestApis.packages().find(sContext.getPackageName());
78 sTestApis.packages().find(PACKAGE_NAME).packageName().equals(PACKAGE_NAME); in packageName_returnsPackageName()
83 assertThat(sTestApis.packages().find(NON_EXISTING_PACKAGE_NAME).resolve()).isNull(); in resolve_nonExistingPackage_returnsNull()
88 assertThat(sTestApis.packages().find(EXISTING_PACKAGE_NAME).resolve()).isNotNull(); in resolve_existingPackage_returnsPackage()
163 PackageReference packageReference = sTestApis.packages().find(NON_EXISTING_PACKAGE_NAME); in uninstall_packageDoesNotExist_doesNotThrowException()
171 sTestApis.packages().find(sContext.getPackageName()).grantPermission(sUser, in grantPermission_installPermission_throwsException()
178 sTestApis.packages().find(sContext.getPackageName()).grantPermission(sUser, in grantPermission_nonDeclaredPermission_throwsException()
217 sTestApis.packages().find(NON_EXISTING_PACKAGE_NAME).grantPermission(sUser, in grantPermission_packageDoesNotExist_throwsException()
224 sTestApis.packages().find(sContext.getPackageName()).grantPermission(sUser, in grantPermission_permissionDoesNotExist_throwsException()
[all …]
DPackageTest.java51 PackageReference packageReference = sTestApis.packages().find(TEST_APP_PACKAGE_NAME); in installedOnUsers_includesUserWithPackageInstalled()
64 PackageReference packageReference = sTestApis.packages().find(TEST_APP_PACKAGE_NAME); in installedOnUsers_doesNotIncludeUserWithoutPackageInstalled()
78 PackageReference packageReference = sTestApis.packages().find(sContext.getPackageName()); in grantedPermission_includesKnownInstallPermission()
DPackagesTest.java57 mTestApis.packages().find("com.android.providers.telephony");
59 mTestApis.packages().find(TEST_APP_PACKAGE_NAME);
61 mTestApis.packages().find(NON_EXISTING_PACKAGE);
62 private final UserReference mNonExistingUser = mTestApis.users().find(99999);
95 assertThrows(NullPointerException.class, () -> mTestApis.packages().find(null)); in find_nullPackageName_throwsException()
100 assertThat(mTestApis.packages().find(mExistingPackage.packageName())).isNotNull(); in find_existingPackage_returnsPackageReference()
105 assertThat(mTestApis.packages().find(NON_EXISTING_PACKAGE)).isNotNull(); in find_nonExistingPackage_returnsPackageReference()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DPackageTest.java43 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/
DglesLayer.cpp53 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/
DPowerManagerTests.java77 assertTrue(CACHED_PATTERN.matcher(processes).find()); in testCachedProcessReleasesWakeLock()
81 WAKE_LOCK_DISABLED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
82 assertTrue("Wake lock not acquired", WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
90 WAKE_LOCK_ACQUIRED_PATTERN.matcher(wakelocks).find()); in testCachedProcessReleasesWakeLock()
91 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/users/
DUserReferenceTest.java67 assertThat(sTestApis.users().find(USER_ID).id()).isEqualTo(USER_ID); in id_returnsId()
72 assertThat(sTestApis.users().find(USER_ID).userHandle().getIdentifier()).isEqualTo(USER_ID); in userHandle_referencesId()
77 assertThat(sTestApis.users().find(NON_EXISTING_USER_ID).resolve()).isNull(); in resolve_doesNotExist_returnsNull()
102 assertThrows(NeneException.class, () -> sTestApis.users().find(USER_ID).remove()); in remove_userDoesNotExist_throwsException()
117 () -> sTestApis.users().find(NON_EXISTING_USER_ID).start()); in start_userDoesNotExist_throwsException()
147 () -> sTestApis.users().find(NON_EXISTING_USER_ID).stop()); in stop_userDoesNotExist_throwsException()
178 … sTestApis.packages().find(sContext.getPackageName()).install(sDeviceState.secondaryUser()); in switchTo_userIsSwitched()
/cts/common/device-side/bedstead/testapp/src/main/library/java/com/android/bedstead/testapp/
DTestApp.java58 return sTestApis.packages().find(packageName()); in reference()
80 install(sTestApis.users().find(user)); in install()
95 uninstall(sTestApis.users().find(user)); in uninstall()
104 return instance(sTestApis.users().find(user)); in instance()
/cts/suite/audio_quality/test/
DFileUtilTest.cpp33 ASSERT_TRUE(dirPath.find("reports/") == 0); in TEST_F()
34 LOGI("returned %s %d", dirPath.string(), dirPath.find("reports/")); in TEST_F()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DAdbDevicePolicyParser27.java74 return new DeviceOwner(mTestApis, mTestApis.users().find(userId), in parseDeviceOwner()
75 mTestApis.packages().find(componentName.getPackageName()), componentName); in parseDeviceOwner()
117 return new ProfileOwner(mTestApis, mTestApis.users().find(userId), in extractProfileOwner()
118 mTestApis.packages().find(componentName.getPackageName()), componentName); in extractProfileOwner()
DDevicePolicy.java105 mTestApis.packages().find( in setProfileOwner()
121 PackageReference pkg = mTestApis.packages().find( in checkForTerminalProfileOwnerFailures()
190 mTestApis.packages().find( in setDeviceOwner()
269 mTestApis.packages().find( in setDeviceOwnerPreS()
285 PackageReference pkg = mTestApis.packages().find( in checkForTerminalDeviceOwnerFailures()
/cts/common/device-side/bedstead/remotedpc/src/library/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java89 return profileOwner(sTestApis.users().find(profile)); in profileOwner()
134 return any(sTestApis.users().find(user)); in any()
174 return setAsDeviceOwner(sTestApis.users().find(user)); in setAsDeviceOwner()
205 return setAsProfileOwner(sTestApis.users().find(user)); in setAsProfileOwner()
269 sTestApis.packages().find(REMOTE_DPC_COMPONENT_NAME.getPackageName()) in remove()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyManagerTest.java129 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_createsProfile()
151 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_createsManagedProfile()
175 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_setsActiveAdmin()
198 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_setsProfileOwner()
224 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_copiesAccountToProfile()
250 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_removesAccountFromParentByDefault()
277 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_keepsAccountInParentIfRequested()
304 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_removesNonRequiredAppsFromProfile()
330 sTestApis.users().find(profile).remove(); in newlyProvisionedManagedProfile_setsCrossProfilePackages()
395 Package resolvedPackage = sTestApis.packages().find(packageName).resolve(); in isPackageInstalledOnUser()
[all …]
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildUtilBase.java151 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/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp74 return err.find("dlopen failed: library \"") == 0 && in not_accessible()
75 … err.find("is not accessible for the namespace \"classloader-namespace\"") != std::string::npos; in not_accessible()
79 return err.find("dlopen failed: library \"") == 0 && in not_found()
80 err.find("\" not found") != std::string::npos; in not_found()
87 return err.find("dlopen failed: \"" + library + "\" has unexpected e_machine: ") == 0; in wrong_arch()
191 bool is_public = public_library_basenames.find(baselib) != public_library_basenames.end(); in check_lib()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DKeepUninstalledPackagesBuilder.java94 return add(mTestApis.packages().find(pkg)); in add()
114 (s) -> mTestApis.packages().find(s)).collect(Collectors.toSet())); in addPackageNames()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java447 assertThat(sTestApis.packages().find(GMS_CORE_PACKAGE).resolve()).isNotNull(); in requirePackageInstalledAnnotation_anyUser_packageIsInstalled()
453 assertThat(sTestApis.packages().find(GMS_CORE_PACKAGE).resolve().installedOnUsers()) in requirePackageInstalledAnnotation_currentUser_packageIsInstalled()
460 assertThat(sTestApis.packages().find(GMS_CORE_PACKAGE).resolve()).isNull(); in requirePackageNotInstalledAnnotation_anyUser_packageIsNotInstalled()
467 Package resolvedPackage = sTestApis.packages().find(GMS_CORE_PACKAGE).resolve(); in requirePackageNotInstalledAnnotation_currentUser_packageIsNotInstalled()
479 assertThat(sTestApis.packages().find(GMS_CORE_PACKAGE).resolve()).isNull(); in ensurePackageNotInstalledAnnotation_anyUser_packageIsNotInstalled()
486 Package resolvedPackage = sTestApis.packages().find(GMS_CORE_PACKAGE).resolve(); in ensurePackageNotInstalledAnnotation_currentUser_packageIsNotInstalled()
497 assertThat(sTestApis.packages().find(GMS_CORE_PACKAGE).resolve()).isNull(); in requireAospBuildAnnotation_isRunningOnAospBuild()
503 assertThat(sTestApis.packages().find(GMS_CORE_PACKAGE).resolve()).isNotNull(); in requireGmsBuildAnnotation_isRunningOnGmsbuild()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java74 return find(myUserHandle()); in instrumented()
79 return find(0); in system()
83 public UserReference find(int id) { in find() method in Users
88 public UserReference find(UserHandle userHandle) { in find() method in Users
308 mutableUser.mParent = find(SYSTEM_USER_ID); in fillCache()
/cts/suite/audio_quality/lib/src/task/
DTaskGeneric.cpp127 auto it = mAllowedStringAttributes.find(key); in addStringAttribute()
137 auto it = mStringAttributes.find(key); in findStringAttribute()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_status.cpp168 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/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp225 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/
Dredefine.cpp71 if (redefinitions_.find(name) == redefinitions_.end()) { in PushRedefinition()
79 auto stack = redefinitions_.find(name); in RetrieveRedefinition()
90 auto stack = redefinitions_.find(name); in PopRedefinition()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsRadioPowerStateTest.java84 assertTrue(Pattern.compile(PATTERN_MOBILE).matcher(dump).find()); in testReportMobileRadioPowerState()
108 assertTrue(Pattern.compile(PATTERN_WIFI).matcher(dump).find()); in testReportWifiRadioPowerState()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellChecker.kt78 return configuration.suggestionRulesList.find { it.match == textInfo.text } in matchSentenceSuggestion()
97 .find { it.match == textInfo.text } in onGetSuggestions()
/cts/tools/incremental-cts/
Dtarget_file_handler.py34 idx = file_name[1:].find('/')+1

12345