Home
last modified time | relevance | path

Searched refs:fieldId (Results 1 – 25 of 207) sorted by relevance

123456789

/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java227 public void write(long fieldId, double val) { in write() argument
229 final int id = (int)fieldId; in write()
231 switch ((int)((fieldId & (FIELD_TYPE_MASK | FIELD_COUNT_MASK)) >> FIELD_TYPE_SHIFT)) { in write()
347 + getFieldIdString(fieldId)); in write()
362 public void write(long fieldId, float val) { in write() argument
364 final int id = (int)fieldId; in write()
366 switch ((int)((fieldId & (FIELD_TYPE_MASK | FIELD_COUNT_MASK)) >> FIELD_TYPE_SHIFT)) { in write()
482 + getFieldIdString(fieldId)); in write()
497 public void write(long fieldId, int val) { in write() argument
499 final int id = (int)fieldId; in write()
[all …]
DProtoInputStream.java263 public boolean nextField(long fieldId) throws IOException { in nextField() argument
264 if (nextField() == (int) fieldId) { in nextField()
278 public double readDouble(long fieldId) throws IOException { in readDouble() argument
280 assertFieldNumber(fieldId); in readDouble()
281 checkPacked(fieldId); in readDouble()
284 switch ((int) ((fieldId & FIELD_TYPE_MASK) in readDouble()
292 "Requested field id (" + getFieldIdString(fieldId) in readDouble()
307 public float readFloat(long fieldId) throws IOException { in readFloat() argument
309 assertFieldNumber(fieldId); in readFloat()
310 checkPacked(fieldId); in readFloat()
[all …]
DProtoUtils.java34 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument
36 final long aggStatsToken = proto.start(fieldId); in toAggStatsProto()
48 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument
50 toAggStatsProto(proto, fieldId, min, average, max, 0, 0); in toAggStatsProto()
56 public static void toDuration(ProtoOutputStream proto, long fieldId, long startMs, long endMs) { in toDuration() argument
57 final long token = proto.start(fieldId); in toDuration()
66 public static void writeBitWiseFlagsToProtoEnum(ProtoOutputStream proto, long fieldId, in writeBitWiseFlagsToProtoEnum() argument
75 proto.write(fieldId, protoEnums[i]); in writeBitWiseFlagsToProtoEnum()
79 proto.write(fieldId, protoEnums[i]); in writeBitWiseFlagsToProtoEnum()
DProtoStream.java500 public static @NonNull String getFieldIdString(long fieldId) { in getFieldIdString() argument
501 final long fieldCount = fieldId & FIELD_COUNT_MASK; in getFieldIdString()
510 final long fieldType = fieldId & FIELD_TYPE_MASK; in getFieldIdString()
516 return countString + typeString + " tag=" + ((int) fieldId) in getFieldIdString()
517 + " fieldId=0x" + Long.toHexString(fieldId); in getFieldIdString()
/frameworks/base/tools/incident_report/
Dgeneric_message.cpp28 GenericMessage::addInt32(int32_t fieldId, uint32_t value) in addInt32() argument
33 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt32()
37 GenericMessage::addInt64(int32_t fieldId, uint64_t value) in addInt64() argument
42 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt64()
46 GenericMessage::addMessage(int32_t fieldId) in addMessage() argument
52 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addMessage()
57 GenericMessage::addString(int32_t fieldId, const string& value) in addString() argument
62 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addString()
66 GenericMessage::find(int fieldId) const in find()
68 return mNodes.equal_range(fieldId); in find()
Dgeneric_message.h56 void addInt32(int32_t fieldId, uint32_t value);
57 void addInt64(int32_t fieldId, uint64_t value);
58 GenericMessage* addMessage(int32_t fieldId);
59 void addString(int32_t fieldId, const string& value);
64 const_iterator_pair find(int fieldId) const;
Dmain.cpp45 read_length_delimited(CodedInputStream* in, uint32 fieldId, Descriptor const* descriptor, in read_length_delimited() argument
54 FieldDescriptor const* field = descriptor->FindFieldByNumber(fieldId); in read_length_delimited()
58 GenericMessage* child = message->addMessage(fieldId); in read_length_delimited()
69 message->addString(fieldId, str); in read_length_delimited()
97 int fieldId = WireFormatLite::GetTagFieldNumber(tag); in read_message() local
101 message->addInt64(fieldId, value64); in read_message()
110 message->addInt64(fieldId, value64); in read_message()
118 if (!read_length_delimited(in, fieldId, descriptor, message)) { in read_message()
126 message->addInt32(fieldId, value32); in read_message()
230 int fieldId = field->number(); in print_message() local
[all …]
/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp61 ProtoOutputStream::internalWrite(uint64_t fieldId, T val, const char* typeName) in internalWrite() argument
64 const uint32_t id = (uint32_t)fieldId; in internalWrite()
65 switch (fieldId & FIELD_TYPE_MASK) { in internalWrite()
99 (fieldId & FIELD_TYPE_MASK) >> FIELD_TYPE_SHIFT, typeName); in internalWrite()
104 ProtoOutputStream::write(uint64_t fieldId, double val) in write() argument
106 return internalWrite(fieldId, val, "double"); in write()
111 ProtoOutputStream::write(uint64_t fieldId, float val) in write() argument
113 return internalWrite(fieldId, val, "float"); in write()
117 ProtoOutputStream::write(uint64_t fieldId, int val) in write() argument
119 return internalWrite(fieldId, val, "int"); in write()
[all …]
/frameworks/base/core/java/com/android/internal/util/dump/
DDualDumpOutputStream.java157 public void write(@NonNull String fieldName, long fieldId, double val) { in write() argument
159 mProtoStream.write(fieldId, val); in write()
165 public void write(@NonNull String fieldName, long fieldId, boolean val) { in write() argument
167 mProtoStream.write(fieldId, val); in write()
173 public void write(@NonNull String fieldName, long fieldId, int val) { in write() argument
175 mProtoStream.write(fieldId, val); in write()
181 public void write(@NonNull String fieldName, long fieldId, float val) { in write() argument
183 mProtoStream.write(fieldId, val); in write()
189 public void write(@NonNull String fieldName, long fieldId, byte[] val) { in write() argument
191 mProtoStream.write(fieldId, val); in write()
[all …]
/frameworks/base/libs/protoutil/include/android/util/
DProtoOutputStream.h99 bool write(uint64_t fieldId, double val);
100 bool write(uint64_t fieldId, float val);
101 bool write(uint64_t fieldId, int val);
102 bool write(uint64_t fieldId, long val);
103 bool write(uint64_t fieldId, long long val);
104 bool write(uint64_t fieldId, bool val);
105 bool write(uint64_t fieldId, std::string val);
106 bool write(uint64_t fieldId, const char* val, size_t size);
113 uint64_t start(uint64_t fieldId);
172 bool internalWrite(uint64_t fieldId, T val, const char* typeName);
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamBoolTest.java101 final long fieldId = fieldFlags | ((long) 130 & 0x0ffffffffL); in testReadCompat() local
114 case (int) fieldId: in testReadCompat()
115 result = pi.readBoolean(fieldId); in testReadCompat()
223 final long fieldId = fieldFlags | ((long) 131 & 0x0ffffffffL); in testRepeatedCompat() local
237 case (int) fieldId: in testRepeatedCompat()
238 result[index++] = pi.readBoolean(fieldId); in testRepeatedCompat()
344 final long fieldId = fieldFlags | ((long) 132 & 0x0ffffffffL); in testPackedCompat() local
358 case (int) fieldId: in testPackedCompat()
359 result[index++] = pi.readBoolean(fieldId); in testPackedCompat()
DProtoInputStreamEnumTest.java124 final long fieldId = fieldFlags | ((long) 160 & 0x0ffffffffL); in testReadCompat() local
136 case (int) fieldId: in testReadCompat()
137 result = pi.readInt(fieldId); in testReadCompat()
264 final long fieldId = fieldFlags | ((long) 161 & 0x0ffffffffL); in testRepeatedCompat() local
277 case (int) fieldId: in testRepeatedCompat()
278 result[index++] = pi.readInt(fieldId); in testRepeatedCompat()
414 final long fieldId = fieldFlags | ((long) 162 & 0x0ffffffffL); in testPackedCompat() local
427 case (int) fieldId: in testPackedCompat()
428 result[index++] = pi.readInt(fieldId); in testPackedCompat()
DProtoInputStreamFixed32Test.java122 final long fieldId = fieldFlags | ((long) 90 & 0x0ffffffffL); in testReadCompat() local
135 case (int) fieldId: in testReadCompat()
136 result = pi.readInt(fieldId); in testReadCompat()
257 final long fieldId = fieldFlags | ((long) 91 & 0x0ffffffffL); in testRepeatedCompat() local
271 case (int) fieldId: in testRepeatedCompat()
272 result[index++] = pi.readInt(fieldId); in testRepeatedCompat()
391 final long fieldId = fieldFlags | ((long) 92 & 0x0ffffffffL); in testPackedCompat() local
405 case (int) fieldId: in testPackedCompat()
406 result[index++] = pi.readInt(fieldId); in testPackedCompat()
DProtoInputStreamSFixed32Test.java122 final long fieldId = fieldFlags | ((long) 110 & 0x0ffffffffL); in testReadCompat() local
135 case (int) fieldId: in testReadCompat()
136 result = pi.readInt(fieldId); in testReadCompat()
257 final long fieldId = fieldFlags | ((long) 111 & 0x0ffffffffL); in testRepeatedCompat() local
271 case (int) fieldId: in testRepeatedCompat()
272 result[index++] = pi.readInt(fieldId); in testRepeatedCompat()
391 final long fieldId = fieldFlags | ((long) 112 & 0x0ffffffffL); in testPackedCompat() local
405 case (int) fieldId: in testPackedCompat()
406 result[index++] = pi.readInt(fieldId); in testPackedCompat()
DProtoInputStreamUInt32Test.java124 final long fieldId = fieldFlags | ((long) 50 & 0x0ffffffffL); in testReadCompat() local
137 case (int) fieldId: in testReadCompat()
138 result = pi.readInt(fieldId); in testReadCompat()
262 final long fieldId = fieldFlags | ((long) 51 & 0x0ffffffffL); in testRepeatedCompat() local
276 case (int) fieldId: in testRepeatedCompat()
277 result[index++] = pi.readInt(fieldId); in testRepeatedCompat()
408 final long fieldId = fieldFlags | ((long) 52 & 0x0ffffffffL); in testPackedCompat() local
422 case (int) fieldId: in testPackedCompat()
423 result[index++] = pi.readInt(fieldId); in testPackedCompat()
DProtoInputStreamSInt32Test.java122 final long fieldId = fieldFlags | ((long) 70 & 0x0ffffffffL); in testReadCompat() local
135 case (int) fieldId: in testReadCompat()
136 result = pi.readInt(fieldId); in testReadCompat()
257 final long fieldId = fieldFlags | ((long) 71 & 0x0ffffffffL); in testRepeatedCompat() local
271 case (int) fieldId: in testRepeatedCompat()
272 result[index++] = pi.readInt(fieldId); in testRepeatedCompat()
391 final long fieldId = fieldFlags | ((long) 72 & 0x0ffffffffL); in testPackedCompat() local
405 case (int) fieldId: in testPackedCompat()
406 result[index++] = pi.readInt(fieldId); in testPackedCompat()
DProtoInputStreamInt32Test.java124 final long fieldId = fieldFlags | ((long) 30 & 0x0ffffffffL); in testReadCompat() local
137 case (int) fieldId: in testReadCompat()
138 result = pi.readInt(fieldId); in testReadCompat()
263 final long fieldId = fieldFlags | ((long) 31 & 0x0ffffffffL); in testRepeatedCompat() local
277 case (int) fieldId: in testRepeatedCompat()
278 result[index++] = pi.readInt(fieldId); in testRepeatedCompat()
409 final long fieldId = fieldFlags | ((long) 32 & 0x0ffffffffL); in testPackedCompat() local
423 case (int) fieldId: in testPackedCompat()
424 result[index++] = pi.readInt(fieldId); in testPackedCompat()
DProtoInputStreamSInt64Test.java142 final long fieldId = fieldFlags | ((long) 80 & 0x0ffffffffL); in testReadCompat() local
155 case (int) fieldId: in testReadCompat()
156 result = pi.readLong(fieldId); in testReadCompat()
305 final long fieldId = fieldFlags | ((long) 81 & 0x0ffffffffL); in testRepeatedCompat() local
319 case (int) fieldId: in testRepeatedCompat()
320 result[index++] = pi.readLong(fieldId); in testRepeatedCompat()
466 final long fieldId = fieldFlags | ((long) 82 & 0x0ffffffffL); in testPackedCompat() local
480 case (int) fieldId: in testPackedCompat()
481 result[index++] = pi.readLong(fieldId); in testPackedCompat()
DProtoInputStreamInt64Test.java145 final long fieldId = fieldFlags | ((long) 40 & 0x0ffffffffL); in testReadCompat() local
158 case (int) fieldId: in testReadCompat()
159 result = pi.readLong(fieldId); in testReadCompat()
312 final long fieldId = fieldFlags | ((long) 41 & 0x0ffffffffL); in testRepeatedCompat() local
326 case (int) fieldId: in testRepeatedCompat()
327 result[index++] = pi.readLong(fieldId); in testRepeatedCompat()
489 final long fieldId = fieldFlags | ((long) 42 & 0x0ffffffffL); in testPackedCompat() local
503 case (int) fieldId: in testPackedCompat()
504 result[index++] = pi.readLong(fieldId); in testPackedCompat()
DProtoInputStreamFixed64Test.java147 final long fieldId = fieldFlags | ((long) 100 & 0x0ffffffffL); in testReadCompat() local
160 case (int) fieldId: in testReadCompat()
161 result = pi.readLong(fieldId); in testReadCompat()
320 final long fieldId = fieldFlags | ((long) 101 & 0x0ffffffffL); in testRepeatedCompat() local
334 case (int) fieldId: in testRepeatedCompat()
335 result[index++] = pi.readLong(fieldId); in testRepeatedCompat()
491 final long fieldId = fieldFlags | ((long) 102 & 0x0ffffffffL); in testPackedCompat() local
505 case (int) fieldId: in testPackedCompat()
506 result[index++] = pi.readLong(fieldId); in testPackedCompat()
DProtoInputStreamSFixed64Test.java147 final long fieldId = fieldFlags | ((long) 120 & 0x0ffffffffL); in testReadCompat() local
160 case (int) fieldId: in testReadCompat()
161 result = pi.readLong(fieldId); in testReadCompat()
320 final long fieldId = fieldFlags | ((long) 121 & 0x0ffffffffL); in testRepeatedCompat() local
334 case (int) fieldId: in testRepeatedCompat()
335 result[index++] = pi.readLong(fieldId); in testRepeatedCompat()
491 final long fieldId = fieldFlags | ((long) 122 & 0x0ffffffffL); in testPackedCompat() local
505 case (int) fieldId: in testPackedCompat()
506 result[index++] = pi.readLong(fieldId); in testPackedCompat()
DProtoInputStreamUInt64Test.java144 final long fieldId = fieldFlags | ((long) 60 & 0x0ffffffffL); in testReadCompat() local
157 case (int) fieldId: in testReadCompat()
158 result = pi.readLong(fieldId); in testReadCompat()
310 final long fieldId = fieldFlags | ((long) 61 & 0x0ffffffffL); in testRepeatedCompat() local
324 case (int) fieldId: in testRepeatedCompat()
325 result[index++] = pi.readLong(fieldId); in testRepeatedCompat()
485 final long fieldId = fieldFlags | ((long) 62 & 0x0ffffffffL); in testPackedCompat() local
499 case (int) fieldId: in testPackedCompat()
500 result[index++] = pi.readLong(fieldId); in testPackedCompat()
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.cpp96 uint32_t fieldId = read_field_id(fieldTag); in strip_field() local
97 const Privacy* policy = lookup(parentPolicy, fieldId); in strip_field()
114 "relative pos %zu, ", fieldId, read_wire_type(fieldTag), fieldTag, depth, in strip_field()
349 uint32_t fieldId = read_field_id(fieldTag); in filter_and_write_report() local
352 && args.containsSection(fieldId, section_requires_specific_mention(fieldId))) { in filter_and_write_report()
354 PrivacyFilter filter(fieldId, get_privacy_of_section(fieldId)); in filter_and_write_report()
DPrivacy.cpp43 const Privacy* lookup(const Privacy* p, uint32_t fieldId) { in lookup() argument
46 if (p->children[i]->field_id == fieldId) return p->children[i]; in lookup()
48 if (p->children[i]->field_id > fieldId) return NULL; in lookup()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProto.java63 private static void loadUsageStats(ProtoInputStream proto, long fieldId, in loadUsageStats() argument
67 final long token = proto.start(fieldId); in loadUsageStats()
155 private static void loadCountAndTime(ProtoInputStream proto, long fieldId, in loadCountAndTime() argument
158 final long token = proto.start(fieldId); in loadCountAndTime()
173 Slog.e(TAG, "Unable to read event tracker " + fieldId, e); in loadCountAndTime()
245 private static void loadConfigStats(ProtoInputStream proto, long fieldId, in loadConfigStats() argument
247 final long token = proto.start(fieldId); in loadConfigStats()
297 private static void loadEvent(ProtoInputStream proto, long fieldId, IntervalStats statsOut, in loadEvent() argument
299 final long token = proto.start(fieldId); in loadEvent()
319 private static void writeUsageStats(ProtoOutputStream proto, long fieldId, in writeUsageStats() argument
[all …]

123456789