Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Car/SystemUI/tests/src/com/android/
DAAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java84 Class<?> cls = Class.forName(className, false, this.getClass().getClassLoader()); in testAllClassInheritance() local
85 if (!isTestClass(cls)) continue; in testAllClassInheritance()
89 if (parent.isAssignableFrom(cls)) { in testAllClassInheritance()
94 boolean hasSize = hasSize(cls); in testAllClassInheritance()
96 fails.add(cls.getName() + " does not have size annotation, such as @SmallTest"); in testAllClassInheritance()
99 fails.add(cls.getName() + " does not extend any of " + getClsStr()); in testAllClassInheritance()
107 private boolean hasSize(Class<?> cls) { in hasSize() argument
109 if (cls.getDeclaredAnnotation(SUPPORTED_SIZES[i]) != null) return true; in hasSize()
133 .stream().map(cls -> cls.getSimpleName()).toArray()); in getClsStr()
/packages/apps/Nfc/nci/jni/
DNfcJniUtil.cpp81 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object() local
82 if (cls.get() == NULL) { in nfc_jni_cache_object()
87 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object()
88 ScopedLocalRef<jobject> obj(e, e->NewObject(cls.get(), ctor)); in nfc_jni_cache_object()
148 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object_local() local
149 if (cls.get() == NULL) { in nfc_jni_cache_object_local()
154 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object_local()
155 jobject obj = e->NewObject(cls.get(), ctor); in nfc_jni_cache_object_local()
DNativeNfcManager.cpp698 ScopedLocalRef<jclass> cls(e, e->GetObjectClass(o)); in nfcManager_initNativeStruc() local
699 jfieldID f = e->GetFieldID(cls.get(), "mNative", "J"); in nfcManager_initNativeStruc()
704 e->GetMethodID(cls.get(), "notifyNdefMessageListeners", in nfcManager_initNativeStruc()
707 e->GetMethodID(cls.get(), "notifyLlcpLinkActivation", in nfcManager_initNativeStruc()
710 e->GetMethodID(cls.get(), "notifyLlcpLinkDeactivated", in nfcManager_initNativeStruc()
713 e->GetMethodID(cls.get(), "notifyLlcpLinkFirstPacketReceived", in nfcManager_initNativeStruc()
717 e->GetMethodID(cls.get(), "notifyHostEmuActivated", "(I)V"); in nfcManager_initNativeStruc()
720 e->GetMethodID(cls.get(), "notifyHostEmuData", "(I[B)V"); in nfcManager_initNativeStruc()
723 e->GetMethodID(cls.get(), "notifyHostEmuDeactivated", "(I)V"); in nfcManager_initNativeStruc()
726 e->GetMethodID(cls.get(), "notifyRfFieldActivated", "()V"); in nfcManager_initNativeStruc()
[all …]
/packages/apps/ThemePicker/tests/src/com/android/customization/testing/
DTestPluginManager.kt12 override fun <T : Plugin?> addPluginListener(listener: PluginListener<T>, cls: Class<T>) {} in addPluginListener()
15 cls: Class<T>, in addPluginListener()
22 cls: Class<T> in addPluginListener()
28 cls: Class<T>, in addPluginListener()
33 override fun <T> dependsOn(p: Plugin, cls: Class<T>): Boolean { in dependsOn()
/packages/modules/Bluetooth/system/blueberry/utils/ui_pages/
Dui_core.py500 def from_xml(cls, ctx: Context, ui_xml: minidom.Document, argument
520 if cls.PAGE_RID is not None:
522 if node.resource_id == cls.PAGE_RID:
523 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
524 elif cls.PAGE_TEXT is not None:
526 if node.text == cls.PAGE_TEXT:
527 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
528 elif cls.PAGE_RE_TEXT is not None:
530 if re.search(cls.PAGE_RE_TEXT, node.text):
531 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
[all …]
/packages/modules/Bluetooth/system/blueberry/utils/ui_pages/fitbit_companion/
Dother_pages.py130 def from_xml(cls, ctx: ui_core.Context, ui_xml: minidom.Document, argument
147 if (node.text == cls._FITBIT_COMPANION_NAME_TEXT and
148 node.resource_id == cls._NODE_RESOURCE_NAME_RID):
149 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
271 def from_xml(cls, ctx: ui_core.Context, ui_xml: minidom.Document, argument
289 node.resource_id == cls._NODE_SWITCH_TEXT_RID):
290 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
Dpairing_pages.py69 def from_xml(cls, ctx: ui_core.Context, ui_xml: minidom.Document, argument
85 if (node.text == cls.NODE_PAIR_TEXT and
87 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
118 def from_xml(cls, ctx: ui_core.Context, ui_xml: minidom.Document, argument
137 if node_text in cls.NODE_TITLE_TEXT_SET:
138 return cls(ctx, ui_xml, clickable_nodes, enabled_nodes, all_nodes)
/packages/modules/Uwb/service/uci/jni/utils/
DUwbJniUtil.cpp70 jclass cls = env->FindClass(className); in uwb_jni_cache_jclass() local
71 if (cls == NULL) { in uwb_jni_cache_jclass()
76 *cachedJclass = static_cast<jclass>(env->NewGlobalRef(cls)); in uwb_jni_cache_jclass()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastActivityTestCase.java99 protected <S> void injectSystemService(Class<S> cls, S service) { in injectSystemService() argument
100 mContext.injectSystemService(cls, service); in injectSystemService()
127 public <S> void injectSystemService(Class<S> cls, S service) { in injectSystemService() argument
128 final String name = getSystemServiceName(cls); in injectSystemService()
/packages/modules/StatsD/framework/jni/
Dandroid_util_StatsLog.cpp59 ScopedLocalRef<jclass> cls(env, env->FindClass(kStatsLogClass)); in register_android_util_StatsLog() local
60 if (cls.get() == nullptr) { in register_android_util_StatsLog()
66 int status = env->RegisterNatives(cls.get(), gMethods, count); in register_android_util_StatsLog()
/packages/services/Car/tools/emulator/
Dobd2_to_diagjson.py31 def load(cls, file): argument
35 def wrapIfNeeded(cls, item): argument
147 def fromJson(cls, json): argument
228 json.dump(dest_events, open(args.destination_file, 'w'), cls=EventEncoder)
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
DActivityInstrumentationTestCaseIntent.java28 public ActivityInstrumentationTestCaseIntent(Context packageContext, Class<?> cls) { in ActivityInstrumentationTestCaseIntent() argument
29 super(packageContext, cls); in ActivityInstrumentationTestCaseIntent()
/packages/modules/Bluetooth/system/blueberry/decorators/
Dandroid_bluetooth_client_decorator.py32 cls = getattr(module, decorator)
33 ad = cls(ad)
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContextWithServiceOverrides.java35 public <S> void injectSystemService(Class<S> cls, S service) { in injectSystemService() argument
36 final String name = getSystemServiceName(cls); in injectSystemService()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DResourceBasedOverride.java39 Class<?> cls = Class.forName(className); in getObject() local
40 return (T) cls.getDeclaredConstructor(Context.class).newInstance(context); in getObject()
/packages/apps/Gallery2/jni/filters/
Dfilters.h38 #define JNIFUNCF(cls, name, vars...) Java_com_android_gallery3d_filtershow_filters_ ## cls ## _ ## … argument
/packages/modules/Bluetooth/system/blueberry/controllers/
Dderived_bt_device.py67 cls = getattr(module, config[MOBLY_CONTROLLER_CONFIG_CLASS_KEY])
70 new_class = type(MOBLY_CONTROLLER_CONFIG_NAME, (cls, BtDevice), params)
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DApplicationUtils.java35 final Class<? extends Activity> cls) { in getActivityTitleResId() argument
36 final ComponentName cn = new ComponentName(context, cls); in getActivityTitleResId()
/packages/services/Car/tools/
Dupdate-obd2-sensors.py57 def indentLines(cls, string, numSpaces): argument
183 def __new__(cls, name, parents, dct): argument
198 newClass = super().__new__(cls, name, (SensorBase,), dct)
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DCameraTest.java62 private void checkActivityLeak(Class<?> cls) throws Exception { in checkActivityLeak() argument
66 intent.setClass(getInstrumentation().getTargetContext(), cls); in checkActivityLeak() local
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DTemplateSliceBuilder.java115 Class<T> cls) { in pair() argument
116 return new Pair(spec, cls); in pair()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DLogger.java39 public Logger(Class<?> cls) { in Logger() argument
40 this(cls.getSimpleName()); in Logger()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDicttool.java76 public static void addCommand(final String commandName, final Class<? extends Command> cls) { in addCommand() argument
77 sCommands.put(commandName, cls); in addCommand()
/packages/services/Car/tests/ThemePlayground/src/com/android/car/themeplayground/
DAbstractSampleActivity.java125 private boolean startSampleActivity(Class<?> cls) { in startSampleActivity() argument
126 Intent dialogIntent = new Intent(this, cls); in startSampleActivity()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DStoreUtils.java93 String cls = str.substring(sep+1); in stringToComponentName() local
94 return new ComponentName(pkg, cls); in stringToComponentName()

12