Home
last modified time | relevance | path

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

1234

/cts/tools/test-api-map/device-side/src/com/android/xts/apimapper/helper/
DDeviceApiMapperHelperRule.java47 (callerClass, callerMethod, opcode, methodOwner, methodName, descriptor, callerEntity)
55 methodName,
62 mStats.onMethodCalled(className, methodName, descriptor);
74 public void onBeforeTest(String className, String methodName) { in onBeforeTest() argument
75 log("Device Test started: %s#%s", className, methodName); in onBeforeTest()
80 public void onAfterTest(String className, String methodName) { in onAfterTest() argument
81 finishCollectingApis(className, methodName); in onAfterTest()
82 log("Device Test finished: %s#%s", className, methodName); in onAfterTest()
91 String methodName, in logMethodCall() argument
102 methodName, in logMethodCall()
[all …]
DDeviceMethodCallStats.java44 public void onMethodCalled(String className, String methodName, String methodDesc) { in onMethodCalled() argument
46 var methodStats = classStats.computeIfAbsent(methodName, k -> new TreeMap<>()); in onMethodCalled()
69 for (String methodName : methodNames) { in dump()
70 Map<String, Integer> methodDescStats = methodStats.get(methodName); in dump()
78 methodName, in dump()
104 private static String removeMethodParameters(String methodName) { in removeMethodParameters() argument
105 int pos = methodName.indexOf('['); in removeMethodParameters()
107 return methodName; in removeMethodParameters()
109 return methodName.substring(0, pos); in removeMethodParameters()
DDeviceMethodCallHook.java45 String methodOwner, String methodName, String descriptor, Object receiverObject) { in onBeforeCall() argument
50 methodOwner, methodName, descriptor, receiverObject); in onBeforeCall()
53 methodOwner, methodName, descriptor, receiverObject); in onBeforeCall()
/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/hostsidetests/network-policy/src/com/android/cts/netpolicy/
DHostsideDefaultNetworkRestrictionsTests.java48 private void runMeteredTest(String methodName) throws DeviceNotAvailableException { in runMeteredTest() argument
49 runDeviceTestsWithCustomOptions(TEST_PKG, METERED_TEST_CLASS, methodName, in runMeteredTest()
53 private void runNonMeteredTest(String methodName) throws DeviceNotAvailableException { in runNonMeteredTest() argument
54 runDeviceTestsWithCustomOptions(TEST_PKG, NON_METERED_TEST_CLASS, methodName, in runNonMeteredTest()
/cts/tools/cts-api-coverage/src/com/android/cts/ctsprofiles/
DClassProfile.java135 String methodName, List<String> params) { in getOrCreateMethod() argument
136 String methodSignature = Utils.getMethodSignature(methodName, params); in getOrCreateMethod()
138 mMethods.put(methodSignature, new MethodProfile(this, methodName, params)); in getOrCreateMethod()
244 String methodName = apiMethod.getName(); in resolveInheritedApiMethods() local
246 MethodProfile method = findInheritedMethod(methodName, methodParams, apiCoverage); in resolveInheritedApiMethods()
250 getPackageName(), getClassName(), methodName, methodParams), in resolveInheritedApiMethods() local
385 String methodName, List<String> params, ApiCoverage apiCoverage) { in findInheritedMethod() argument
387 ApiMethod apiMethod = apiCoverage.getMethod(mPackage, mClass, methodName, params); in findInheritedMethod()
388 return apiMethod == null ? null : getOrCreateMethod(methodName, params); in findInheritedMethod()
390 String methodSignature = Utils.getMethodSignature(methodName, params); in findInheritedMethod()
[all …]
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/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/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/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/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/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.java132 String methodName = method.getName(); in testParentProfileApiDisabled() local
133 if (SUPPORTED_APIS.contains(methodName)) { in testParentProfileApiDisabled()
152 methodName + " throws exception other than SecurityException.", e); in testParentProfileApiDisabled()
157 failedMethods.add(methodName); in testParentProfileApiDisabled()
158 Log.e(LOG_TAG, methodName + " failed to throw SecurityException"); in testParentProfileApiDisabled()
/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/common/device-side/bedstead/testapisparser/src/main/java/com/android/bedstead/testapis/parser/signatures/
DMethodSignature.java138 private static boolean isGetterInternal(String methodName, in isGetterInternal() argument
146 if (methodName.startsWith("get")) { in isGetterInternal()
147 return Character.isUpperCase(methodName.charAt(3)); in isGetterInternal()
149 if (methodName.startsWith("is")) { in isGetterInternal()
150 return Character.isUpperCase(methodName.charAt(2)); in isGetterInternal()
/cts/tools/test-api-map/instrumenttool/src/com/android/xts/apimapper/adapter/
DMethodCallHookingAdapter.kt84 val methodName: String, in <lambda>() constant in com.android.xts.apimapper.adapter.MethodCallHookingMethodVisitor
96 methodName, in <lambda>()
109 if (!methodName.startsWith(APIMAPPER_BRIDGE_PREFIX)) { in <lambda>()
120 methodName, in <lambda>()
269 val methodName: String, in <lambda>() constant in com.android.xts.apimapper.adapter.BridgeKey
/cts/tests/tests/uprobestats/src/android/os/instrumentation/cts/
DDynamicInstrumentationManagerTest.java157 private static OffsetsWithStatusCode getOffsetsWithStatusCode(String fqcn, String methodName, in getOffsetsWithStatusCode() argument
159 return getOffsetsWithStatusCode(0, 0, SYSTEM_SERVER, fqcn, methodName, in getOffsetsWithStatusCode()
164 int uid, int pid, String processName, String fqcn, String methodName, in getOffsetsWithStatusCode() argument
166 return getExecutableMethodFileOffsetsNative(uid, pid, processName, fqcn, methodName, in getOffsetsWithStatusCode()
195 int uid, int pid, String processName, String fqcn, String methodName, in getExecutableMethodFileOffsetsNative() argument
/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()

1234