Home
last modified time | relevance | path

Searched refs:methodName (Results 1 – 25 of 82) sorted by relevance

1234

/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDeviceOwnerHelper.java81 String methodName = intent.getStringExtra(EXTRA_METHOD); in runManagerMethod() local
85 + ", methodName=" + methodName + ", numberArgs=" + numberArgs); in runManagerMethod()
101 Method method = findMethod(managerClass, methodName, parameterTypes); in runManagerMethod()
104 "Could not find method " + methodName + " using reflection")); in runManagerMethod()
161 private static Method findMethod(Class<?> clazz, String methodName, Class<?>[] parameterTypes) in findMethod() argument
167 switch (methodName) { in findMethod()
169 return clazz.getDeclaredMethod(methodName, in findMethod()
173 return clazz.getDeclaredMethod(methodName, in findMethod()
177 if ((methodName.equals("setStartUserSessionMessage") in findMethod()
178 || methodName.equals("setEndUserSessionMessage"))) { in findMethod()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBusinessLogicTestCase.java68 protected void executeBusinessLogicForTest(String methodName) { in executeBusinessLogicForTest() argument
70 + "remote configuration.", methodName), mCanReadBusinessLogic); in executeBusinessLogicForTest()
71 if (methodName.contains(PARAM_START)) { in executeBusinessLogicForTest()
73 methodName = methodName.substring(0, methodName.lastIndexOf(PARAM_START)); in executeBusinessLogicForTest()
75 String testName = String.format("%s#%s", this.getClass().getName(), methodName); in executeBusinessLogicForTest()
DBusinessLogicDeviceExecutor.java77 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument
79 List<Method> nameMatches = getMethodsWithName(cls, methodName); in getResolvedMethod()
115 "BusinessLogic: Failed to invoke action method %s with args: %s", methodName, in getResolvedMethod()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutHelper.java114 public static void sendBackMethodName(Class<?> clazz, String methodName, in sendBackMethodName() argument
118 m.setMethodName(methodName); in sendBackMethodName()
128 public static void sendBackMethodName(Class<?> clazz, String methodName) { in sendBackMethodName() argument
129 sendBackMethodName(clazz, methodName, (Consumer) null); in sendBackMethodName()
135 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName() argument
136 sendBackMethodName(clazz, methodName, (m) -> m.setComponentName(cn)); in sendBackMethodName()
/cts/tools/cts-api-coverage/src/com/android/cts/ctsprofiles/
DUtils.java63 public static String getMethodSignature(String methodName, List<String> paramTypes) { in getMethodSignature() argument
64 return String.format("%s(%s)", methodName, String.join(", ", paramTypes)); in getMethodSignature()
72 String packageName, String className, String methodName, List<String> paramTypes) { in getMethodSignatureWithClass() argument
74 String methodSignature = getMethodSignature(methodName, paramTypes); in getMethodSignatureWithClass()
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsHelper.java134 public static void sendBackMethodName(Class<?> clazz, String methodName, in sendBackMethodName() argument
138 m.setMethodName(methodName); in sendBackMethodName()
148 public static void sendBackMethodName(Class<?> clazz, String methodName) { in sendBackMethodName() argument
149 sendBackMethodName(clazz, methodName, (Consumer) null); in sendBackMethodName()
155 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName() argument
156 sendBackMethodName(clazz, methodName, (m) -> m.setComponentName(cn)); in sendBackMethodName()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPasswordMinimumRestrictionsTest.java186 private void invokeSetMethod(String methodName, DevicePolicyManager dpm, in invokeSetMethod() argument
188 final Method setMethod = DevicePolicyManager.class.getMethod(setMethodName(methodName), in invokeSetMethod()
196 private int invokeGetMethod(String methodName, DevicePolicyManager dpm, in invokeGetMethod() argument
199 DevicePolicyManager.class.getMethod(getMethodName(methodName), ComponentName.class); in invokeGetMethod()
203 private String setMethodName(String methodName) { in setMethodName() argument
204 return "set" + methodName; in setMethodName()
207 private String getMethodName(String methodName) { in getMethodName() argument
208 return "get" + methodName; in getMethodName()
/cts/tests/tests/libcoreapievolution/src/android/apievolution/cts/
DApiEvolutionTest.java148 Class<? extends Buffer> bufferClass, String methodName, Class[] parameterTypes) in assertSyntheticBufferMethodOverloadExists() argument
150 assertSyntheticMethodOverloadExists(bufferClass, methodName, parameterTypes, in assertSyntheticBufferMethodOverloadExists()
157 Class<?> clazz, String methodName, Class[] parameterTypes, in assertSyntheticMethodOverloadExists() argument
164 String fullMethodName = clazz + "." + methodName; in assertSyntheticMethodOverloadExists()
167 Method declaredMethod = clazz.getDeclaredMethod(methodName, parameterTypes); in assertSyntheticMethodOverloadExists()
174 if (methodMatches(methodName, parameterTypes, method)) { in assertSyntheticMethodOverloadExists()
229 private static boolean methodMatches(String methodName, Class[] parameterTypes, Method method) { in methodMatches() argument
230 return method.getName().equals(methodName) in methodMatches()
/cts/tests/tests/wifi/mockWifi/src/android/wifi/mockwifi/nl80211/
DIWifiScannerImp.java60 String methodName) throws NoSuchMethodException { in isMethodOverridden() argument
61 if (methodName.equals("startPnoScan")) { in isMethodOverridden()
63 methodName, PnoSettings.class).getDeclaringClass().equals( in isMethodOverridden()
66 if (methodName.equals("subscribePnoScanEvents")) { in isMethodOverridden()
68 methodName, IPnoScanEvent.class).getDeclaringClass().equals( in isMethodOverridden()
72 methodName).getDeclaringClass().equals(WifiScannerInterfaceMock.class); in isMethodOverridden()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DSingleTestNgTestExecutor.java40 public static Result execute(Class<?> klass, String methodName) { in execute() argument
45 if (methodName == null) { in execute()
59 TestNG testng = createTestNG(klass.getName(), methodName, listener); in execute()
65 Log.w("TestNgExec", "execute class " + klass.getName() + ", method " + methodName + in execute()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildCTSMainsSources.java130 private File getFileFromPackage(String pname, String methodName) throws IOException { in getFileFromPackage() argument
132 String path = getFileName(pname, methodName, ".java"); in getFileFromPackage()
142 private String getFileName(String pname, String methodName, String extension) { in getFileName() argument
144 return new File(path, "Main_" + methodName + extension).getPath(); in getFileName()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java87 private TestResult(String packageName, String componentName, String methodName, in TestResult() argument
92 mMethodName = methodName; in TestResult()
137 private String methodName; field in TestResult.Builder
154 methodName = _methodName; in setMethodName()
174 return new TestResult(packageName, componentName, methodName, in build()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DParentProfileTest.java133 String methodName = method.getName(); in testParentProfileApiDisabled() local
134 if (SUPPORTED_APIS.contains(methodName)) { in testParentProfileApiDisabled()
153 methodName + " throws exception other than SecurityException.", e); in testParentProfileApiDisabled()
158 failedMethods.add(methodName); in testParentProfileApiDisabled()
159 Log.e(LOG_TAG, methodName + " failed to throw SecurityException"); in testParentProfileApiDisabled()
/cts/common/device-side/bedstead/testapisreflection/src/processor/main/java/com/android/bedstead/testapisreflection/processor/
DMethodSignature.java112 private static boolean isGetterInternal(String methodName, in isGetterInternal() argument
120 if (methodName.startsWith("get")) { in isGetterInternal()
121 return Character.isUpperCase(methodName.charAt(3)); in isGetterInternal()
123 if (methodName.startsWith("is")) { in isGetterInternal()
124 return Character.isUpperCase(methodName.charAt(2)); in isGetterInternal()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java192 private void runTestAsPrimaryUser(String className, String methodName) throws Exception { in runTestAsPrimaryUser() argument
193 runTestAsUser(className, methodName, getDevice().getPrimaryUserId()); in runTestAsPrimaryUser()
196 private void runTestAsSecondaryUser(String className, String methodName) throws Exception { in runTestAsSecondaryUser() argument
197 runTestAsUser(className, methodName, mSecondaryUserId); in runTestAsSecondaryUser()
200 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser() argument
202 className, methodName, userId); in runTestAsUser()
209 testRunner.setMethodName(NUMBER_BLOCKING_TESTS_PKG + "." + className, methodName); in runTestAsUser()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTest.java154 private String methodName; field in DecodeAccuracyTest
224 this.methodName = "testGLViewDecodeAccuracy"; in testGLViewDecodeAccuracy()
230 this.methodName = "testGLViewLargerHeightDecodeAccuracy"; in testGLViewLargerHeightDecodeAccuracy()
237 this.methodName = "testGLViewLargerWidthDecodeAccuracy"; in testGLViewLargerWidthDecodeAccuracy()
244 this.methodName = "testSurfaceViewVideoDecodeAccuracy"; in testSurfaceViewVideoDecodeAccuracy()
250 this.methodName = "testSurfaceViewLargerHeightDecodeAccuracy"; in testSurfaceViewLargerHeightDecodeAccuracy()
257 this.methodName = "testSurfaceViewLargerWidthDecodeAccuracy"; in testSurfaceViewLargerWidthDecodeAccuracy()
326 "failed_" + methodName + "_" + testName + ".png"); in validateResult()
/cts/hostsidetests/packagemanager/dynamicmime/src/android/dynamicmime/cts/
DChangedGroupsAppUpdateTestCases.java50 private void runDeviceTestsWithMethodName(String methodName) in runDeviceTestsWithMethodName() argument
53 methodName); in runDeviceTestsWithMethodName()
/cts/hostsidetests/backup/src/android/cts/backup/
DOtherSoundsSettingsHostSideTest.java90 private void checkDeviceTest(String methodName) throws DeviceNotAvailableException { in checkDeviceTest() argument
91 checkDeviceTest(APP_PACKAGE, TEST_CLASS, methodName); in checkDeviceTest()
DSyncAdapterSettingsHostSideTest.java113 private void checkDeviceTest(String methodName) throws DeviceNotAvailableException { in checkDeviceTest() argument
114 checkDeviceTest(APP_PACKAGE, TEST_CLASS, methodName); in checkDeviceTest()
DFullBackupOnlyHostSideTest.java151 private void checkFullBackupOnlyDeviceTest(String methodName) in checkFullBackupOnlyDeviceTest() argument
154 methodName); in checkFullBackupOnlyDeviceTest()
DProfileSerialNumberHostSideTest.java102 private void checkDeviceTest(String methodName) throws DeviceNotAvailableException { in checkDeviceTest() argument
103 checkDeviceTestAsUser(TEST_PACKAGE, TEST_CLASS, methodName, mProfileUserId.get()); in checkDeviceTest()
DKeyValueBackupRestoreHostSideTest.java150 private void checkDeviceTest(String methodName) in checkDeviceTest() argument
153 methodName); in checkDeviceTest()
/cts/tests/tests/appop/AppThatUsesAppOps/src/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.kt142 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
154 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
182 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
219 assertThat(noted[0].second.map { it.methodName }).contains( in noteSyncOpFromNativeCode()
242 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
255 assertThat(noted[0].second.map { it.methodName }) in noteSyncOpFromNativeCode()
257 assertThat(noted[1].second.map { it.methodName }) in noteSyncOpFromNativeCode()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/
DExpectationBasedFilter.java101 String methodName = child.getMethodName(); in getTestDescription() local
102 if ("initializationError".equals(methodName)) { in getTestDescription()
/cts/tests/app/WallpaperTest/testsdk33/src/android/app/cts/wallpapers/
DWallpaperManagerSdk33Test.java231 private void assertReturnsDefault(Supplier<Drawable> methodToTest, String methodName) { in assertReturnsDefault() argument
234 "with no permission, " + methodName + " should return null or the default bitmap") in assertReturnsDefault()
239 private void assertReturnsCurrent(Supplier<Drawable> methodToTest, String methodName) { in assertReturnsCurrent() argument
243 "with permission, " + methodName + " should return the current bitmap") in assertReturnsCurrent()

1234