Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 25 of 49) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/hal/
DCarPropertyUtils.java61 Class<?> clazz = getJavaClass(halValue.getValueType()); in toCarPropertyValue() local
63 if (Boolean.class == clazz) { in toCarPropertyValue()
65 } else if (String.class == clazz) { in toCarPropertyValue()
67 } else if (Long.class == clazz) { in toCarPropertyValue()
70 Object[] values = getRawValueList(clazz, halValue).toArray(); in toCarPropertyValue()
133 Class<?> clazz = getJavaClass(p.getValueType()); in toCarPropertyConfig() local
134 if (clazz == Boolean.class) { in toCarPropertyConfig()
136 .newBuilder(clazz, propertyId, areaType, /* capacity */ 1) in toCarPropertyConfig()
142 if (classMatched(Integer.class, clazz)) { in toCarPropertyConfig()
145 } else if (classMatched(Float.class, clazz)) { in toCarPropertyConfig()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfpclient.cpp279 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
280 … method_onConnectionStateChanged = env->GetMethodID(clazz, "onConnectionStateChanged", "(III[B)V"); in classInitNative()
281 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
282 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I)V"); in classInitNative()
283 method_onNetworkState = env->GetMethodID(clazz, "onNetworkState", "(I)V"); in classInitNative()
284 method_onNetworkRoaming = env->GetMethodID(clazz, "onNetworkRoaming", "(I)V"); in classInitNative()
285 method_onNetworkSignal = env->GetMethodID(clazz, "onNetworkSignal", "(I)V"); in classInitNative()
286 method_onBatteryLevel = env->GetMethodID(clazz, "onBatteryLevel", "(I)V"); in classInitNative()
287 … method_onCurrentOperator = env->GetMethodID(clazz, "onCurrentOperator", "(Ljava/lang/String;)V"); in classInitNative()
288 method_onCall = env->GetMethodID(clazz, "onCall", "(I)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_gatt.cpp865 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
869 method_onClientRegistered = env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative()
870 method_onScanResult = env->GetMethodID(clazz, "onScanResult", "(Ljava/lang/String;I[B)V"); in classInitNative()
871 method_onConnected = env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative()
872 method_onDisconnected = env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative()
873 method_onReadCharacteristic = env->GetMethodID(clazz, "onReadCharacteristic", "(III[B)V"); in classInitNative()
874 method_onWriteCharacteristic = env->GetMethodID(clazz, "onWriteCharacteristic", "(III)V"); in classInitNative()
875 method_onExecuteCompleted = env->GetMethodID(clazz, "onExecuteCompleted", "(II)V"); in classInitNative()
876 method_onSearchCompleted = env->GetMethodID(clazz, "onSearchCompleted", "(II)V"); in classInitNative()
877 method_onReadDescriptor = env->GetMethodID(clazz, "onReadDescriptor", "(III[B)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_hfp.cpp401 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
403 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative()
404 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
405 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative()
406 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "([B)V"); in classInitNative()
407 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "([B)V"); in classInitNative()
408 method_onVolumeChanged = env->GetMethodID(clazz, "onVolumeChanged", "(II[B)V"); in classInitNative()
409 method_onDialCall = env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;[B)V"); in classInitNative()
410 method_onSendDtmf = env->GetMethodID(clazz, "onSendDtmf", "(I[B)V"); in classInitNative()
411 method_onNoiceReductionEnable = env->GetMethodID(clazz, "onNoiceReductionEnable", "(Z[B)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp430 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
432 env->GetMethodID(clazz, "handlePassthroughRsp", "(II)V"); in classInitNative()
435 env->GetMethodID(clazz, "handleGroupNavigationRsp", "(II)V"); in classInitNative()
438 env->GetMethodID(clazz, "onConnectionStateChanged", "(Z[B)V"); in classInitNative()
441 env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative()
444 env->GetMethodID(clazz, "setPlayerAppSettingRsp", "([BB)V"); in classInitNative()
447 env->GetMethodID(clazz, "handlePlayerAppSetting", "([B[BI)V"); in classInitNative()
450 env->GetMethodID(clazz, "onPlayerAppSettingChanged", "([B[BI)V"); in classInitNative()
453 env->GetMethodID(clazz, "handleSetAbsVolume", "([BBB)V"); in classInitNative()
456 env->GetMethodID(clazz, "handleRegisterNotificationAbsVol", "([BB)V"); in classInitNative()
[all …]
Dcom_android_bluetooth_avrcp.cpp182 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
184 env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative()
186 env->GetMethodID(clazz, "getPlayStatus", "()V"); in classInitNative()
189 env->GetMethodID(clazz, "getElementAttr", "(B[I)V"); in classInitNative()
192 env->GetMethodID(clazz, "registerNotification", "(II)V"); in classInitNative()
195 env->GetMethodID(clazz, "volumeChangeCallback", "(II)V"); in classInitNative()
198 env->GetMethodID(clazz, "handlePassthroughCmd", "(II)V"); in classInitNative()
Dcom_android_bluetooth_hid.cpp198 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
199 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", "([BI)V"); in classInitNative()
200 method_onGetProtocolMode = env->GetMethodID(clazz, "onGetProtocolMode", "([BI)V"); in classInitNative()
201 method_onGetReport = env->GetMethodID(clazz, "onGetReport", "([B[BI)V"); in classInitNative()
202 method_onHandshake = env->GetMethodID(clazz, "onHandshake", "([BI)V"); in classInitNative()
203 method_onVirtualUnplug = env->GetMethodID(clazz, "onVirtualUnplug", "([BI)V"); in classInitNative()
Dcom_android_bluetooth_a2dp_sink.cpp126 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
128 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative()
131 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
134 env->GetMethodID(clazz, "onAudioConfigChanged", "([BII)V"); in classInitNative()
Dcom_android_bluetooth_sdp.cpp102 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
105 method_sdpRecordFoundCallback = env->GetMethodID(clazz, in classInitNative()
110 method_sdpMasRecordFoundCallback = env->GetMethodID(clazz, in classInitNative()
114 method_sdpMnsRecordFoundCallback = env->GetMethodID(clazz, in classInitNative()
118 method_sdpPseRecordFoundCallback = env->GetMethodID(clazz, in classInitNative()
122 method_sdpOppOpsRecordFoundCallback = env->GetMethodID(clazz, in classInitNative()
126 method_sdpSapsRecordFoundCallback = env->GetMethodID(clazz, in classInitNative()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp45 static jlong latinime_BinaryDictionary_open(JNIEnv *env, jclass clazz, jstring sourceDir, in latinime_BinaryDictionary_open() argument
71 static jlong latinime_BinaryDictionary_createOnMemory(JNIEnv *env, jclass clazz, in latinime_BinaryDictionary_createOnMemory() argument
99 static bool latinime_BinaryDictionary_flush(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_flush() argument
110 static bool latinime_BinaryDictionary_needsToRunGC(JNIEnv *env, jclass clazz, in latinime_BinaryDictionary_needsToRunGC() argument
117 static bool latinime_BinaryDictionary_flushWithGC(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_flushWithGC() argument
128 static void latinime_BinaryDictionary_close(JNIEnv *env, jclass clazz, jlong dict) { in latinime_BinaryDictionary_close() argument
134 static void latinime_BinaryDictionary_getHeaderInfo(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_getHeaderInfo() argument
170 static int latinime_BinaryDictionary_getFormatVersion(JNIEnv *env, jclass clazz, jlong dict) { in latinime_BinaryDictionary_getFormatVersion() argument
178 static void latinime_BinaryDictionary_getSuggestions(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_getSuggestions() argument
263 static jint latinime_BinaryDictionary_getProbability(JNIEnv *env, jclass clazz, jlong dict, in latinime_BinaryDictionary_getProbability() argument
[all …]
Djni_common.cpp65 jclass clazz = env->FindClass(className); in registerNativeMethods() local
66 if (!clazz) { in registerNativeMethods()
70 if (env->RegisterNatives(clazz, methods, numMethods) != 0) { in registerNativeMethods()
72 env->DeleteLocalRef(clazz); in registerNativeMethods()
75 env->DeleteLocalRef(clazz); in registerNativeMethods()
Dcom_android_inputmethod_latin_DicTraverseSession.cpp29 static jlong latinime_setDicTraverseSession(JNIEnv *env, jclass clazz, jstring localeJStr, in latinime_setDicTraverseSession() argument
35 static void latinime_initDicTraverseSession(JNIEnv *env, jclass clazz, jlong traverseSession, in latinime_initDicTraverseSession() argument
53 static void latinime_releaseDicTraverseSession(JNIEnv *env, jclass clazz, jlong traverseSession) { in latinime_releaseDicTraverseSession() argument
Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp32 static jboolean latinime_BinaryDictionaryUtils_createEmptyDictFile(JNIEnv *env, jclass clazz, in latinime_BinaryDictionaryUtils_createEmptyDictFile() argument
59 static jfloat latinime_BinaryDictionaryUtils_calcNormalizedScore(JNIEnv *env, jclass clazz, in latinime_BinaryDictionaryUtils_calcNormalizedScore() argument
71 static int latinime_BinaryDictionaryUtils_setCurrentTimeForTest(JNIEnv *env, jclass clazz, in latinime_BinaryDictionaryUtils_setCurrentTimeForTest() argument
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAlphabeticIndexCompat.java120 Class clazz = Class.forName("libcore.icu.AlphabeticIndex"); in AlphabeticIndexV16() local
121 mGetBucketIndexMethod = clazz.getDeclaredMethod("getBucketIndex", String.class); in AlphabeticIndexV16()
122 mGetBucketLabelMethod = clazz.getDeclaredMethod("getBucketLabel", int.class); in AlphabeticIndexV16()
123 mAlphabeticIndex = clazz.getConstructor(Locale.class).newInstance(curLocale); in AlphabeticIndexV16()
126 clazz.getDeclaredMethod("addLabels", Locale.class) in AlphabeticIndexV16()
179 Class clazz = Class.forName("android.icu.text.AlphabeticIndex"); in AlphabeticIndexVN() local
180 mAlphabeticIndex = clazz.getConstructor(Locale.class).newInstance(primaryLocale); in AlphabeticIndexVN()
182 Method addLocales = clazz.getDeclaredMethod("addLabels", Locale[].class); in AlphabeticIndexVN()
/packages/apps/Camera2/src/com/android/camera/util/
DListenerCombiner.java106 public ListenerCombiner(Class<Input> clazz, StateChangeListener listener) { in ListenerCombiner() argument
107 this(clazz); in ListenerCombiner()
111 public ListenerCombiner(Class<Input> clazz) { in ListenerCombiner() argument
112 mInputs = new EnumMap<Input, Boolean>(clazz); in ListenerCombiner()
114 for (Input i : clazz.getEnumConstants()) { in ListenerCombiner()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java192 Class<?> clazz = null; in createVideoThumbnail() local
195 clazz = Class.forName("android.media.MediaMetadataRetriever"); in createVideoThumbnail()
196 instance = clazz.newInstance(); in createVideoThumbnail()
198 Method method = clazz.getMethod("setDataSource", String.class); in createVideoThumbnail()
203 return (Bitmap) clazz.getMethod("captureFrame").invoke(instance); in createVideoThumbnail()
205 byte[] data = (byte[]) clazz.getMethod("getEmbeddedPicture").invoke(instance); in createVideoThumbnail()
210 return (Bitmap) clazz.getMethod("getFrameAtTime").invoke(instance); in createVideoThumbnail()
229 clazz.getMethod("release").invoke(instance); in createVideoThumbnail()
DEntrySchema.java50 public EntrySchema(Class<? extends Entry> clazz) { in EntrySchema() argument
52 ColumnInfo[] columns = parseColumnInfo(clazz); in EntrySchema()
53 mTableName = parseTableName(clazz); in EntrySchema()
448 private String parseTableName(Class<? extends Object> clazz) { in parseTableName() argument
450 Entry.Table table = clazz.getAnnotation(Entry.Table.class); in parseTableName()
459 private ColumnInfo[] parseColumnInfo(Class<? extends Object> clazz) { in parseColumnInfo() argument
461 while (clazz != null) { in parseColumnInfo()
462 parseColumnInfo(clazz, columns); in parseColumnInfo()
463 clazz = clazz.getSuperclass(); in parseColumnInfo()
472 private void parseColumnInfo(Class<? extends Object> clazz, ArrayList<ColumnInfo> columns) { in parseColumnInfo() argument
[all …]
DHttpClientFactory.java58 Class<?> clazz = Class.forName("android.net.http.AndroidHttpClient"); in newHttpClient() local
59 Method newInstance = clazz.getMethod("newInstance", String.class); in newHttpClient()
94 Class<?> clazz = client.getClass(); in close() local
95 Method method = clazz.getMethod("close", (Class<?>[]) null); in close()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java179 private static <E> Parcelable.Creator<AreaConfig<E>> getCreator(final Class<E> clazz) { in getCreator() argument
188 return (AreaConfig<E>[]) Array.newInstance(clazz, size); in getCreator()
222 public static <T> Builder<T> newBuilder(Class<T> clazz, int propertyId, int areaType,
224 return new Builder<>(clazz, propertyId, areaType, areaCapacity);
228 public static <T> Builder<T> newBuilder(Class<T> clazz, int propertyId, int areaType) {
229 return newBuilder(clazz, propertyId, areaType, 0);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
DClassLoaderObjectInputStream.java67 Class clazz = Class.forName(objectStreamClass.getName(), false, classLoader); in resolveClass() local
69 if (clazz != null) { in resolveClass()
71 return clazz; in resolveClass()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DTempStorage.java37 String clazz = System.getProperty("org.apache.james.mime4j.tempStorage");
41 inst = (TempStorage) Class.forName(clazz).newInstance();
46 + clazz + "' using SimpleTempStorage instead", t);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DVendorPolicyLoader.java77 public static void injectPolicyForTest(Context context, String apkPackageName, Class<?> clazz) { in injectPolicyForTest() argument
78 String name = clazz.getName(); in injectPolicyForTest()
109 Class<?> clazz = null; in VendorPolicyLoader() local
115 clazz = classLoader.loadClass(className); in VendorPolicyLoader()
116 method = clazz.getMethod(GET_POLICY_METHOD, ARGS); in VendorPolicyLoader()
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp553 static jlong com_android_terminal_Terminal_nativeInit(JNIEnv* env, jclass clazz, jobject callbacks)… in com_android_terminal_Terminal_nativeInit() argument
557 static jint com_android_terminal_Terminal_nativeDestroy(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeDestroy() argument
563 static jint com_android_terminal_Terminal_nativeRun(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeRun() argument
569 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) { in com_android_terminal_Terminal_nativeResize() argument
594 jclass clazz, jlong ptr, jint row, jint col, jobject run) { in com_android_terminal_Terminal_nativeGetCellRun() argument
655 static jint com_android_terminal_Terminal_nativeGetRows(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeGetRows() argument
660 static jint com_android_terminal_Terminal_nativeGetCols(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeGetCols() argument
665 static jint com_android_terminal_Terminal_nativeGetScrollRows(JNIEnv* env, jclass clazz, jlong ptr)… in com_android_terminal_Terminal_nativeGetScrollRows() argument
670 static jboolean com_android_terminal_Terminal_nativeDispatchCharacter(JNIEnv *env, jclass clazz, in com_android_terminal_Terminal_nativeDispatchCharacter() argument
676 static jboolean com_android_terminal_Terminal_nativeDispatchKey(JNIEnv *env, jclass clazz, in com_android_terminal_Terminal_nativeDispatchKey() argument
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
DIntegrationTestUtils.java183 private static <T extends View> List<T> getAllViews(final Class<T> clazz, final View parent) {
185 if (parent.getClass().equals(clazz)) {
186 results.add(clazz.cast(parent));
191 results.addAll(getAllViews(clazz, viewGroup.getChildAt(i)));
/packages/apps/TV/usbtuner/jni/
DDvbManager.cpp46 jclass clazz = env->FindClass( in DvbManager() local
49 clazz, "openDvbFrontEndFd", "()I"); in DvbManager()
51 clazz, "openDvbDemuxFd", "()I"); in DvbManager()
53 clazz, "openDvbDvrFd", "()I"); in DvbManager()

12