/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_gatt.cpp | 766 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 770 env->GetMethodID(clazz, "onClientRegistered", "(IIJJ)V"); in classInitNative() 772 env->GetMethodID(clazz, "onScannerRegistered", "(IIJJ)V"); in classInitNative() 773 method_onScanResult = env->GetMethodID(clazz, "onScanResult", in classInitNative() 776 env->GetMethodID(clazz, "onConnected", "(IIILjava/lang/String;)V"); in classInitNative() 778 env->GetMethodID(clazz, "onDisconnected", "(IIILjava/lang/String;)V"); in classInitNative() 780 env->GetMethodID(clazz, "onReadCharacteristic", "(III[B)V"); in classInitNative() 782 env->GetMethodID(clazz, "onWriteCharacteristic", "(III)V"); in classInitNative() 784 env->GetMethodID(clazz, "onExecuteCompleted", "(II)V"); in classInitNative() 786 env->GetMethodID(clazz, "onSearchCompleted", "(II)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_a2dp.cpp | 34 jclass clazz; member 97 android_bluetooth_BluetoothCodecConfig.clazz, in bta2dp_audio_config_callback() 109 android_bluetooth_BluetoothCodecConfig.clazz, NULL); in bta2dp_audio_config_callback() 112 android_bluetooth_BluetoothCodecConfig.clazz, in bta2dp_audio_config_callback() 125 android_bluetooth_BluetoothCodecConfig.clazz, NULL); in bta2dp_audio_config_callback() 128 android_bluetooth_BluetoothCodecConfig.clazz, in bta2dp_audio_config_callback() 149 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 174 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 177 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 180 clazz, "onCodecConfigChanged", in classInitNative() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 346 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 348 env->GetMethodID(clazz, "onConnectionStateChanged", "(III[B)V"); in classInitNative() 350 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 351 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I)V"); in classInitNative() 352 method_onNetworkState = env->GetMethodID(clazz, "onNetworkState", "(I[B)V"); in classInitNative() 353 method_onNetworkRoaming = env->GetMethodID(clazz, "onNetworkRoaming", "(I[B)V"); in classInitNative() 354 method_onNetworkSignal = env->GetMethodID(clazz, "onNetworkSignal", "(I[B)V"); in classInitNative() 355 method_onBatteryLevel = env->GetMethodID(clazz, "onBatteryLevel", "(I[B)V"); in classInitNative() 357 env->GetMethodID(clazz, "onCurrentOperator", "(Ljava/lang/String;[B)V"); in classInitNative() 358 method_onCall = env->GetMethodID(clazz, "onCall", "(I[B)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 598 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 600 env->GetMethodID(clazz, "handlePassthroughRsp", "(II[B)V"); in classInitNative() 603 env->GetMethodID(clazz, "handleGroupNavigationRsp", "(II)V"); in classInitNative() 606 env->GetMethodID(clazz, "onConnectionStateChanged", "(ZZ[B)V"); in classInitNative() 608 method_getRcFeatures = env->GetMethodID(clazz, "getRcFeatures", "([BI)V"); in classInitNative() 611 env->GetMethodID(clazz, "setPlayerAppSettingRsp", "([BB)V"); in classInitNative() 614 env->GetMethodID(clazz, "handlePlayerAppSetting", "([B[BI)V"); in classInitNative() 617 env->GetMethodID(clazz, "onPlayerAppSettingChanged", "([B[BI)V"); in classInitNative() 620 env->GetMethodID(clazz, "handleSetAbsVolume", "([BBB)V"); in classInitNative() 623 env->GetMethodID(clazz, "handleRegisterNotificationAbsVol", "([BB)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 374 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 376 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative() 378 env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative() 380 env->GetMethodID(clazz, "onVrStateChanged", "(I[B)V"); in classInitNative() 381 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "([B)V"); in classInitNative() 382 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "([B)V"); in classInitNative() 384 env->GetMethodID(clazz, "onVolumeChanged", "(II[B)V"); in classInitNative() 386 env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;[B)V"); in classInitNative() 387 method_onSendDtmf = env->GetMethodID(clazz, "onSendDtmf", "(I[B)V"); in classInitNative() 389 env->GetMethodID(clazz, "onNoiceReductionEnable", "(Z[B)V"); in classInitNative() [all …]
|
D | com_android_bluetooth_hidd.cpp | 156 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 160 env->GetMethodID(clazz, "onApplicationStateChanged", "([BZ)V"); in classInitNative() 162 env->GetMethodID(clazz, "onConnectStateChanged", "([BI)V"); in classInitNative() 163 method_onGetReport = env->GetMethodID(clazz, "onGetReport", "(BBS)V"); in classInitNative() 164 method_onSetReport = env->GetMethodID(clazz, "onSetReport", "(BB[B)V"); in classInitNative() 165 method_onSetProtocol = env->GetMethodID(clazz, "onSetProtocol", "(B)V"); in classInitNative() 166 method_onIntrData = env->GetMethodID(clazz, "onIntrData", "(B[B)V"); in classInitNative() 168 env->GetMethodID(clazz, "onVirtualCableUnplug", "()V"); in classInitNative()
|
D | com_android_bluetooth_avrcp.cpp | 515 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument 517 env->GetMethodID(clazz, "getRcFeaturesRequestFromNative", "([BI)V"); in classInitNative() 519 env->GetMethodID(clazz, "getPlayStatusRequestFromNative", "([B)V"); in classInitNative() 522 env->GetMethodID(clazz, "getElementAttrRequestFromNative", "([BB[I)V"); in classInitNative() 525 clazz, "registerNotificationRequestFromNative", "([BII)V"); in classInitNative() 528 env->GetMethodID(clazz, "volumeChangeRequestFromNative", "([BII)V"); in classInitNative() 531 clazz, "handlePassthroughCmdRequestFromNative", "([BII)V"); in classInitNative() 534 env->GetMethodID(clazz, "setAddressedPlayerRequestFromNative", "([BI)V"); in classInitNative() 537 env->GetMethodID(clazz, "setBrowsedPlayerRequestFromNative", "([BI)V"); in classInitNative() 540 env->GetMethodID(clazz, "getFolderItemsRequestFromNative", "([BBJJB[I)V"); in classInitNative() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 45 Class<?> clazz = getJavaClass(halValue.prop & VehiclePropertyType.MASK); in toCarPropertyValue() local 49 if (Boolean.class == clazz) { in toCarPropertyValue() 51 } else if (String.class == clazz) { in toCarPropertyValue() 53 } else if (Long.class == clazz) { in toCarPropertyValue() 55 } else if (byte[].class == clazz) { in toCarPropertyValue() 59 Object[] values = getRawValueList(clazz, v).toArray(); in toCarPropertyValue() 105 Class<?> clazz = getJavaClass(p.prop & VehiclePropertyType.MASK); in toCarPropertyConfig() local 108 .newBuilder(clazz, propertyId, areaType, /* capacity */ 1) in toCarPropertyConfig() 113 .newBuilder(clazz, propertyId, areaType, /* capacity */ p.areaConfigs.size()); in toCarPropertyConfig() 116 if (classMatched(Integer.class, clazz)) { in toCarPropertyConfig() [all …]
|
D | VehicleHal.java | 391 public <T> T get(Class clazz, int propertyId) throws PropertyTimeoutException { in get() argument 392 return get(clazz, createPropValue(propertyId, NO_AREA)); in get() 395 public <T> T get(Class clazz, int propertyId, int areaId) throws PropertyTimeoutException { in get() argument 396 return get(clazz, createPropValue(propertyId, areaId)); in get() 400 public <T> T get(Class clazz, VehiclePropValue requestedPropValue) in get() argument 405 if (clazz == Integer.class || clazz == int.class) { in get() 407 } else if (clazz == Boolean.class || clazz == boolean.class) { in get() 409 } else if (clazz == Float.class || clazz == float.class) { in get() 411 } else if (clazz == Integer[].class) { in get() 414 } else if (clazz == Float[].class) { in get() [all …]
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 45 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 …]
|
D | jni_common.cpp | 65 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()
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | DatabaseIndexingUtils.java | 90 final Class<?> clazz = getIndexableClass(className); in getPreferenceControllerUriMap() local 92 if (clazz == null) { in getPreferenceControllerUriMap() 100 final Indexable.SearchIndexProvider provider = getSearchIndexProvider(clazz); in getPreferenceControllerUriMap() 145 final Class<?> clazz; in getIndexableClass() local 147 clazz = Class.forName(className); in getIndexableClass() 152 return isIndexableClass(clazz) ? clazz : null; in getIndexableClass() 155 public static boolean isIndexableClass(final Class<?> clazz) { in isIndexableClass() argument 156 return (clazz != null) && Indexable.class.isAssignableFrom(clazz); in isIndexableClass() 159 public static Indexable.SearchIndexProvider getSearchIndexProvider(final Class<?> clazz) { in getSearchIndexProvider() argument 161 final Field f = clazz.getField(FIELD_NAME_SEARCH_INDEX_DATA_PROVIDER); in getSearchIndexProvider()
|
D | SettingsSearchIndexablesProvider.java | 100 final Class<?> clazz = DatabaseIndexingUtils.getIndexableClass(sir.className); in queryNonIndexableKeys() local 101 if (clazz == null) { in queryNonIndexableKeys() 108 DatabaseIndexingUtils.getSearchIndexProvider(clazz); in queryNonIndexableKeys() 111 Log.d(TAG, "Unable to get SearchIndexableProvider from " + clazz); in queryNonIndexableKeys() 126 Log.v(TAG, clazz.getName() + " tried to add an empty non-indexable key"); in queryNonIndexableKeys()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
D | SearchIndexProviderCodeInspector.java | 81 for (Class clazz : mClasses) { in run() 82 if (!isConcreteSettingsClass(clazz)) { in run() 85 final String className = clazz.getName(); in run() 87 if (!SettingsPreferenceFragment.class.isAssignableFrom(clazz)) { in run() 91 final boolean implementsIndexable = Indexable.class.isAssignableFrom(clazz); in run() 98 final boolean hasSearchIndexProvider = hasSearchIndexProvider(clazz); in run() 109 .isSharingPreferenceControllers(clazz); in run() 158 private boolean hasSearchIndexProvider(Class clazz) { in hasSearchIndexProvider() argument 160 final Field f = clazz.getField( in hasSearchIndexProvider() 167 Log.e(TAG, "error fetching search provider from class " + clazz.getName()); in hasSearchIndexProvider()
|
D | DataIntegrityTest.java | 58 final Class clazz = DatabaseIndexingUtils.getIndexableClass(val.className); in testIndexableResources_uniqueKeys() local 61 if (clazz == null in testIndexableResources_uniqueKeys() 62 || clazz == DateTimeSettings.class in testIndexableResources_uniqueKeys() 63 || clazz == DataPlanUsageSummary.class in testIndexableResources_uniqueKeys() 64 || clazz == DataUsageSummary.class in testIndexableResources_uniqueKeys() 65 || clazz == SecuritySettings.class) { in testIndexableResources_uniqueKeys() 70 .getSearchIndexProvider(clazz); in testIndexableResources_uniqueKeys()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | RunMethodInstrumentation.java | 112 Class<?> clazz = null; in invokeMethod() local 115 clazz = getTargetContext().getClassLoader().loadClass(className); in invokeMethod() 119 clazz = getContext().getClassLoader().loadClass(className); in invokeMethod() 127 method = clazz.getMethod(methodName, Context.class, Bundle.class); in invokeMethod() 133 method.invoke(clazz, methodArgs); in invokeMethod() 138 method = clazz.getMethod(methodName, Context.class); in invokeMethod() 144 method.invoke(clazz, methodArgs); in invokeMethod() 148 method = clazz.getMethod(methodName); in invokeMethod() 149 method.invoke(clazz); in invokeMethod()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | EntrySchema.java | 50 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 …]
|
D | BitmapUtils.java | 192 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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/ |
D | InstrumentableFragmentCodeInspector.java | 48 for (Class clazz : mClasses) { in run() 49 if (!isConcreteSettingsClass(clazz)) { in run() 52 final String className = clazz.getName(); in run() 56 if (Fragment.class.isAssignableFrom(clazz) in run() 57 && !Instrumentable.class.isAssignableFrom(clazz) in run()
|
/packages/apps/Car/libs/car-stream-lib/src/com/android/car/stream/ |
D | AbstractBundleable.java | 82 private Class<T> clazz; field in AbstractBundleable.BundleableCreator 85 clazz = bundleableClazz; in BundleableCreator() 92 instance = clazz.newInstance(); in createFromParcel() 95 Log.e(TAG, "Failed to instantiate " + clazz.getSimpleName(), e); in createFromParcel() 103 return (T[]) Array.newInstance(clazz, size); in newArray()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | ListenerCombiner.java | 106 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/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManagerBase.java | 201 public <E> CarPropertyValue<E> getProperty(Class<E> clazz, int propId, int area) in getProperty() argument 205 + ", area: 0x" + toHexString(area) + ", class: " + clazz); in getProperty() 211 if (actualClass != clazz) { in getProperty() 213 + clazz + ", but was: " + actualClass); in getProperty() 224 public <E> void setProperty(Class<E> clazz, int propId, int area, E val) in setProperty() argument 228 + ", area: 0x" + toHexString(area) + ", class: " + clazz + ", val: " + val); in setProperty()
|
/packages/apps/Terminal/jni/ |
D | com_android_terminal_Terminal.cpp | 551 static jlong com_android_terminal_Terminal_nativeInit(JNIEnv* env, jclass clazz, jobject callbacks)… in com_android_terminal_Terminal_nativeInit() argument 555 static jint com_android_terminal_Terminal_nativeDestroy(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeDestroy() argument 561 static jint com_android_terminal_Terminal_nativeRun(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeRun() argument 567 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) { in com_android_terminal_Terminal_nativeResize() argument 592 jclass clazz, jlong ptr, jint row, jint col, jobject run) { in com_android_terminal_Terminal_nativeGetCellRun() argument 653 static jint com_android_terminal_Terminal_nativeGetRows(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeGetRows() argument 658 static jint com_android_terminal_Terminal_nativeGetCols(JNIEnv* env, jclass clazz, jlong ptr) { in com_android_terminal_Terminal_nativeGetCols() argument 663 static jint com_android_terminal_Terminal_nativeGetScrollRows(JNIEnv* env, jclass clazz, jlong ptr)… in com_android_terminal_Terminal_nativeGetScrollRows() argument 668 static jboolean com_android_terminal_Terminal_nativeDispatchCharacter(JNIEnv *env, jclass clazz, in com_android_terminal_Terminal_nativeDispatchCharacter() argument 674 static jboolean com_android_terminal_Terminal_nativeDispatchKey(JNIEnv *env, jclass clazz, in com_android_terminal_Terminal_nativeDispatchKey() argument
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarPropertyConfig.java | 185 private static <E> Parcelable.Creator<AreaConfig<E>> getCreator(final Class<E> clazz) { in getCreator() argument 194 return (AreaConfig<E>[]) Array.newInstance(clazz, size); in getCreator() 228 public static <T> Builder<T> newBuilder(Class<T> clazz, int propertyId, int areaType, 230 return new Builder<>(clazz, propertyId, areaType, areaCapacity); 234 public static <T> Builder<T> newBuilder(Class<T> clazz, int propertyId, int areaType) { 235 return newBuilder(clazz, propertyId, areaType, 0);
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | AlphabeticIndexCompat.java | 123 Class clazz = Class.forName("libcore.icu.AlphabeticIndex"); in AlphabeticIndexV16() local 124 mGetBucketIndexMethod = clazz.getDeclaredMethod("getBucketIndex", String.class); in AlphabeticIndexV16() 125 mGetBucketLabelMethod = clazz.getDeclaredMethod("getBucketLabel", int.class); in AlphabeticIndexV16() 126 mAlphabeticIndex = clazz.getConstructor(Locale.class).newInstance(curLocale); in AlphabeticIndexV16() 129 clazz.getDeclaredMethod("addLabels", Locale.class) in AlphabeticIndexV16()
|