Searched refs:method (Results 1 - 25 of 107) sorted by relevance

12345

/packages/apps/Dialer/java/com/android/voicemail/impl/
H A DTelephonyMangerCompat.java39 Method method =
48 return (String) method.invoke(telephonyManager, number, port, text, sentIntent);
58 Method method =
68 method.invoke(null, context, phoneAccountHandle, number, (short) port, text, sentIntent);
81 Method method =
91 return (String) method.invoke(telephonyManager, settings);
103 Method method =
109 return (String) method.invoke(null, context, phoneAccountHandle, settings);
H A DPreOMigrationHandler.java82 Method method = TelephonyManager.class.getMethod(METHOD_GET_VISUAL_VOICEMAIL_SETTINGS);
83 legacySettings = (Bundle) method.invoke(telephonyManager);
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/
H A DTvShadowActivityThread.java55 public Object invoke(Object proxy, @Nonnull Method method, Object[] args)
57 if (method.getName().equals("getApplicationInfo")) {
68 } else if (method.getName().equals("getActivityInfo")) {
79 } else if (method.getName().equals("getServiceInfo")) {
90 } else if (method.getName().equals("notifyPackageUse")) {
92 } else if (method.getName().equals("getPackageInstaller")) {
95 throw new UnsupportedOperationException("sorry, not supporting " + method
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DRunMethodInstrumentation.java30 * Runs a single static method specified via the arguments.
33 * this class will attempt to invoke a method in
39 * $ adb shell am instrument -e class com.android.contacts.Foo -e method bar -e someArg someValue\
60 methodName = arguments.getString("method");
82 Log.e(TAG, "Must supply class and method");
104 // Maybe should let the method determine when this is called.
124 Method method = null;
127 method = clazz.getMethod(methodName, Context.class, Bundle.class);
132 if (method != null) {
133 method
[all...]
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/
H A DStreamingServiceTracker.java41 public void onStreamMethodUpdated(int method) { argument
42 StreamingServiceTracker.this.onStreamMethodUpdated(method);
100 private void onStreamMethodUpdated(int method) { argument
101 if (mMethod != method) {
102 mMethod = method;
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
H A DBaseTestingActivity.java39 public static final String EXTRA_METHOD = "method";
71 protected void addButton(String title, String method) { argument
74 button.setTag(method);
102 Method method = null;
107 method = m;
111 Object[] args = new Object[method.getParameterTypes().length];
116 method.invoke(this, args);
122 public static Intent getCommandIntent(Class<?> clazz, String method) { argument
124 .putExtra(EXTRA_METHOD, method);
/packages/apps/Stk/src/com/android/stk/
H A DStkDigitsKeyListener.java19 import android.text.method.NumberKeyListener;
/packages/apps/TV/src/com/android/tv/ui/
H A DViewUtils.java36 Method method;
38 method = View.class.getDeclaredMethod("setTransitionAlpha", Float.TYPE);
39 method.invoke(v, alpha);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DCompatUtils.java94 final Method method, final Object... args) {
95 if (method == null) {
99 return method.invoke(receiver, args);
173 public ToObjectMethodWrapper(final Method method, final T defaultValue) { argument
174 mMethod = method;
186 public ToIntMethodWrapper(final Method method, final int defaultValue) { argument
187 mMethod = method;
198 public ToFloatMethodWrapper(final Method method, final float defaultValue) { argument
199 mMethod = method;
210 public ToBooleanMethodWrapper(final Method method, fina argument
93 invoke(final Object receiver, final Object defaultValue, final Method method, final Object... args) argument
[all...]
/packages/apps/Messaging/src/android/support/v7/mms/
H A DMmsHttpClient.java102 * @param method HTTP method, POST for sending and GET for downloading
112 public byte[] execute(String urlString, byte[] pdu, String method, boolean isProxySet, argument
115 Log.d(MmsService.TAG, "HTTP: " + method + " " + Utils.redactUrlForNonVerbose(urlString)
118 checkMethod(method);
152 if (METHOD_POST.equals(method)) {
178 } else if (METHOD_GET.equals(method)) {
240 private static void checkMethod(String method) throws MmsHttpException { argument
241 if (!METHOD_GET.equals(method) && !METHOD_POST.equals(method)) {
[all...]
H A DMmsNetworkManager.java299 final Method method = mConnectivityManager.getClass().getMethod(
301 if (method != null) {
302 return (Integer) method.invoke(
314 final Method method = mConnectivityManager.getClass().getMethod(
316 if (method != null) {
317 method.invoke(
373 final Method method = cmClass.getDeclaredMethod("getMobileDataEnabled");
374 method.setAccessible(true); // Make the method callable
376 return (Boolean) method
[all...]
H A DMmsRequest.java323 * We first try the hidden but correct method on ConnectivityManager. If we can't, use
332 // First try the good method using reflection
334 final Method method = connMgr.getClass().getMethod("requestRouteToHostAddress",
336 if (method != null) {
337 return (Boolean) method.invoke(connMgr, TYPE_MOBILE_MMS, inetAddr);
345 final Method method = connMgr.getClass().getMethod("requestRouteToHost",
347 if (method != null) {
348 return (Boolean) method.invoke(connMgr, TYPE_MOBILE_MMS,
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
H A DAppActiveStreams.java35 StreamCallbackWithState(StreamingServiceCallback callback, int state, int method) { argument
38 mMethod = method;
57 public void setMethod(int method) { argument
58 mMethod = method;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/
H A DSuggestionContentProvider.java65 public Bundle call(String method, String arg, Bundle extras) { argument
67 if (method.equals(GET_SUGGESTION_STATE_METHOD)) {
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
H A DUnicodeDialerKeyListener.java21 import android.text.method.DialerKeyListener;
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
H A DSuggestionStateProvider.java75 public Bundle call(String method, String arg, Bundle extras) { argument
77 if (METHOD_GET_SUGGESTION_STATE.equals(method)) {
/packages/services/Telephony/src/com/android/phone/settings/fdn/
H A DEditPinPreference.java23 import android.text.method.DigitsKeyListener;
24 import android.text.method.PasswordTransformationMethod;
115 * Externally visible method to bring up the dialog to
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
H A DTestUtils.java50 * Utility method to replace obj.fieldName with newValue where obj is of type c
76 * @throws NoSuchMethodException when setAdapterService method is not found
77 * @throws IllegalAccessException when setAdapterService method cannot be accessed
78 * @throws InvocationTargetException when setAdapterService method cannot be invoked, which
79 * should never happen since setAdapterService is a static method
87 // Hence we need to use reflection to call a private method to
89 Method method =
91 method.setAccessible(true);
92 method.invoke(null, adapterService);
100 * @throws NoSuchMethodException when clearAdapterService method i
[all...]
/packages/apps/Dialer/java/com/android/dialer/oem/
H A DMotorolaUtils.java108 Method method = TelephonyManager.class.getMethod("isWifiCallingAvailable");
109 boolean isWifiCallingAvailable = (boolean) method.invoke(telephonyManager);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DHttpClientFactory.java38 // TODO: migrate GDataClient to use this util method instead of apache's
95 Method method = clazz.getMethod("close", (Class<?>[]) null);
96 method.invoke(client, (Object[]) null);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherSettings.java311 public static Bundle call(ContentResolver cr, String method) { argument
312 return cr.call(CONTENT_URI, method, null, null);
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventViewUtils.java86 * Finds the index of the given method in the "methods" list. If the method isn't present
90 * With the current definitions, this effectively converts DEFAULT and unsupported method
94 * @param method the method to search for in the values list
95 * @return the index of the method in the "values" list
97 public static int findMethodInReminderList(ArrayList<Integer> values, int method) { argument
98 int index = values.indexOf(method);
101 //Log.d(TAG, "Cannot find method (" + method
[all...]
/packages/apps/Dialer/java/com/android/dialer/widget/
H A DTextViewPreference.java21 import android.text.method.LinkMovementMethod;
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
H A DLastAccessedProvider.java189 public Bundle call(String method, String arg, Bundle extras) { argument
190 if (METHOD_PURGE.equals(method)) {
209 } else if (METHOD_PURGE_PACKAGE.equals(method)) {
232 return super.call(method, arg, extras);
/packages/apps/Settings/src/com/android/settings/
H A DLinkifyUtils.java21 import android.text.method.LinkMovementMethod;

Completed in 6185 milliseconds

12345