Home
last modified time | relevance | path

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

12345

/packages/apps/Calendar/src/com/android/calendar/
DExtensionsFactory.java64 private static <T> T createInstance(String className) { in createInstance() argument
66 Class<?> c = Class.forName(className); in createInstance()
69 Log.e(TAG, className + ": unable to create instance.", e); in createInstance()
71 Log.e(TAG, className + ": unable to create instance.", e); in createInstance()
73 Log.e(TAG, className + ": unable to create instance.", e); in createInstance()
83 String className = sProperties.getProperty(ALL_IN_ONE_MENU_KEY); in getAllInOneMenuExtensions() local
84 if (className != null) { in getAllInOneMenuExtensions()
85 sAllInOneMenuExtensions = createInstance(className); in getAllInOneMenuExtensions()
109 String className = sProperties.getProperty(CLOUD_NOTIFICATION_KEY); in getCloudNotificationBackplane() local
110 if (className != null) { in getCloudNotificationBackplane()
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DInjectedSetting.java45 public final String className; field in InjectedSetting
68 private InjectedSetting(String packageName, String className, in InjectedSetting() argument
71 this.className = Preconditions.checkNotNull(className, "className"); in InjectedSetting()
81 public static InjectedSetting newInstance(String packageName, String className, in newInstance() argument
83 if (packageName == null || className == null || in newInstance()
87 + packageName + ", class=" + className in newInstance()
92 return new InjectedSetting(packageName, className, title, iconId, userHandle, in newInstance()
100 ", mClassName='" + className + '\'' + in toString()
113 intent.setClassName(packageName, className); in getServiceIntent()
124 return packageName.equals(that.packageName) && className.equals(that.className) in equals()
[all …]
/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/apps/Settings/src/com/android/settings/search/
DDatabaseIndexingManager.java302 Log.e(LOG_TAG, "Cannot index: " + (data != null ? data.className : data) in addDataToDatabase()
480 public void updateFromClassNameResource(String className, boolean includeInSearchResults) { in updateFromClassNameResource() argument
481 if (className == null) { in updateFromClassNameResource()
484 final SearchIndexableResource res = SearchIndexableResources.getResourceByName(className); in updateFromClassNameResource()
486 Log.e(LOG_TAG, "Cannot find SearchIndexableResources for class name: " + className); in updateFromClassNameResource()
542 final String className = cursor.getString(COLUMN_INDEX_XML_RES_CLASS_NAME); in addIndexablesForXmlResourceUri() local
553 sir.className = className; in addIndexablesForXmlResourceUri()
593 final String className = cursor.getString(COLUMN_INDEX_RAW_CLASS_NAME); in addIndexablesForRawDataUri() local
612 data.className = className; in addIndexablesForRawDataUri()
655 .setClassName(raw.className) in indexOneRaw()
[all …]
DDatabaseIndexingUtils.java68 public static Intent buildSubsettingIntent(Context context, String className, String key, in buildSubsettingIntent() argument
73 className, args, null, 0, screenTitle, false, in buildSubsettingIntent()
85 String className, Context context) { in getPreferenceControllerUriMap() argument
90 final Class<?> clazz = getIndexableClass(className); in getPreferenceControllerUriMap()
93 Log.d(TAG, "SearchIndexableResource '" + className + in getPreferenceControllerUriMap()
144 public static Class<?> getIndexableClass(String className) { in getIndexableClass() argument
147 clazz = Class.forName(className); in getIndexableClass()
149 Log.d(TAG, "Cannot find class: " + className); in getIndexableClass()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchIndexProviderCodeInspector.java85 final String className = clazz.getName(); in run() local
93 if (!notImplementingIndexableGrandfatherList.remove(className)) { in run()
94 notImplementingIndexable.add(className); in run()
101 if (!notImplementingIndexProviderGrandfatherList.remove(className)) { in run()
102 notImplementingIndexProvider.add(className); in run()
111 if (!notSharingPrefControllersGrandfatherList.remove(className)) { in run()
112 notSharingPreferenceControllers.add(className); in run()
117 if (SearchIndexableResources.getResourceByName(className) == null) { in run()
118 if (!notInSearchIndexableRegistryGrandfatherList.remove(className)) { in run()
119 notInSearchProviderRegistry.add(className); in run()
DDatabaseIndexingManagerTest.java108 private final String className = "class name"; field in DatabaseIndexingManagerTest
238 assertThat(cursor.getString(11)).isEqualTo(raw.className); in testInsertRawColumn_rowMatches()
335 assertThat(cursor.getString(11)).isEqualTo(className); in testAddResourceHeader_rowsMatch()
421 assertThat(cursor.getString(11)).isEqualTo(className); in testAddResource_customSetting_rowsMatch()
478 assertThat(cursor.getString(11)).isEqualTo(className); in testAddResource_checkboxPreference_rowsMatch()
535 assertThat(cursor.getString(11)).isEqualTo(className); in testAddResource_listPreference_rowsMatch()
578 resource.className = "com.android.settings.display.ScreenZoomSettings"; in testResourceProvider_rowInserted()
589 resource.className = "com.android.settings.display.ScreenZoomSettings"; in testResourceProvider_rowMatches()
646 resource.className = "com.android.settings.LegalSettings"; in testResourceProvider_resourceRowInserted()
656 resource.className = "com.android.settings.display.ScreenZoomSettings"; in testResourceProvider_resourceRowMatches()
[all …]
/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/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DTestInstrumentationRunner.java48 (classLoader, className, intent) -> newActivity.newInstance()); in registerReplacedActivity()
56 public Activity newActivity(ClassLoader cl, String className, Intent intent) in newActivity() argument
58 OnActivityCreatedCallback callback = sReplacedActivityMap.get(className); in newActivity()
60 return callback.createActivity(cl, className, intent); in newActivity()
62 return super.newActivity(cl, className, intent); in newActivity()
67 public Application newApplication(ClassLoader cl, String className, Context context) in newApplication() argument
69 Application app = super.newApplication(cl, className, context); in newApplication()
102 Activity createActivity(ClassLoader cl, String className, Intent intent) in createActivity() argument
/packages/apps/Contacts/tests/src/com/android/contacts/
DRunMethodInstrumentation.java48 private String className; field in RunMethodInstrumentation
58 className = arguments.getString("class", getContext().getPackageName() + "." + in onCreate()
64 Log.d(TAG, "Running " + className + "." + methodName); in onCreate()
81 if (className == null || methodName == null) { in onStart()
98 invokeMethod(args, className, methodName); in onStart()
108 private void invokeMethod(Bundle args, String className, String methodName) throws in invokeMethod() argument
115 clazz = getTargetContext().getClassLoader().loadClass(className); in invokeMethod()
119 clazz = getContext().getClassLoader().loadClass(className); in invokeMethod()
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
DSuggestionFeatureProviderImpl.java76 final String className = component.getClassName(); in isSuggestionCompleted() local
77 if (className.equals(NightDisplaySuggestionActivity.class.getName())) { in isSuggestionCompleted()
80 if (className.equals(NewDeviceIntroSuggestionActivity.class.getName())) { in isSuggestionCompleted()
82 } else if (className.equals(DoubleTapPowerSuggestionActivity.class.getName())) { in isSuggestionCompleted()
85 } else if (className.equals(DoubleTwistSuggestionActivity.class.getName())) { in isSuggestionCompleted()
88 } else if (className.equals(AmbientDisplaySuggestionActivity.class.getName())) { in isSuggestionCompleted()
91 } else if (className.equals(AmbientDisplayPickupSuggestionActivity.class.getName())) { in isSuggestionCompleted()
94 } else if (className.equals(SwipeToNotificationSuggestionActivity.class.getName())) { in isSuggestionCompleted()
DSuggestionsChecks.java54 String className = component.getClassName(); in isSuggestionComplete() local
55 if (className.equals(WallpaperSuggestionActivity.class.getName())) { in isSuggestionComplete()
57 } else if (className.equals(WifiCallingSuggestionActivity.class.getName())) { in isSuggestionComplete()
59 } else if (className.equals(FingerprintSuggestionActivity.class.getName())) { in isSuggestionComplete()
62 } else if (className.equals(ScreenLockSuggestionActivity.class.getName())) { in isSuggestionComplete()
64 } else if (className.equals(FingerprintEnrollSuggestionActivity.class.getName())) { in isSuggestionComplete()
/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/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java338 final String className = getAttributeValue(parser, ATTR_CLASS_NAME); in parseAndAdd() local
340 if (!TextUtils.isEmpty(packageName) && !TextUtils.isEmpty(className)) { in parseAndAdd()
345 cn = new ComponentName(packageName, className); in parseAndAdd()
350 cn = new ComponentName(packages[0], className); in parseAndAdd()
362 Log.e(TAG, "Favorite not found: " + packageName + "/" + className); in parseAndAdd()
387 final String className = getAttributeValue(parser, ATTR_CLASS_NAME); in parseAndAdd() local
388 if (TextUtils.isEmpty(packageName) || TextUtils.isEmpty(className)) { in parseAndAdd()
396 .setComponent(new ComponentName(packageName, className)) in parseAndAdd()
471 final String className = getAttributeValue(parser, ATTR_CLASS_NAME); in parseAndAdd() local
472 if (TextUtils.isEmpty(packageName) || TextUtils.isEmpty(className)) { in parseAndAdd()
[all …]
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java154 public boolean isActivityAllowedWhileDriving(String packageName, String className) { in isActivityAllowedWhileDriving() argument
155 assertPackageAndClassName(packageName, className); in isActivityAllowedWhileDriving()
165 return isActivityInWhitelistsLocked(packageName, className); in isActivityAllowedWhileDriving()
170 public boolean isServiceAllowedWhileDriving(String packageName, String className) { in isServiceAllowedWhileDriving() argument
214 private void assertPackageAndClassName(String packageName, String className) { in assertPackageAndClassName() argument
218 if (className == null) { in assertPackageAndClassName()
244 private boolean isActivityInWhitelistsLocked(String packageName, String className) { in isActivityInWhitelistsLocked() argument
246 if (isActivityInMapAndMatching(policy.whitelistsMap, packageName, className)) { in isActivityInWhitelistsLocked()
250 return isActivityInMapAndMatching(mSystemWhitelists, packageName, className); in isActivityInWhitelistsLocked()
254 String packageName, String className) { in isActivityInMapAndMatching() argument
[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/services/Car/car-support-lib/src/android/support/car/content/pm/
DCarPackageManagerEmbedded.java38 public boolean isActivityAllowedWhileDriving(String packageName, String className) in isActivityAllowedWhileDriving() argument
41 return mManager.isActivityAllowedWhileDriving(packageName, className); in isActivityAllowedWhileDriving()
48 public boolean isServiceAllowedWhileDriving(String packageName, String className) in isServiceAllowedWhileDriving() argument
51 return mManager.isServiceAllowedWhileDriving(packageName, className); in isServiceAllowedWhileDriving()
/packages/apps/Settings/src/com/android/settings/applications/
DManageApplications.java298 String className = args != null ? args.getString(EXTRA_CLASSNAME) : null; in onCreate() local
299 if (className == null) { in onCreate()
300 className = intent.getComponent().getClassName(); in onCreate()
302 if (className.equals(AllApplicationsActivity.class.getName())) { in onCreate()
304 } else if (className.equals(NotificationAppListActivity.class.getName()) in onCreate()
308 } else if (className.equals(StorageUseActivity.class.getName())) { in onCreate()
318 } else if (className.equals(UsageAccessSettingsActivity.class.getName())) { in onCreate()
320 } else if (className.equals(HighPowerApplicationsActivity.class.getName())) { in onCreate()
324 } else if (className.equals(OverlaySettingsActivity.class.getName())) { in onCreate()
326 } else if (className.equals(WriteSettingsActivity.class.getName())) { in onCreate()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTasks.java41 String className = extras.getString(EXTRA_CLASS_NAME); in createTask() local
42 VvmLog.i("Task.createTask", "create task:" + className); in createTask()
43 if (className == null) { in createTask()
47 Task task = (Task) Class.forName(className).getDeclaredConstructor().newInstance(); in createTask()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DSettingsGatewayTest.java49 for (String className : SettingsGateway.SETTINGS_FOR_RESTRICTED) { in allRestrictedActivityMustBeDefinedInManifest()
51 intent.setComponent(new ComponentName(packageName, className)); in allRestrictedActivityMustBeDefinedInManifest()
54 Log.d(TAG, packageName + "/" + className + "; resolveInfo size: " in allRestrictedActivityMustBeDefinedInManifest()
56 assertFalse(className + " is not-defined in manifest", resolveInfos.isEmpty()); in allRestrictedActivityMustBeDefinedInManifest()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaManager.java151 String className = prefs.getString(PREFS_KEY_CLASS, null); in getDefaultComponent() local
156 if (packageName != null && className != null) { in getDefaultComponent()
160 && info.serviceInfo.name.equals(className)) { in getDefaultComponent()
168 className = null; in getDefaultComponent()
174 if (packageName == null || className == null) { in getDefaultComponent()
179 className = info.serviceInfo.name; in getDefaultComponent()
185 return new ComponentName(packageName, className); in getDefaultComponent()
/packages/services/Car/car-lib/src/android/car/content/pm/
DCarPackageManager.java158 public boolean isActivityAllowedWhileDriving(String packageName, String className) in isActivityAllowedWhileDriving() argument
161 return mService.isActivityAllowedWhileDriving(packageName, className); in isActivityAllowedWhileDriving()
176 public boolean isServiceAllowedWhileDriving(String packageName, String className) in isServiceAllowedWhileDriving() argument
179 return mService.isServiceAllowedWhileDriving(packageName, className); in isServiceAllowedWhileDriving()
/packages/apps/Nfc/nci/jni/
DNfcJniUtil.cpp81 int nfc_jni_cache_object (JNIEnv *e, const char *className, jobject *cachedObj) in nfc_jni_cache_object() argument
83 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object()
156 int nfc_jni_cache_object_local (JNIEnv *e, const char *className, jobject *cachedObj) in nfc_jni_cache_object_local() argument
158 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object_local()
/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()

12345