Home
last modified time | relevance | path

Searched refs:fields (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsParserTest.java30 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/
Dandroid_media_SyncParams.cpp59 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 …]
Dandroid_media_PlaybackParams.h83 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 …]
Dandroid_media_BufferingParams.h72 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 …]
Dandroid_media_VolumeShaper.h105 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 …]
Dandroid_media_MediaMetadataRetriever.cpp50 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 …]
Dandroid_media_MediaRecorder.cpp62 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 …]
Dandroid_media_SyncParams.h57 void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params);
60 jobject asJobject(JNIEnv *env, const fields_t& fields);
Dandroid_media_MediaScanner.cpp49 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/
Dandroid_media_ToneGenerator.cpp39 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 …]
Dandroid_hardware_Camera.cpp67 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/
DVisualVoicemailSmsParser.java35 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/
Dandroid_media_Visualizer.cpp60 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 …]
Dandroid_media_AudioEffect.cpp53 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/
DSurfaceTexture.cpp57 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/
Dstructgen.py188 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/
Dandroid_media_SoundPool.cpp34 } 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/
DChartDataLoader.java51 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/
DINetworkStatsSession.aidl32 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/
DC2ParamUtils.h279 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/
DJavaClass.java228 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/
DBinderThreadPriorityTest.java102 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/
DHealthStatsWriter.java224 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/
DMessageUtils.java58 Field[] fields; in findMessageNames() local
60 fields = c.getDeclaredFields(); in findMessageNames()
66 for (Field field : fields) { in findMessageNames()
/frameworks/av/media/libstagefright/codec2/tests/
DC2Param_test.cpp139 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 …]

1234