/frameworks/base/media/jni/ |
D | android_media_SyncParams.cpp | 59 void SyncParams::fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) { in fillFromJobject() argument 60 sync.mSource = (AVSyncSource)env->GetIntField(params, fields.sync_source); in fillFromJobject() 61 … sync.mAudioAdjustMode = (AVSyncAudioAdjustMode)env->GetIntField(params, fields.audio_adjust_mode); in fillFromJobject() 62 sync.mTolerance = env->GetFloatField(params, fields.tolerance); in fillFromJobject() 63 frameRate = env->GetFloatField(params, fields.frame_rate); in fillFromJobject() 64 int set = env->GetIntField(params, fields.set); in fillFromJobject() 66 syncSourceSet = set & fields.set_sync_source; in fillFromJobject() 67 audioAdjustModeSet = set & fields.set_audio_adjust_mode; in fillFromJobject() 68 toleranceSet = set & fields.set_tolerance; in fillFromJobject() 69 frameRateSet = set & fields.set_frame_rate; in fillFromJobject() [all …]
|
D | android_media_PlaybackParams.h | 83 void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) { in fillFromJobject() 84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); in fillFromJobject() 85 audioRate.mPitch = env->GetFloatField(params, fields.pitch); in fillFromJobject() 87 (AudioTimestretchFallbackMode)env->GetIntField(params, fields.audio_fallback_mode); in fillFromJobject() 89 (AudioTimestretchStretchMode)env->GetIntField(params, fields.audio_stretch_mode); in fillFromJobject() 90 int set = env->GetIntField(params, fields.set); in fillFromJobject() 92 speedSet = set & fields.set_speed; in fillFromJobject() 93 pitchSet = set & fields.set_pitch; in fillFromJobject() 94 audioFallbackModeSet = set & fields.set_audio_fallback_mode; in fillFromJobject() 95 audioStretchModeSet = set & fields.set_audio_stretch_mode; in fillFromJobject() [all …]
|
D | android_media_MediaMetadataRetriever.cpp | 50 static fields_t fields; variable 74 …MediaMetadataRetriever* retriever = (MediaMetadataRetriever*) env->GetLongField(thiz, fields.conte… in getRetriever() 81 env->SetLongField(thiz, fields.context, (jlong) retriever); in setRetriever() 273 fields.configClazz, in android_media_MediaMetadataRetriever_getFrameAtTime() 274 fields.createConfigMethod, in android_media_MediaMetadataRetriever_getFrameAtTime() 289 fields.bitmapClazz, in android_media_MediaMetadataRetriever_getFrameAtTime() 290 fields.createBitmapMethod, in android_media_MediaMetadataRetriever_getFrameAtTime() 323 jobject scaledBitmap = env->CallStaticObjectMethod(fields.bitmapClazz, in android_media_MediaMetadataRetriever_getFrameAtTime() 324 fields.createScaledBitmapMethod, in android_media_MediaMetadataRetriever_getFrameAtTime() 414 fields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaMetadataRetriever_native_init() [all …]
|
D | android_media_MediaRecorder.cpp | 60 static fields_t fields; variable 109 env->CallStaticVoidMethod(mClass, fields.post_event, mObject, msg, ext1, ext2, NULL); in notify() 143 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(thiz, fields.context); in getMediaRecorder() 150 sp<MediaRecorder> old = (MediaRecorder*)env->GetLongField(thiz, fields.context); in setMediaRecorder() 157 env->SetLongField(thiz, fields.context, (jlong)recorder.get()); in setMediaRecorder() 334 jobject surface = env->GetObjectField(thiz, fields.surface); in android_media_MediaRecorder_prepare() 448 fields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaRecorder_native_init() 449 if (fields.context == NULL) { in android_media_MediaRecorder_native_init() 453 fields.surface = env->GetFieldID(clazz, "mSurface", "Landroid/view/Surface;"); in android_media_MediaRecorder_native_init() 454 if (fields.surface == NULL) { in android_media_MediaRecorder_native_init() [all …]
|
D | android_media_MediaScanner.cpp | 49 static fields_t fields; variable 230 return (MediaScanner *) env->GetLongField(thiz, fields.context); in getNativeScanner_l() 235 env->SetLongField(thiz, fields.context, (jlong)s); in setNativeScanner_l() 383 fields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaScanner_native_init() 384 if (fields.context == NULL) { in android_media_MediaScanner_native_init() 400 env->SetLongField(thiz, fields.context, (jlong)mp); in android_media_MediaScanner_native_setup()
|
D | android_media_MediaPlayer.cpp | 70 static fields_t fields; variable 125 env->CallStaticVoidMethod(mClass, fields.post_event, mObject, in notify() 130 env->CallStaticVoidMethod(mClass, fields.post_event, mObject, in notify() 145 MediaPlayer* const p = (MediaPlayer*)env->GetLongField(thiz, fields.context); in getMediaPlayer() 152 sp<MediaPlayer> old = (MediaPlayer*)env->GetLongField(thiz, fields.context); in setMediaPlayer() 159 env->SetLongField(thiz, fields.context, (jlong)player.get()); in setMediaPlayer() 282 …IGraphicBufferProducer * const p = (IGraphicBufferProducer*)env->GetLongField(thiz, fields.surface… in getVideoSurfaceTexture() 331 env->SetLongField(thiz, fields.surface_texture, (jlong)new_st.get()); in setVideoSurface() 829 fields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaPlayer_native_init() 830 if (fields.context == NULL) { in android_media_MediaPlayer_native_init() [all …]
|
D | android_media_SyncParams.h | 57 void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params); 60 jobject asJobject(JNIEnv *env, const fields_t& fields);
|
/frameworks/base/core/jni/ |
D | android_media_ToneGenerator.cpp | 39 static fields_t fields; variable 45 fields.context); in android_media_ToneGenerator_startTone() 58 fields.context); in android_media_ToneGenerator_stopTone() 70 fields.context); in android_media_ToneGenerator_getAudioSessionId() 80 fields.context); in android_media_ToneGenerator_release() 83 env->SetLongField(thiz, fields.context, 0); in android_media_ToneGenerator_release() 92 env->SetLongField(thiz, fields.context, 0); in android_media_ToneGenerator_native_setup() 106 env->SetLongField(thiz, fields.context, (jlong)lpToneGen); in android_media_ToneGenerator_native_setup() 108 ALOGV("ToneGenerator fields.context: %p", (void*) env->GetLongField(thiz, fields.context)); in android_media_ToneGenerator_native_setup() 116 fields.context); in android_media_ToneGenerator_native_finalize() [all …]
|
D | android_hardware_Camera.cpp | 67 static fields_t fields; variable 131 …JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env->GetLongField(thiz, fields.con… in get_native_camera() 215 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in notify() 293 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in copyAndPost() 324 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in postData() 369 jobject face = env->NewObject(mFaceClass, fields.face_constructor); in postMetadata() 372 jobject rect = env->NewObject(mRectClass, fields.rect_constructor); in postMetadata() 373 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); in postMetadata() 374 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); in postMetadata() 375 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]); in postMetadata() [all …]
|
/frameworks/base/media/jni/audioeffect/ |
D | android_media_Visualizer.cpp | 60 static fields_t fields; variable 195 fields.midPostNativeEvent, in captureCallback() 216 fields.midPostNativeEvent, in captureCallback() 237 (Visualizer*)env->GetLongField(thiz, fields.fidNativeVisualizer); in getVisualizer() 246 (Visualizer*)env->GetLongField(thiz, fields.fidNativeVisualizer); in setVisualizer() 253 env->SetLongField(thiz, fields.fidNativeVisualizer, (jlong)v.get()); in setVisualizer() 267 fields.clazzEffect = NULL; in android_media_visualizer_native_init() 276 fields.clazzEffect = (jclass)env->NewGlobalRef(clazz); in android_media_visualizer_native_init() 287 fields.midPostNativeEvent = env->GetStaticMethodID( in android_media_visualizer_native_init() 288 fields.clazzEffect, in android_media_visualizer_native_init() [all …]
|
D | android_media_AudioEffect.cpp | 53 static fields_t fields; variable 171 fields.midPostNativeEvent, in effectCallback() 191 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in getAudioEffect() 200 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in setAudioEffect() 207 env->SetLongField(thiz, fields.fidNativeAudioEffect, (jlong)ae.get()); in setAudioEffect() 221 fields.clazzEffect = NULL; in android_media_AudioEffect_native_init() 222 fields.clazzDesc = NULL; in android_media_AudioEffect_native_init() 231 fields.clazzEffect = (jclass)env->NewGlobalRef(clazz); in android_media_AudioEffect_native_init() 234 fields.midPostNativeEvent = env->GetStaticMethodID( in android_media_AudioEffect_native_init() 235 fields.clazzEffect, in android_media_AudioEffect_native_init() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | SurfaceTexture.cpp | 54 static fields_t fields; variable 83 (GLConsumer*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_setSurfaceTexture() 90 env->SetLongField(thiz, fields.surfaceTexture, (jlong)surfaceTexture.get()); in SurfaceTexture_setSurfaceTexture() 97 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_setProducer() 104 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); in SurfaceTexture_setProducer() 112 env->GetLongField(thiz, fields.frameAvailableListener); in SurfaceTexture_setFrameAvailableListener() 119 env->SetLongField(thiz, fields.frameAvailableListener, (jlong)listener.get()); in SurfaceTexture_setFrameAvailableListener() 123 return (GLConsumer*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_getSurfaceTexture() 127 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer() 210 env->CallStaticVoidMethod(mClazz, fields.postEvent, mWeakThiz); in onFrameAvailable() [all …]
|
/frameworks/base/media/jni/soundpool/ |
D | android_media_SoundPool.cpp | 34 } fields; variable 36 return (SoundPool*)env->GetLongField(thiz, fields.mNativeContext); in MusterSoundPool() 168 …env->CallStaticVoidMethod(fields.mSoundPoolClass, fields.mPostEvent, user, event.mMsg, event.mArg1… in android_media_callback() 201 env->SetLongField(thiz, fields.mNativeContext, (jlong) ap); in android_media_SoundPool_native_setup() 228 env->SetLongField(thiz, fields.mNativeContext, 0); in android_media_SoundPool_release() 315 fields.mNativeContext = env->GetFieldID(clazz, "mNativeContext", "J"); in JNI_OnLoad() 316 if (fields.mNativeContext == NULL) { in JNI_OnLoad() 321 fields.mPostEvent = env->GetStaticMethodID(clazz, "postEventFromNative", in JNI_OnLoad() 323 if (fields.mPostEvent == NULL) { in JNI_OnLoad() 330 fields.mSoundPoolClass = (jclass) env->NewGlobalRef(clazz); in JNI_OnLoad()
|
/frameworks/base/media/mca/ |
D | structgen.py | 188 self.fields = [] 236 self.fields.append(fieldtype) 265 cfields = [f.cString() for f in self.fields] 271 jgetters = [f.javaGetter() for f in self.fields] 272 jsetters = [f.javaSetter() for f in self.fields] 273 jnativesetters = [f.javaNativeSetter() for f in self.fields] 274 jnativegetters = [f.javaNativeGetter() for f in self.fields] 304 jnigetters = [f.jniGetterDefString() for f in self.fields] 305 jnisetters = [f.jniSetterDefString() for f in self.fields] 309 jnigetters = [f.jniGetterImplString() for f in self.fields] [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | ChartDataLoader.java | 51 public static Bundle buildArgs(NetworkTemplate template, AppItem app, int fields) { in buildArgs() argument 55 args.putInt(KEY_FIELDS, fields); in buildArgs() 75 final int fields = mArgs.getInt(KEY_FIELDS); in loadInBackground() local 78 return loadInBackground(template, app, fields); in loadInBackground() 86 private ChartData loadInBackground(NetworkTemplate template, AppItem app, int fields) in loadInBackground() argument 89 data.network = mSession.getHistoryForNetwork(template, fields); in loadInBackground()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.cpp | 318 unsigned long long fields[__STAT_NUMBER_FIELD]; in dump_stat_from_fd() local 337 for (cp = buffer, i = 0; i < (sizeof(fields) / sizeof(fields[0])); ++i) { in dump_stat_from_fd() 338 fields[i] = strtoull(cp, &cp, 10); in dump_stat_from_fd() 339 if (fields[i] != 0) { in dump_stat_from_fd() 355 if (fields[__STAT_IO_TICKS]) { in dump_stat_from_fd() 358 if (fields[__STAT_READ_TICKS]) { in dump_stat_from_fd() 359 unsigned long long divisor = fields[__STAT_READ_TICKS] in dump_stat_from_fd() 360 * fields[__STAT_IO_TICKS]; in dump_stat_from_fd() 362 * fields[__STAT_READ_SECTORS] in dump_stat_from_fd() 363 * fields[__STAT_IN_QUEUE] + (divisor >> 1)) in dump_stat_from_fd() [all …]
|
/frameworks/base/core/java/android/net/ |
D | INetworkStatsSession.aidl | 32 NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields); in getHistoryForNetwork() argument 37 …kStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int fields); in getHistoryForUid() argument 39 …tervalForUid(in NetworkTemplate template, int uid, int set, int tag, int fields, long start, long … in getHistoryIntervalForUid() argument
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/ |
D | JavaClass.java | 228 Field[] fields = mClass.getDeclaredFields(); in getDeclaredFields() local 230 if (fields == null) { in getDeclaredFields() 233 modelFields = new ModelField[fields.length]; in getDeclaredFields() 234 for (int i = 0; i < fields.length; i++) { in getDeclaredFields() 235 modelFields[i] = new JavaField(fields[i]); in getDeclaredFields()
|
/frameworks/base/tools/apilint/ |
D | apilint.py | 124 self.fields = [] 199 clazz.fields.append(Field(clazz, line, raw, blame)) 263 for f in clazz.fields: 351 for f in clazz.fields: 384 for f in clazz.fields: 416 creator = [ i for i in clazz.fields if i.name == "CREATOR" ] 432 for f in clazz.fields: 455 for f in clazz.fields: 540 for f in clazz.fields: 552 for f in clazz.fields: [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStatsWriter.java | 224 private static int countBooleanArray(boolean[] fields) { in countBooleanArray() argument 226 final int N = fields.length; in countBooleanArray() 228 if (fields[i]) { in countBooleanArray() 238 private static <T extends Object> int countObjectArray(T[] fields) { in countObjectArray() argument 240 final int N = fields.length; in countObjectArray() 242 if (fields[i] != null) { in countObjectArray()
|
D | HealthKeys.java | 98 final Field[] fields = clazz.getDeclaredFields(); in Constants() local 101 final int N = fields.length; in Constants() 109 final Field field = fields[i]; in Constants()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderThreadPriorityTest.java | 102 String fields[] = line.trim().split(":"); in getSchedulerGroup() local 103 if (fields.length == 3 && fields[1].equals("cpu")) return fields[2]; in getSchedulerGroup()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | MessageUtils.java | 57 Field[] fields; in findMessageNames() local 59 fields = c.getDeclaredFields(); in findMessageNames() 65 for (Field field : fields) { in findMessageNames()
|
/frameworks/rs/scriptc/ |
D | rs_value_types.rsh | 106 * Vector version of the half float type. Provides two half fields packed 116 * Vector version of the half float type. Provides three half fields packed 126 * Vector version of the half float type. Provides four half fields packed 285 * A vector of two doubles. These two double fields packed into a single 128 bit field 293 * A vector of three doubles. These three double fields packed into a single 256 bit field 301 * A vector of four doubles. These four double fields packed into a single 256 bit field 309 * A vector of two uchars. These two uchar fields packed into a single 16 bit field 317 * A vector of three uchars. These three uchar fields packed into a single 32 bit field 325 * A vector of four uchars. These four uchar fields packed into a single 32 bit field 333 * A vector of two ushorts. These two ushort fields packed into a single 32 bit field [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewDebug.java | 1033 Field[] fields = map.get(klass); in getExportedPropertyFields() local 1034 if (fields != null) { in getExportedPropertyFields() 1035 return fields; in getExportedPropertyFields() 1049 fields = foundFields.toArray(new Field[foundFields.size()]); in getExportedPropertyFields() 1050 map.put(klass, fields); in getExportedPropertyFields() 1055 return fields; in getExportedPropertyFields() 1254 final Field[] fields = getExportedPropertyFields(klass); in exportFields() local 1256 int count = fields.length; in exportFields() 1258 final Field field = fields[i]; in exportFields() 1462 Field[] fields = map.get(klass); in capturedViewGetPropertyFields() local [all …]
|