Home
last modified time | relevance | path

Searched refs:className (Results 1 – 25 of 107) sorted by relevance

12345

/packages/apps/Contacts/src/com/android/contacts/compat/
DCompatUtils.java194 public static boolean isClassAvailable(@Nullable String className) { in isClassAvailable() argument
195 if (TextUtils.isEmpty(className)) { in isClassAvailable()
199 Class.forName(className); in isClassAvailable()
204 Log.e(TAG, "Unexpected exception when checking if class:" + className + " exists at " in isClassAvailable()
220 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()
235 Log.e(TAG, "Unexpected exception when checking if method: " + className + "#" in isMethodAvailable()
259 String className = instance.getClass().getName(); in invokeMethod() local
[all …]
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DFinalClassField.java24 public final String className; field in FinalClassField
28 private FinalClassField(final Field field, final String className, final String fieldName, in FinalClassField() argument
32 this.className = className; in FinalClassField()
47 String className = definedClass.getCanonicalName(); in newInstance() local
50 definedClass.getField(name), className, name, compatValue); in newInstance()
52 return new FinalClassField<>(null, className, name, compatValue); in newInstance()
56 public static <T> FinalClassField<T> newInstance(final String className, final String fieldName, in newInstance() argument
59 return newInstance(Class.forName(className), fieldName, compatValue); in newInstance()
61 return new FinalClassField<>(null, className, fieldName, compatValue); in newInstance()
DInstanceMethod.java25 public final String className; field in InstanceMethod
36 this.className = receiverName; in InstanceMethod()
66 final String className = receiverClass.getCanonicalName(); in newInstance() local
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/Settings/tests/unit/src/com/android/settings/core/
DUniquePreferenceTest.java153 final String className = clazz.getName(); in verifyPreferenceKeys() local
159 verifyResources(className, resourcesToIndex, uniqueKeys, duplicatedKeys, nullKeyClasses); in verifyPreferenceKeys()
160 verifyRaws(className, rawsToIndex, uniqueKeys, duplicatedKeys, nullKeyClasses); in verifyPreferenceKeys()
163 private void verifyResources(String className, List<SearchIndexableResource> resourcesToIndex, in verifyResources() argument
167 Log.d(TAG, className + "is not providing SearchIndexableResource, skipping"); in verifyResources()
186 + " in " + className); in verifyResources()
187 nullKeyClasses.add(className); in verifyResources()
192 + " in " + className in verifyResources()
201 private void verifyRaws(String className, List<SearchIndexableRaw> rawsToIndex, in verifyRaws() argument
204 Log.d(TAG, className + "is not providing SearchIndexableRaw, skipping"); in verifyRaws()
[all …]
DSettingsGatewayTest.java76 for (String className : SettingsGateway.SETTINGS_FOR_RESTRICTED) { in allRestrictedActivityMustBeDefinedInManifest()
78 intent.setComponent(new ComponentName(mPackageName, className)); in allRestrictedActivityMustBeDefinedInManifest()
81 Log.d(TAG, mPackageName + "/" + className + "; resolveInfo size: " in allRestrictedActivityMustBeDefinedInManifest()
83 assertFalse(className + " is not-defined in manifest", resolveInfos.isEmpty()); in allRestrictedActivityMustBeDefinedInManifest()
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
DSuggestionFeatureProviderImpl.java63 final String className = component.getClassName(); in isSuggestionComplete() local
64 if (className.equals(WallpaperSuggestionActivity.class.getName())) { in isSuggestionComplete()
66 } else if (className.equals(StyleSuggestionActivity.class.getName())) { in isSuggestionComplete()
68 } else if (className.equals(FingerprintSuggestionActivity.class.getName())) { in isSuggestionComplete()
70 } else if (className.equals(FingerprintEnrollSuggestionActivity.class.getName())) { in isSuggestionComplete()
72 } else if (className.equals(ScreenLockSuggestionActivity.class.getName())) { in isSuggestionComplete()
74 } else if (className.equals(WifiCallingSuggestionActivity.class.getName())) { in isSuggestionComplete()
76 } else if (className.equals(NightDisplaySuggestionActivity.class.getName())) { in isSuggestionComplete()
78 } else if (className.equals(ZenSuggestionActivity.class.getName())) { in isSuggestionComplete()
/packages/apps/Contacts/src/com/android/contacts/extensions/
DExtensionsFactory.java56 final String className = sProperties.getProperty(EXTENDED_PHONE_DIRECTORIES_KEY); in init() local
57 if (className != null) { in init()
58 mExtendedPhoneDirectoriesManager = createInstance(className); in init()
77 private static <T> T createInstance(String className) { in createInstance() argument
79 Class<?> c = Class.forName(className); in createInstance()
83 Log.e(TAG, className + ": unable to create instance.", e); in createInstance()
85 Log.e(TAG, className + ": unable to create instance.", e); in createInstance()
87 Log.e(TAG, className + ": unable to create instance.", e); in createInstance()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/suggestions/
DSuggestionFeatureProviderImpl.java62 final String className = component.getClassName(); in isSuggestionComplete() local
63 if (className.equals(WallpaperSuggestionActivity.class.getName())) { in isSuggestionComplete()
65 } else if (className.equals(FingerprintSuggestionActivity.class.getName())) { in isSuggestionComplete()
67 } else if (className.equals(FingerprintEnrollSuggestionActivity.class.getName())) { in isSuggestionComplete()
69 } else if (className.equals(ScreenLockSuggestionActivity.class.getName())) { in isSuggestionComplete()
71 } else if (className.equals(WifiCallingSuggestionActivity.class.getName())) { in isSuggestionComplete()
73 } else if (className.equals(NightDisplaySuggestionActivity.class.getName())) { in isSuggestionComplete()
75 } else if (className.equals(ZenSuggestionActivity.class.getName())) { in isSuggestionComplete()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DTestInstrumentationRunner.java49 (classLoader, className, intent) -> newActivity.newInstance()); in registerReplacedActivity()
57 public Activity newActivity(ClassLoader cl, String className, Intent intent) in newActivity() argument
59 OnActivityCreatedCallback callback = sReplacedActivityMap.get(className); in newActivity()
61 return callback.createActivity(cl, className, intent); in newActivity()
63 return super.newActivity(cl, className, intent); in newActivity()
68 public Application newApplication(ClassLoader cl, String className, Context context) in newApplication() argument
70 Application app = super.newApplication(cl, className, context); in newApplication()
103 Activity createActivity(ClassLoader cl, String className, Intent intent) in createActivity() argument
/packages/apps/Contacts/tests/src/com/android/contacts/
DRunMethodInstrumentation.java49 private String className; field in RunMethodInstrumentation
59 className = arguments.getString("class", getContext().getPackageName() + "." + 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
116 clazz = getTargetContext().getClassLoader().loadClass(className); in invokeMethod()
120 clazz = getContext().getClassLoader().loadClass(className); in invokeMethod()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchIndexProviderCodeInspector.java86 final String className = clazz.getName(); in run() local
94 if (!notImplementingIndexProviderGrandfatherList.remove(className)) { in run()
95 notImplementingIndexProvider.add(className); in run()
104 if (!notSharingPrefControllersGrandfatherList.remove(className)) { in run()
105 notSharingPreferenceControllers.add(className); in run()
112 if (!notInSearchIndexableRegistryGrandfatherList.remove(className)) { in run()
113 notInSearchProviderRegistry.add(className); in run()
118 notProvidingValidResource.add(className); in run()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DLauncherLayoutBuilder.java130 public LauncherLayoutBuilder putApp(String packageName, String className) { in putApp() argument
132 items.put(ATTR_CLASS_NAME, TextUtils.isEmpty(className) ? packageName : className); in putApp()
137 public LauncherLayoutBuilder putWidget(String packageName, String className, in putWidget() argument
140 items.put(ATTR_CLASS_NAME, className); in putWidget()
160 public FolderBuilder addApp(String packageName, String className) { in addApp() argument
163 items.put(ATTR_CLASS_NAME, TextUtils.isEmpty(className) ? packageName : className); in addApp()
/packages/apps/LegacyCamera/src/com/android/camera/
DMenuHelper.java81 String className) { in startCameraActivity() argument
84 intent.setClassName(activity.getPackageName(), className); in startCameraActivity() local
100 String action, className; in gotoMode() local
104 className = PANORAMA_CLASS; in gotoMode()
108 className = VIDEO_CAMERA_CLASS; in gotoMode()
112 className = CAMERA_CLASS; in gotoMode()
118 startCameraActivity(activity, new Intent(action), className); in gotoMode()
/packages/apps/Email/provider_src/com/android/email/mail/
DSender.java45 private static Sender instantiateSender(Context context, String className, Account account) in instantiateSender() argument
49 Class<?> c = Class.forName(className); in instantiateSender()
57 e.toString(), className, account.mDisplayName)); in instantiateSender()
62 account.mDisplayName + ": " + className + " create incompatible object"); in instantiateSender()
85 String className = xml.getAttributeValue(null, "class"); in findSender() local
86 sender = instantiateSender(context, className, account); in findSender()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DIndexDataConverter.java126 if (TextUtils.isEmpty(row.className)) { in convertSiteMapPairs()
130 classToTitleMap.put(row.className, row.screenTitle); in convertSiteMapPairs()
132 pairs.add(new SiteMapPair(row.className, row.screenTitle, in convertSiteMapPairs()
173 .setClassName(raw.className) in convertRaw()
252 .setClassName(sir.className) in convertResource()
292 .setClassName(sir.className) in convertResource()
342 Log.w(TAG, "XML Error parsing PreferenceScreen: " + sir.className, e); in convertResource()
344 Log.w(TAG, "IO Error parsing PreferenceScreen: " + sir.className, e); in convertResource()
346 Log.w(TAG, "Resoucre not found error parsing PreferenceScreen: " + sir.className, e); in convertResource()
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTasks.java49 String className; in createTask() local
51 className = extras.getString(EXTRA_CLASS_NAME); in createTask()
57 VvmLog.i("Task.createTask", "create task:" + className); in createTask()
58 if (className == null) { in createTask()
62 Task task = (Task) Class.forName(className).getDeclaredConstructor().newInstance(); in createTask()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java339 final String className = getAttributeValue(parser, ATTR_CLASS_NAME); in parseAndAdd() local
341 if (!TextUtils.isEmpty(packageName) && !TextUtils.isEmpty(className)) { in parseAndAdd()
346 cn = new ComponentName(packageName, className); in parseAndAdd()
351 cn = new ComponentName(packages[0], className); in parseAndAdd()
363 Log.e(TAG, "Favorite not found: " + packageName + "/" + className); in parseAndAdd()
388 final String className = getAttributeValue(parser, ATTR_CLASS_NAME); in parseAndAdd() local
389 if (TextUtils.isEmpty(packageName) || TextUtils.isEmpty(className)) { in parseAndAdd()
397 .setComponent(new ComponentName(packageName, className)) in parseAndAdd()
476 final String className = getAttributeValue(parser, ATTR_CLASS_NAME); in parseAndAdd() local
477 if (TextUtils.isEmpty(packageName) || TextUtils.isEmpty(className)) { in parseAndAdd()
[all …]
/packages/inputmethods/LatinIME/native/jni/
Djni_common.cpp63 int registerNativeMethods(JNIEnv *env, const char *const className, const JNINativeMethod *methods, in registerNativeMethods() argument
65 jclass clazz = env->FindClass(className); in registerNativeMethods()
67 AKLOGE("Native registration unable to find class '%s'", className); in registerNativeMethods()
71 AKLOGE("RegisterNatives failed for '%s'", className); in registerNativeMethods()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/overlay/
DFeatureFactoryImpl.java50 public static SettingsFragment newInstance(String className, Bundle arguments) { in newInstance() argument
53 args.putString(EXTRA_FRAGMENT_CLASS_NAME, className); in newInstance()
61 String className = getArguments().getString(EXTRA_FRAGMENT_CLASS_NAME); in onPreferenceStartInitialScreen() local
62 final Fragment fragment = (Fragment) Class.forName(className).newInstance(); in onPreferenceStartInitialScreen()
/packages/services/Car/car-lib/src/android/car/content/pm/
DCarPackageManager.java180 public boolean isActivityDistractionOptimized(String packageName, String className) { in isActivityDistractionOptimized() argument
182 return mService.isActivityDistractionOptimized(packageName, className); in isActivityDistractionOptimized()
196 public boolean isServiceDistractionOptimized(String packageName, String className) { in isServiceDistractionOptimized() argument
198 return mService.isServiceDistractionOptimized(packageName, className); in isServiceDistractionOptimized()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/
DTvShadowActivityThread.java69 ComponentName className = (ComponentName) args[0]; in getPackageManager()
75 .getActivityInfo(className, flags); in getPackageManager()
80 ComponentName className = (ComponentName) args[0]; in getPackageManager()
86 .getServiceInfo(className, flags); in getPackageManager()
/packages/apps/Nfc/src/com/android/nfc/
DDtaServiceConnector.java55 public void onServiceConnected(ComponentName className, IBinder service) {
60 public void onServiceDisconnected(ComponentName className) {
89 String className = serviceInfo.serviceInfo.name; in createExplicitFromImplicitIntent() local
90 ComponentName component = new ComponentName(packageName, className); in createExplicitFromImplicitIntent()
/packages/apps/Nfc/nci/jni/
DNfcJniUtil.cpp80 int nfc_jni_cache_object(JNIEnv* e, const char* className, jobject* cachedObj) { in nfc_jni_cache_object() argument
81 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object()
146 int nfc_jni_cache_object_local(JNIEnv* e, const char* className, in nfc_jni_cache_object_local() argument
148 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object_local()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/
DSettingsSearchIndexablesProvider.java108 ref[COLUMN_INDEX_XML_RES_CLASS_NAME] = val.className; in queryXmlResources()
131 ref[COLUMN_INDEX_RAW_CLASS_NAME] = val.className; in queryRawData()
289 item.className = TextUtils.isEmpty(item.className) in getSearchIndexableResourcesFromProvider()
291 : item.className; in getSearchIndexableResourcesFromProvider()
318 raw.className = clazz.getName(); in getSearchIndexableRawFromProvider()
/packages/apps/Settings/src/com/android/settings/search/
DSettingsSearchIndexablesProvider.java108 ref[COLUMN_INDEX_XML_RES_CLASS_NAME] = val.className; in queryXmlResources()
131 ref[COLUMN_INDEX_RAW_CLASS_NAME] = val.className; in queryRawData()
289 item.className = TextUtils.isEmpty(item.className) in getSearchIndexableResourcesFromProvider()
291 : item.className; in getSearchIndexableResourcesFromProvider()
318 raw.className = clazz.getName(); in getSearchIndexableRawFromProvider()

12345