Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DInstanceMethod.java31 final String receiverName, final String methodName) { in InstanceMethod() argument
35 this.name = methodName; in InstanceMethod()
62 public static InstanceMethod newInstance(final Class<?> receiverClass, final String methodName, in newInstance() argument
69 receiverClass.getMethod(methodName, parameterTypes), className, methodName); in newInstance()
71 return new InstanceMethod(receiverClass, null, className, methodName); in newInstance()
75 public static InstanceMethod newInstance(final String className, final String methodName, in newInstance() argument
78 return newInstance(Class.forName(className), methodName, parameterTypes); in newInstance()
80 return new InstanceMethod(null, null, className, methodName); in newInstance()
/packages/apps/Contacts/tests/src/com/android/contacts/
DRunMethodInstrumentation.java50 private String methodName; field in RunMethodInstrumentation
61 methodName = arguments.getString("method"); in onCreate()
65 Log.d(TAG, "Running " + className + "." + methodName); in onCreate()
82 if (className == null || methodName == null) { in onStart()
99 invokeMethod(args, className, methodName); in onStart()
109 private void invokeMethod(Bundle args, String className, String methodName) throws in invokeMethod() argument
128 method = clazz.getMethod(methodName, Context.class, Bundle.class); in invokeMethod()
139 method = clazz.getMethod(methodName, Context.class); in invokeMethod()
149 method = clazz.getMethod(methodName); in invokeMethod()
/packages/apps/Contacts/src/com/android/contacts/compat/
DCompatUtils.java220 public static boolean isMethodAvailable(@Nullable String className, @Nullable String methodName, in isMethodAvailable() argument
222 if (TextUtils.isEmpty(className) || TextUtils.isEmpty(methodName)) { in isMethodAvailable()
227 Class.forName(className).getMethod(methodName, parameterTypes); in isMethodAvailable()
231 Log.v(TAG, "Could not find method: " + className + "#" + methodName); in isMethodAvailable()
236 + methodName + " exists at runtime", t); in isMethodAvailable()
253 public static Object invokeMethod(@Nullable Object instance, @Nullable String methodName, in invokeMethod() argument
255 if (instance == null || TextUtils.isEmpty(methodName)) { in invokeMethod()
261 return Class.forName(className).getMethod(methodName, parameterTypes) in invokeMethod()
266 Log.v(TAG, "Could not invoke method: " + className + "#" + methodName); in invokeMethod()
271 + "#" + methodName + " at runtime", t); in invokeMethod()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DTestContentProvider.java82 public Bundle call(String methodName, String uriString, Bundle extras) { in call() argument
83 if (TextUtils.isEmpty(methodName)) { in call()
106 if (!methodName.equals(pathSegments.get(0))) { in call()
110 if (METHOD_GET_TEXT.equals(methodName)) { in call()
117 } else if (METHOD_GET_ICON.equals(methodName)) { in call()
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DDeviceAtomTestCase.java80 String methodName, int atom, int key, int stateOn, int stateOff, in doDeviceMethodOnOff() argument
85 List<EventMetricData> data = doDeviceMethod(methodName, conf); in doDeviceMethodOnOff()
102 protected List<EventMetricData> doDeviceMethod(String methodName, StatsdConfig.Builder cfg) in doDeviceMethod() argument
108 LogUtil.CLog.d("\nPerforming device-side test of " + methodName + " for uid " + appUid); in doDeviceMethod()
109 runDeviceTests(DEVICE_SIDE_TEST_PACKAGE, ".AtomTests", methodName); in doDeviceMethod()
DAtomTestCase.java169 protected boolean checkDeviceFor(String methodName) throws Exception { in checkDeviceFor() argument
172 runDeviceTests(DEVICE_SIDE_TEST_PACKAGE, ".Checkers", methodName); in checkDeviceFor()
174 LogUtil.CLog.d(methodName + "() indicates true."); in checkDeviceFor()
178 LogUtil.CLog.d(methodName + "() indicates false."); in checkDeviceFor()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DApiHelper.java214 private static boolean hasMethod(String className, String methodName, in hasMethod() argument
218 klass.getDeclaredMethod(methodName, parameterTypes); in hasMethod()
226 Class<?> klass, String methodName, Class<?> ... paramTypes) { in hasMethod() argument
228 klass.getDeclaredMethod(methodName, paramTypes); in hasMethod()
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideNetworkTestCase.java129 protected void runDeviceTests(String packageName, String testClassName, String methodName) in runDeviceTests() argument
135 if (methodName != null) { in runDeviceTests()
136 testRunner.setMethodName(testClassName, methodName); in runDeviceTests()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth.h35 CallbackEnv(const char *methodName) : mName(methodName) { in CallbackEnv() argument
Dcom_android_bluetooth_btservice_AdapterService.cpp1016 const char* methodName) { in callByteArrayGetter() argument
1018 jmethodID myMethod = env->GetMethodID(myClass, methodName, "()[B"); in callByteArrayGetter()
1023 const char* methodName) { in callIntGetter() argument
1025 jmethodID myMethod = env->GetMethodID(myClass, methodName, "()I"); in callIntGetter()
/packages/modules/Scheduling/tests/hostsidetests/src/com/android/tests/scheduling/host/
DRebootReadinessHostTest.java42 private void runPhase(String methodName) throws Exception { in runPhase() argument
45 methodName)).isTrue(); in runPhase()
/packages/apps/Camera2/src/com/android/camera/util/
DQuickActivity.java202 private void logLifecycle(String methodName, boolean start) { in logLifecycle() argument
204 Log.v(TAG, prefix + " " + methodName + ": Activity = " + toString()); in logLifecycle()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DBaseTestingActivity.java102 String methodName = cmd.getStringExtra(EXTRA_METHOD); in handleCommand() local
106 if (methodName.equals(m.getName()) && in handleCommand()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSessionTest.java268 private Session createTestSession(String name, String methodName) { in createTestSession() argument
269 return new Session(name, methodName, 0, false, null); in createTestSession()
/packages/services/Telephony/testapps/TelephonyManagerTestApp/src/com/android/phone/testapps/telephonymanagertestapp/
DTelephonyManagerTestApp.java112 String methodName = (parameters == null) ? (method.getName() + "()") : method.getName(); in getView() local
115 ((TextView) convertView.findViewById(R.id.method_name)).setText(methodName); in getView()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleControllerService.java133 private void enforceCallerSystemUid(@NonNull String methodName) { in onBind() argument
135 throw new SecurityException("Only the system process can call " + methodName in onBind()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionServiceImpl.java319 final Action action, final String methodName) { in createLoggingTimer() argument
320 return new LoggingTimer(TAG, action.getClass().getSimpleName() + methodName, in createLoggingTimer()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/core/
DCarUiInstaller.java230 @NonNull String methodName, @Nullable Object instance, @Nullable Object... args) { in callMethodReflective() argument
237 Method method = clazz.getDeclaredMethod(methodName, classArgs); in callMethodReflective()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java423 String methodName = trace[i].getMethodName();
424 if ("getCaller".equals(methodName)) {
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java478 @NonNull final String methodName) { in callVoidMethodIfExists() argument
480 final Method method = target.getClass().getDeclaredMethod(methodName); in callVoidMethodIfExists()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt92 .filter { it.className == this::class.java.name }[1].methodName in <lambda>()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java2587 SupplicantResultBase(String methodName) { in SupplicantResultBase() argument
2588 mMethodName = methodName; in SupplicantResultBase()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiVendorHal.java308 String methodName = niceMethodName(Thread.currentThread().getStackTrace(), 3); in handleRemoteException() local
309 mVerboseLog.err("% RemoteException in HIDL call %").c(methodName).c(e.toString()).flush(); in handleRemoteException()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java479 private static int getMethodInvocationCount(Object mock, String methodName) { in getMethodInvocationCount() argument
482 .filter(invocation -> methodName.equals(invocation.getMethod().getName())) in getMethodInvocationCount()