Home
last modified time | relevance | path

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

123

/packages/apps/Nfc/nci/jni/
DNfcJniUtil.cpp74 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object() local
75 if (cls.get() == NULL) { in nfc_jni_cache_object()
80 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object()
81 ScopedLocalRef<jobject> obj(e, e->NewObject(cls.get(), ctor)); in nfc_jni_cache_object()
141 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object_local() local
142 if (cls.get() == NULL) { in nfc_jni_cache_object_local()
147 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object_local()
148 jobject obj = e->NewObject(cls.get(), ctor); in nfc_jni_cache_object_local()
DNativeNfcManager.cpp599 ScopedLocalRef<jclass> cls(e, e->GetObjectClass(o)); in nfcManager_initNativeStruc() local
600 jfieldID f = e->GetFieldID(cls.get(), "mNative", "J"); in nfcManager_initNativeStruc()
605 e->GetMethodID(cls.get(), "notifyNdefMessageListeners", in nfcManager_initNativeStruc()
609 e->GetMethodID(cls.get(), "notifyHostEmuActivated", "(I)V"); in nfcManager_initNativeStruc()
612 e->GetMethodID(cls.get(), "notifyHostEmuData", "(I[B)V"); in nfcManager_initNativeStruc()
615 e->GetMethodID(cls.get(), "notifyHostEmuDeactivated", "(I)V"); in nfcManager_initNativeStruc()
618 e->GetMethodID(cls.get(), "notifyRfFieldActivated", "()V"); in nfcManager_initNativeStruc()
620 e->GetMethodID(cls.get(), "notifyRfFieldDeactivated", "()V"); in nfcManager_initNativeStruc()
623 cls.get(), "notifyTransactionListeners", "([B[BLjava/lang/String;)V"); in nfcManager_initNativeStruc()
626 e->GetMethodID(cls.get(), "notifyEeUpdated", "()V"); in nfcManager_initNativeStruc()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/
DDataTypeDescriptor.kt38 cls: KClass<*>, in dataTypeDescriptor()
41 return DataTypeDescriptor.Builder(name, cls).apply(block).build()
52 val cls: KClass<*> constant in com.android.libraries.pcc.chronicle.api.DataTypeDescriptor
54 class Builder(val name: String, val cls: KClass<*>) { constant in com.android.libraries.pcc.chronicle.api.DataTypeDescriptor.Builder
70 cls: KClass<*>, in dataTypeDescriptor()
73 val dtd = Builder(name, cls).apply(block).build()
82 fun build(): DataTypeDescriptor = DataTypeDescriptor(name, fields, innerTypes, cls) in build()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java73 Class<T> cls, SearchResults searchResults, Executor executor) { in iterateSearchResults() argument
84 if (schemaType.equals(cls.getSimpleName())) { in iterateSearchResults()
87 documentResult = genericDocument.toDocumentClass(cls); in iterateSearchResults()
89 LogUtil.e(e, "Failed to convert GenericDocument to %s", cls.getName()); in iterateSearchResults()
125 @NonNull Class<T> cls, in readConsentData()
132 cls, in readConsentData()
150 @NonNull Class<T> cls, in readAppSearchSessionData()
157 cls, in readAppSearchSessionData()
168 @NonNull Class<T> cls, in readData()
175 Objects.requireNonNull(cls); in readData()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsRecord.java64 private final int cls; field in MdnsRecord
80 cls = reader.readUInt16(); in MdnsRecord()
112 protected MdnsRecord(String[] name, int type, int cls, long receiptTimeMillis, in MdnsRecord() argument
116 this.cls = cls | (cacheFlush ? FLAG_CACHE_FLUSH : 0); in MdnsRecord()
172 return cls & ~FLAG_CACHE_FLUSH; in getRecordClass()
177 return (cls & FLAG_CACHE_FLUSH) != 0; in getCacheFlush()
187 return (cls & MdnsConstants.QCLASS_UNICAST) != 0; in isUnicastReplyRequested()
227 writer.writeUInt16(cls); in writeHeaderFields()
/packages/apps/ThemePicker/tests/common/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/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/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/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/
DDefaultDataTypeDescriptorSet.kt33 dtdsByName.values.associateBy { it.cls } in <lambda>()
83 override fun findDataTypeDescriptor(cls: KClass<*>): DataTypeDescriptor? = dtdsByKClass[cls] in <lambda>()
102 is FieldType.Reference -> this[fieldType.name].cls.java in <lambda>()
103 is FieldType.Nested -> this[fieldType.name].cls.java in <lambda>()
/packages/modules/Connectivity/staticlibs/native/netjniutils/
Dnetjniutils.cpp41 jclass cls = env->FindClass("java/io/FileDescriptor"); in GetNativeFileDescriptorWithoutNdk() local
42 jfieldID fieldID = env->GetFieldID(cls, "descriptor", "I"); in GetNativeFileDescriptorWithoutNdk()
43 env->DeleteLocalRef(cls); in GetNativeFileDescriptorWithoutNdk()
/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/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastActivityTestCase.java104 protected <S> void injectSystemService(Class<S> cls, S service) { in injectSystemService() argument
105 mContext.injectSystemService(cls, service); in injectSystemService()
141 public <S> void injectSystemService(Class<S> cls, S service) { in injectSystemService() argument
142 final String name = getSystemServiceName(cls); in injectSystemService()
/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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/policyengine/data/
DGeneratedDTD.kt25 "chronicle_dtd.UserData", cls = UserData::class) { in <lambda>()
34 "chronicle_dtd.AppInfo", cls = AppInfo::class) { in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DResourceBasedOverride.java41 Class<?> cls = isOverridden ? Class.forName(className) : clazz; in getObject() local
42 return (T) cls.getDeclaredConstructor(Context.class).newInstance(context); in getObject()
/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/Gallery2/jni/filters/
Dfilters.h38 #define JNIFUNCF(cls, name, vars...) Java_com_android_gallery3d_filtershow_filters_ ## cls ## _ ## … argument
/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/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/apps/LegacyCamera/tests/src/com/android/camera/functional/
DCameraTest.java60 private void checkActivityLeak(Class<?> cls) throws Exception { in checkActivityLeak() argument
64 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/services/Car/tools/watchdog/parser/
Dcarwatchdog_dump_parser.py129 cls, stats_pb: performancestats_pb2.ProcessCpuStats argument
132 return cls(
171 cls, stats_pb: performancestats_pb2.PackageCpuStats argument
174 return cls(
243 cls, stats_pb: performancestats_pb2.PackageStorageIoStats argument
246 return cls(

123