Home
last modified time | relevance | path

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

12345678

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsParserTest.java32 assertEquals("R", result.fields.getString("st")); in testParsing()
33 assertEquals("0", result.fields.getString("rc")); in testParsing()
34 assertEquals("1", result.fields.getString("srv")); in testParsing()
35 assertEquals("1", result.fields.getString("dn")); in testParsing()
36 assertEquals("1", result.fields.getString("ipt")); in testParsing()
37 assertEquals("0", result.fields.getString("spt")); in testParsing()
38 assertEquals("eg@example.com", result.fields.getString("u")); in testParsing()
39 assertEquals("1", result.fields.getString("pw")); in testParsing()
48 assertEquals("R", result.fields.getString("st")); in testParsing_TrailingSemiColon()
49 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_VolumeShaper.h107 JNIEnv *env, const fields_t &fields, jobject jshaper) { in convertJobjectToConfiguration()
111 (VolumeShaper::Configuration::Type)env->GetIntField(jshaper, fields.coTypeId)); in convertJobjectToConfiguration()
113 (int)env->GetIntField(jshaper, fields.coIdId)); in convertJobjectToConfiguration()
117 env->GetIntField(jshaper, fields.coOptionFlagsId)); in convertJobjectToConfiguration()
119 (double)env->GetDoubleField(jshaper, fields.coDurationMsId)); in convertJobjectToConfiguration()
122 env->GetIntField(jshaper, fields.coInterpolatorTypeId)); in convertJobjectToConfiguration()
125 jobject xobj = env->GetObjectField(jshaper, fields.coTimesId); in convertJobjectToConfiguration()
130 jobject yobj = env->GetObjectField(jshaper, fields.coVolumesId); in convertJobjectToConfiguration()
149 JNIEnv *env, const fields_t &fields, in convertVolumeShaperToJobject()
177 jobject jshaper = env->NewObjectA(fields.coClazz, fields.coConstructId, args); in convertVolumeShaperToJobject()
[all …]
Dandroid_media_AudioPresentation.h95 static jobject asJobject(JNIEnv *env, const fields_t& fields) { in asJobject()
96 return env->NewObject(fields.listClazz, fields.listConstructId); in asJobject()
99 static void addPresentations(JNIEnv *env, const fields_t& fields, in addPresentations()
102 ScopedLocalRef<jobject> jLabelObject = convertLabelsToMap(env, fields, ap.mLabels); in addPresentations()
107 fields.ulocaleClazz, fields.ulocaleConstructID, jLanguage.get())); in addPresentations()
108 ScopedLocalRef<jobject> jValueObj(env, env->NewObject(fields.clazz, fields.constructID, in addPresentations()
118 env->CallBooleanMethod(presentationsJObj, fields.listAddId, jValueObj.get()); in addPresentations()
125 JNIEnv *env, const fields_t& fields, const std::map<std::string, std::string> &labels) { in convertLabelsToMap()
128 fields.hashMapClazz, fields.hashMapConstructID)); in convertLabelsToMap()
137 fields.ulocaleClazz, in convertLabelsToMap()
[all …]
Dandroid_media_BufferingParams.h60 void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) { in fillFromJobject()
62 env->GetIntField(params, fields.initial_mark_ms); in fillFromJobject()
64 env->GetIntField(params, fields.resume_playback_mark_ms); in fillFromJobject()
67 jobject asJobject(JNIEnv *env, const fields_t& fields) { in asJobject()
68 jobject params = env->NewObject(fields.clazz, fields.constructID); in asJobject()
72 env->SetIntField(params, fields.initial_mark_ms, (jint)settings.mInitialMarkMs); in asJobject()
73 … env->SetIntField(params, fields.resume_playback_mark_ms, (jint)settings.mResumePlaybackMarkMs); in asJobject()
Dandroid_media_MediaMetadataRetriever.cpp54 static fields_t fields; variable
78 …MediaMetadataRetriever* retriever = (MediaMetadataRetriever*) env->GetLongField(thiz, fields.conte… in getRetriever()
94 env->SetLongField(thiz, fields.context, (jlong) retriever.get()); in setRetriever()
288 fields.bitmapClazz, in getBitmapFromVideoFrame()
289 fields.createBitmapMethod, in getBitmapFromVideoFrame()
330 jobject scaledBitmap = env->CallStaticObjectMethod(fields.bitmapClazz, in getBitmapFromVideoFrame()
331 fields.createScaledBitmapMethod, in getBitmapFromVideoFrame()
350 ScopedLocalRef<jobject> inConfig(env, env->GetObjectField(options, fields.inPreferredConfig)); in getColorFormat()
362 env->SetObjectField(options, fields.outActualConfig, config.get()); in setOutConfig()
507 jobject arrayList = env->NewObject(fields.arrayListClazz, fields.arrayListInit); in android_media_MediaMetadataRetriever_getFrameAtIndex()
[all …]
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DCsvParser.java51 void onLine(int lineNumber, ArrayList<String> fields) throws ParseException; in onLine() argument
64 ArrayList<String> fields = new ArrayList<String>(); in parse() local
91 fields.add(new String(buf, fieldStart, escapeIndex-fieldStart)); in parse()
96 fields.add(new String(buf, fieldStart, index-fieldStart)); in parse()
99 if (fields.size() > 1 || (fields.size() == 1 && fields.get(0).length() > 0)) { in parse()
100 processor.onLine(lineNumber, fields); in parse()
102 fields = new ArrayList<String>(); in parse()
122 fields.add(new String(buf, fieldStart, escapeIndex-fieldStart)); in parse()
135 fields.add(new String(buf, fieldStart, index-fieldStart)); in parse()
165 fields.add(new String(buf, 0, readPos)); in parse()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DStoragedUidIoStatsReader.java82 String[] fields = TextUtils.split(line, " "); in readAbsolute() local
83 if (fields.length != 11) { in readAbsolute()
88 final String uidStr = fields[0]; in readAbsolute()
89 final int uid = Integer.parseInt(fields[0], 10); in readAbsolute()
90 final long fgCharsRead = Long.parseLong(fields[1], 10); in readAbsolute()
91 final long fgCharsWrite = Long.parseLong(fields[2], 10); in readAbsolute()
92 final long fgBytesRead = Long.parseLong(fields[3], 10); in readAbsolute()
93 final long fgBytesWrite = Long.parseLong(fields[4], 10); in readAbsolute()
94 final long bgCharsRead = Long.parseLong(fields[5], 10); in readAbsolute()
95 final long bgCharsWrite = Long.parseLong(fields[6], 10); in readAbsolute()
[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/tools/codegen/src/com/android/codegen/
DGenerators.kt15 val consts = classAst.fields.filter { in <lambda>()
63 fields.forEachApply { in ClassPrinter()
137 fields.forEachApply { in generateWithers()
147 fields.forEachTrimmingTrailingComma { in generateWithers()
172 fields.forEachApply { in generateCopyConstructor()
195 fields.forEachApply { in generateBuildUpon()
233 fields.forEachApply { in ClassPrinter()
240 val requiredFields = fields.filter { !it.hasDefault } in ClassPrinter()
243 fields = requiredFields, in ClassPrinter()
312 fields.forEachApply { in generateBuilderSetters()
[all …]
/frameworks/base/core/jni/
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()
300 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in copyAndPost()
331 env->CallStaticVoidMethod(mCameraJClass, fields.post_event, in postData()
399 jobject face = env->NewObject(mFaceClass, fields.face_constructor); in postMetadata()
402 jobject rect = env->NewObject(mRectClass, fields.rect_constructor); in postMetadata()
403 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); in postMetadata()
404 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); in postMetadata()
405 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]); in postMetadata()
[all …]
Dandroid_graphics_SurfaceTexture.cpp59 static fields_t fields; variable
88 (SurfaceTexture*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_setSurfaceTexture()
95 env->SetLongField(thiz, fields.surfaceTexture, (jlong)surfaceTexture.get()); in SurfaceTexture_setSurfaceTexture()
102 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_setProducer()
109 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); in SurfaceTexture_setProducer()
117 env->GetLongField(thiz, fields.frameAvailableListener); in SurfaceTexture_setFrameAvailableListener()
124 env->SetLongField(thiz, fields.frameAvailableListener, (jlong)listener.get()); in SurfaceTexture_setFrameAvailableListener()
128 return (SurfaceTexture*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_getSurfaceTexture()
132 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer()
192 env->CallStaticVoidMethod(mClazz, fields.postEvent, mWeakThiz); in onFrameAvailable()
[all …]
Dandroid_media_ToneGenerator.cpp39 static fields_t fields; variable
43 reinterpret_cast<ToneGenerator *>(env->GetLongField(thiz, fields.context))); in getNativeToneGenerator()
54 reinterpret_cast<ToneGenerator *>(env->GetLongField(thiz, fields.context))); in setNativeToneGenerator()
63 env->SetLongField(thiz, fields.context, (jlong)toneGen.get()); in setNativeToneGenerator()
129 fields.context = GetFieldIDOrDie(env, clazz, "mNativeContext", "J"); in register_android_media_ToneGenerator()
130 ALOGV("register_android_media_ToneGenerator ToneGenerator fields.context: %p", fields.context); in register_android_media_ToneGenerator()
/frameworks/base/media/jni/audioeffect/
Dandroid_media_Visualizer.cpp66 static fields_t fields; variable
207 fields.midPostNativeEvent, in captureCallback()
227 fields.midPostNativeEvent, in captureCallback()
253 (Visualizer*)env->GetLongField(thiz, fields.fidNativeVisualizer); in getVisualizer()
262 (Visualizer*)env->GetLongField(thiz, fields.fidNativeVisualizer); in setVisualizer()
269 env->SetLongField(thiz, fields.fidNativeVisualizer, (jlong)v.get()); in setVisualizer()
283 fields.clazzEffect = NULL; in android_media_visualizer_native_init()
292 fields.clazzEffect = (jclass)env->NewGlobalRef(clazz); in android_media_visualizer_native_init()
303 fields.midPostNativeEvent = env->GetStaticMethodID( in android_media_visualizer_native_init()
304 fields.clazzEffect, in android_media_visualizer_native_init()
[all …]
Dandroid_media_AudioEffect.cpp59 static fields_t fields; variable
182 fields.midPostNativeEvent, in effectCallback()
207 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in getAudioEffect()
216 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in setAudioEffect()
223 env->SetLongField(thiz, fields.fidNativeAudioEffect, (jlong)ae.get()); in setAudioEffect()
237 fields.clazzEffect = NULL; in android_media_AudioEffect_native_init()
246 fields.clazzEffect = (jclass)env->NewGlobalRef(clazz); in android_media_AudioEffect_native_init()
249 fields.midPostNativeEvent = env->GetStaticMethodID( in android_media_AudioEffect_native_init()
250 fields.clazzEffect, in android_media_AudioEffect_native_init()
252 if (fields.midPostNativeEvent == NULL) { in android_media_AudioEffect_native_init()
[all …]
/frameworks/proto_logging/stats/stats_log_api_gen/
DCollation.cpp55 fields(that.fields), in AtomDecl()
286 map<int, const FieldDescriptor*> fields; in collate_atom() local
289 fields[field->number()] = field; in collate_atom()
294 for (map<int, const FieldDescriptor*>::const_iterator it = fields.begin(); it != fields.end(); in collate_atom()
311 for (map<int, const FieldDescriptor*>::const_iterator it = fields.begin(); it != fields.end(); in collate_atom()
349 for (map<int, const FieldDescriptor*>::const_iterator it = fields.begin(); it != fields.end(); in collate_atom()
365 for (map<int, const FieldDescriptor*>::const_iterator it = fields.begin(); it != fields.end(); in collate_atom()
391 atomDecl->fields.push_back(atField); in collate_atom()
405 map<int, const FieldDescriptor*> fields; in get_non_chained_node() local
408 fields[field->number()] = field; in get_non_chained_node()
[all …]
Drust_writer.cpp124 for (int i = 0; i < atomDecl.fields.size(); i++) { in write_rust_method_signature()
125 const AtomField &atomField = atomDecl.fields[i]; in write_rust_method_signature()
128 for (int j = 0; j < attributionDecl.fields.size(); j++) { in write_rust_method_signature()
129 const AtomField& chainField = attributionDecl.fields[j]; in write_rust_method_signature()
206 for (const AtomField& field : atomDecl->fields) { in write_rust_atom_constant_values()
280 const AtomField& field = atomDecl.fields[argIndex - 1]; in write_annotations()
315 for (int i = 0; i < atomDecl.fields.size(); i++) { in write_rust_method_body()
316 const AtomField& atomField = atomDecl.fields[i]; in write_rust_method_body()
321 const char* uidName = attributionDecl.fields.front().name.c_str(); in write_rust_method_body()
322 const char* tagName = attributionDecl.fields.back().name.c_str(); in write_rust_method_body()
[all …]
Djava_writer_q.cpp68 for (const auto& chainField : attributionDecl.fields) { in write_java_methods_q_schema()
121 const char* uidName = attributionDecl.fields.front().name.c_str(); in write_java_methods_q_schema()
122 const char* tagName = attributionDecl.fields.back().name.c_str(); in write_java_methods_q_schema()
126 java_type_name(attributionDecl.fields.front().javaType)); in write_java_methods_q_schema()
130 java_type_name(attributionDecl.fields.back().javaType)); in write_java_methods_q_schema()
249 const char* uidName = attributionDecl.fields.front().name.c_str(); in write_java_methods_q_schema()
250 const char* tagName = attributionDecl.fields.back().name.c_str(); in write_java_methods_q_schema()
315 for (const auto& chainField : attributionDecl.fields) { in write_java_helpers_for_q_schema_methods()
320 const char* uidName = attributionDecl.fields.front().name.c_str(); in write_java_helpers_for_q_schema_methods()
321 const char* tagName = attributionDecl.fields.back().name.c_str(); in write_java_helpers_for_q_schema_methods()
[all …]
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DInspectionCompanionGenerator.java147 final Map<Property, FieldSpec> fields = generateIdFieldSpecs(properties); in generateTypeSpec() local
162 .addFields(properties.stream().map(fields::get).collect(Collectors.toList())) in generateTypeSpec()
163 .addMethod(generateMapProperties(properties, fields)) in generateTypeSpec()
164 .addMethod(generateReadProperties(properties, fields, model.getClassName())); in generateTypeSpec()
177 final Map<Property, FieldSpec> fields = new HashMap<>(); in generateIdFieldSpecs() local
187 fields.put(property, FieldSpec in generateIdFieldSpecs()
193 return fields; in generateIdFieldSpecs()
217 @NonNull Map<Property, FieldSpec> fields) { in generateMapProperties() argument
228 properties.forEach(p -> mappingVariables.newName(fields.get(p).name)); in generateMapProperties()
231 final FieldSpec field = fields.get(property); in generateMapProperties()
[all …]
/frameworks/native/cmds/lshal/
DTextTable.cpp42 for (size_t i = 0; i < row.fields().size(); ++i) { in dump()
47 if (i < row.fields().size() - 1) { in dump()
50 out << row.fields()[i]; in dump()
59 computeWidth(row.fields()); in addAll()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsPersistenceTest.java58 final Field[] fields = stats.getClass().getDeclaredFields(); in testUsageStatsFields() local
59 for (Field field : fields) { in testUsageStatsFields()
95 final Field[] fields = event.getClass().getDeclaredFields(); in testUsageEventsFields() local
96 for (Field field : fields) { in testUsageEventsFields()
/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/native/libs/nativedisplay/surfacetexture/
Dsurface_texture.cpp47 static fields_t fields; variable
55 fields.surfaceTexture = env->GetFieldID(clazz, in SurfaceTexture_classInit()
57 if (fields.surfaceTexture == NULL) { in SurfaceTexture_classInit()
61 fields.producer = env->GetFieldID(clazz, in SurfaceTexture_classInit()
63 if (fields.producer == NULL) { in SurfaceTexture_classInit()
96 return (SurfaceTexture*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_getSurfaceTexture()
104 return (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_getProducer()
/frameworks/proto_logging/stats/
Datom_field_options.proto27 // ONE exclusive state field, and any number of primary key fields. For example, message
36 // If the atom has 2 or more primary fields, it means the combination of the
37 // primary fields are the primary key.
68 // Used on simple proto fields. Do not use on attribution chains.
97 // Log fields as their actual types e.g., all primary data types.
98 // Or fields that are hardcoded in stats_log_api_gen tool e.g., AttributionNode
100 // Log fields in their proto binary format. These fields will not be parsed in statsd
108 // Flags to decorate the uid fields in an atom.

12345678