/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | VisualVoicemailSmsParserTest.java | 30 assertEquals("R", result.fields.getString("st")); in testParsing() 31 assertEquals("0", result.fields.getString("rc")); in testParsing() 32 assertEquals("1", result.fields.getString("srv")); in testParsing() 33 assertEquals("1", result.fields.getString("dn")); in testParsing() 34 assertEquals("1", result.fields.getString("ipt")); in testParsing() 35 assertEquals("0", result.fields.getString("spt")); in testParsing() 36 assertEquals("eg@example.com", result.fields.getString("u")); in testParsing() 37 assertEquals("1", result.fields.getString("pw")); in testParsing() 46 assertEquals("R", result.fields.getString("st")); in testParsing_TrailingSemiColon() 47 assertEquals("0", result.fields.getString("rc")); in testParsing_TrailingSemiColon() [all …]
|
/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_BufferingParams.h | 72 void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) { in fillFromJobject() 74 (BufferingMode)env->GetIntField(params, fields.initial_buffering_mode); in fillFromJobject() 76 (BufferingMode)env->GetIntField(params, fields.rebuffering_mode); in fillFromJobject() 78 env->GetIntField(params, fields.initial_watermark_ms); in fillFromJobject() 80 env->GetIntField(params, fields.initial_watermark_kb); in fillFromJobject() 82 env->GetIntField(params, fields.rebuffering_watermark_low_ms); in fillFromJobject() 84 env->GetIntField(params, fields.rebuffering_watermark_high_ms); in fillFromJobject() 86 env->GetIntField(params, fields.rebuffering_watermark_low_kb); in fillFromJobject() 88 env->GetIntField(params, fields.rebuffering_watermark_high_kb); in fillFromJobject() 91 jobject asJobject(JNIEnv *env, const fields_t& fields) { in asJobject() [all …]
|
D | android_media_VolumeShaper.h | 105 JNIEnv *env, const fields_t &fields, jobject jshaper) { in convertJobjectToConfiguration() 109 (VolumeShaper::Configuration::Type)env->GetIntField(jshaper, fields.coTypeId)); in convertJobjectToConfiguration() 111 (int)env->GetIntField(jshaper, fields.coIdId)); in convertJobjectToConfiguration() 115 env->GetIntField(jshaper, fields.coOptionFlagsId)); in convertJobjectToConfiguration() 117 (double)env->GetDoubleField(jshaper, fields.coDurationMsId)); in convertJobjectToConfiguration() 120 env->GetIntField(jshaper, fields.coInterpolatorTypeId)); in convertJobjectToConfiguration() 123 jobject xobj = env->GetObjectField(jshaper, fields.coTimesId); in convertJobjectToConfiguration() 128 jobject yobj = env->GetObjectField(jshaper, fields.coVolumesId); in convertJobjectToConfiguration() 147 JNIEnv *env, const fields_t &fields, in convertVolumeShaperToJobject() 175 jobject jshaper = env->NewObjectA(fields.coClazz, fields.coConstructId, args); in convertVolumeShaperToJobject() [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 | 62 static fields_t fields; variable 111 env->CallStaticVoidMethod(mClass, fields.post_event, mObject, msg, ext1, ext2, NULL); in notify() 145 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(thiz, fields.context); in getMediaRecorder() 152 sp<MediaRecorder> old = (MediaRecorder*)env->GetLongField(thiz, fields.context); in setMediaRecorder() 159 env->SetLongField(thiz, fields.context, (jlong)recorder.get()); in setMediaRecorder() 406 jobject surface = env->GetObjectField(thiz, fields.surface); in android_media_MediaRecorder_prepare() 548 fields.context = env->GetFieldID(clazz, "mNativeContext", "J"); in android_media_MediaRecorder_native_init() 549 if (fields.context == NULL) { in android_media_MediaRecorder_native_init() 553 fields.surface = env->GetFieldID(clazz, "mSurface", "Landroid/view/Surface;"); in android_media_MediaRecorder_native_init() 554 if (fields.surface == NULL) { in android_media_MediaRecorder_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);
|
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()
|
/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 134 …JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env->GetLongField(thiz, fields.con… in get_native_camera() 218 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in notify() 296 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in copyAndPost() 327 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in postData() 395 jobject face = env->NewObject(mFaceClass, fields.face_constructor); in postMetadata() 398 jobject rect = env->NewObject(mRectClass, fields.rect_constructor); in postMetadata() 399 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); in postMetadata() 400 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); in postMetadata() 401 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]); in postMetadata() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | VisualVoicemailSmsParser.java | 35 public final Bundle fields; field in VisualVoicemailSmsParser.WrappedMessageData 39 return "WrappedMessageData [type=" + prefix + " fields=" + fields + "]"; in toString() 44 fields = keyValues; in WrappedMessageData() 67 Bundle fields = parseSmsBody(smsBody.substring(eventTypeEnd + 1)); in parse() local 68 if (fields == null) { in parse() 71 return new WrappedMessageData(eventType, fields); in parse() 135 Bundle fields = parseSmsBody(smsBody.substring(eventTypeEnd + 1)); in parseAlternativeFormat() local 136 if (fields == null) { in parseAlternativeFormat() 139 return new WrappedMessageData(eventType, fields); in parseAlternativeFormat()
|
/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 172 fields.midPostNativeEvent, in effectCallback() 192 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in getAudioEffect() 201 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in setAudioEffect() 208 env->SetLongField(thiz, fields.fidNativeAudioEffect, (jlong)ae.get()); in setAudioEffect() 222 fields.clazzEffect = NULL; in android_media_AudioEffect_native_init() 223 fields.clazzDesc = NULL; in android_media_AudioEffect_native_init() 232 fields.clazzEffect = (jclass)env->NewGlobalRef(clazz); in android_media_AudioEffect_native_init() 235 fields.midPostNativeEvent = env->GetStaticMethodID( in android_media_AudioEffect_native_init() 236 fields.clazzEffect, in android_media_AudioEffect_native_init() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | SurfaceTexture.cpp | 57 static fields_t fields; variable 86 (GLConsumer*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_setSurfaceTexture() 93 env->SetLongField(thiz, fields.surfaceTexture, (jlong)surfaceTexture.get()); in SurfaceTexture_setSurfaceTexture() 100 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_setProducer() 107 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); in SurfaceTexture_setProducer() 115 env->GetLongField(thiz, fields.frameAvailableListener); in SurfaceTexture_setFrameAvailableListener() 122 env->SetLongField(thiz, fields.frameAvailableListener, (jlong)listener.get()); in SurfaceTexture_setFrameAvailableListener() 126 return (GLConsumer*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_getSurfaceTexture() 130 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer() 213 env->CallStaticVoidMethod(mClazz, fields.postEvent, mWeakThiz); in onFrameAvailable() [all …]
|
/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/media/jni/soundpool/ |
D | android_media_SoundPool.cpp | 34 } fields; variable 36 return (SoundPool*)env->GetLongField(thiz, fields.mNativeContext); in MusterSoundPool() 177 …env->CallStaticVoidMethod(fields.mSoundPoolClass, fields.mPostEvent, user, event.mMsg, event.mArg1… in android_media_callback() 210 env->SetLongField(thiz, fields.mNativeContext, (jlong) ap); in android_media_SoundPool_native_setup() 237 env->SetLongField(thiz, fields.mNativeContext, 0); in android_media_SoundPool_release() 328 fields.mNativeContext = env->GetFieldID(clazz, "mNativeContext", "J"); in JNI_OnLoad() 329 if (fields.mNativeContext == NULL) { in JNI_OnLoad() 334 fields.mPostEvent = env->GetStaticMethodID(clazz, "postEventFromNative", in JNI_OnLoad() 336 if (fields.mPostEvent == NULL) { in JNI_OnLoad() 343 fields.mSoundPoolClass = (jclass) env->NewGlobalRef(clazz); in JNI_OnLoad()
|
/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/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/av/media/libstagefright/codec2/vndk/include/util/ |
D | C2ParamUtils.h | 279 void addC2Params(std::list<const C2FieldDescriptor> &fields, _C2Tuple<T, Params...> *) in addC2Params() argument 283 fields.insert(fields.end(), T::fieldList); in addC2Params() 284 addC2Params(fields, (_C2Tuple<Params...> *)nullptr); in addC2Params() 290 std::list<const C2FieldDescriptor> fields; in describeC2Params() local 291 addC2Params(fields, (_C2Tuple<Params...> *)nullptr); in describeC2Params() 292 return fields; in describeC2Params()
|
/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/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/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()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | MessageUtils.java | 58 Field[] fields; in findMessageNames() local 60 fields = c.getDeclaredFields(); in findMessageNames() 66 for (Field field : fields) { in findMessageNames()
|
/frameworks/av/media/libstagefright/codec2/tests/ |
D | C2Param_test.cpp | 139 std::vector<const C2FieldDescriptor> fields = GetParam(), expected = C2TestStruct_A::fieldList; in TEST_P() local 142 EXPECT_EQ(FD::INT32, fields[0].type()); in TEST_P() 143 EXPECT_STREQ("s32", fields[0].name()); in TEST_P() 144 EXPECT_EQ(1u, fields[0].length()); in TEST_P() 145 EXPECT_EQ(_C2FieldId(0, 4), fields[0]._mFieldId); in TEST_P() 147 EXPECT_EQ(expected[0], fields[0]); in TEST_P() 148 EXPECT_EQ(expected[1], fields[1]); in TEST_P() 149 EXPECT_EQ(expected[2], fields[2]); in TEST_P() 150 EXPECT_EQ(expected[3], fields[3]); in TEST_P() 151 EXPECT_EQ(expected[4], fields[4]); in TEST_P() [all …]
|