Home
last modified time | relevance | path

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

12345678910

/aosp14/frameworks/base/core/java/android/util/proto/
H A DProtoOutputStream.java229 final int id = (int)fieldId; in write()
364 final int id = (int)fieldId; in write()
499 final int id = (int)fieldId; in write()
634 final int id = (int)fieldId; in write()
767 final int id = (int)fieldId; in write()
796 final int id = (int)fieldId; in write()
825 final int id = (int)fieldId; in write()
858 public long start(long fieldId) { in start() argument
860 final int id = (int)fieldId; in start()
2213 if (((int)fieldId) == 0) { in checkFieldId()
[all …]
H A DProtoInputStream.java283 assertFieldNumber(fieldId); in readDouble()
284 checkPacked(fieldId); in readDouble()
312 assertFieldNumber(fieldId); in readFloat()
313 checkPacked(fieldId); in readFloat()
340 assertFieldNumber(fieldId); in readInt()
341 checkPacked(fieldId); in readInt()
378 assertFieldNumber(fieldId); in readLong()
379 checkPacked(fieldId); in readLong()
415 assertFieldNumber(fieldId); in readBoolean()
416 checkPacked(fieldId); in readBoolean()
[all …]
H A DProtoUtils.java35 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument
37 final long aggStatsToken = proto.start(fieldId); in toAggStatsProto()
49 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument
51 toAggStatsProto(proto, fieldId, min, average, max, 0, 0); in toAggStatsProto()
57 public static void toDuration(ProtoOutputStream proto, long fieldId, long startMs, long endMs) { in toDuration() argument
58 final long token = proto.start(fieldId); in toDuration()
67 public static void writeBitWiseFlagsToProtoEnum(ProtoOutputStream proto, long fieldId, in writeBitWiseFlagsToProtoEnum() argument
76 proto.write(fieldId, protoEnums[i]); in writeBitWiseFlagsToProtoEnum()
80 proto.write(fieldId, protoEnums[i]); in writeBitWiseFlagsToProtoEnum()
H A 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()
/aosp14/frameworks/base/tools/incident_report/
H A 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()
H A 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;
H A 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 …]
/aosp14/frameworks/base/libs/protoutil/src/
H A DProtoOutputStream.cpp64 const uint32_t id = (uint32_t)fieldId; in internalWrite()
65 switch (fieldId & FIELD_TYPE_MASK) { in internalWrite()
126 const uint32_t id = (uint32_t)fieldId; in write()
127 switch (fieldId & FIELD_TYPE_MASK) { in write()
160 const uint32_t id = (uint32_t)fieldId; in write()
161 switch (fieldId & FIELD_TYPE_MASK) { in write()
176 const uint32_t id = (uint32_t)fieldId; in write()
177 switch (fieldId & FIELD_TYPE_MASK) { in write()
192 const uint32_t id = (uint32_t)fieldId; in write()
193 switch (fieldId & FIELD_TYPE_MASK) { in write()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/util/dump/
H A DDualDumpOutputStream.java158 mProtoStream.write(fieldId, val); in write()
166 mProtoStream.write(fieldId, val); in write()
172 public void write(@NonNull String fieldName, long fieldId, int val) { in write() argument
174 mProtoStream.write(fieldId, val); in write()
182 mProtoStream.write(fieldId, val); in write()
190 mProtoStream.write(fieldId, val); in write()
196 public void write(@NonNull String fieldName, long fieldId, long val) { in write() argument
198 mProtoStream.write(fieldId, val); in write()
206 mProtoStream.write(fieldId, val); in write()
212 public long start(@NonNull String fieldName, long fieldId) { in start() argument
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibration.java256 final long token = proto.start(fieldId); in dumpProto()
281 dumpEffect(proto, fieldId, in dumpEffect()
289 final long token = proto.start(fieldId); in dumpEffect()
306 final long token = proto.start(fieldId); in dumpEffect()
313 final long token = proto.start(fieldId); in dumpEffect()
323 final long token = proto.start(fieldId); in dumpEffect()
334 final long token = proto.start(fieldId); in dumpEffect()
348 final long token = proto.start(fieldId); in dumpEffect()
356 final long token = proto.start(fieldId); in dumpEffect()
367 final long token = proto.start(fieldId); in dumpEffect()
[all …]
/aosp14/frameworks/base/libs/protoutil/include/android/util/
H A 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);
/aosp14/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/aosp14/frameworks/base/cmds/incidentd/src/
H A 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()
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsProto.java63 private static void loadUsageStats(ProtoInputStream proto, long fieldId, in loadUsageStats() argument
67 final long token = proto.start(fieldId); in loadUsageStats()
162 final long token = proto.start(fieldId); in loadCountAndTime()
177 Slog.e(TAG, "Unable to read event tracker " + fieldId, e); in loadCountAndTime()
249 private static void loadConfigStats(ProtoInputStream proto, long fieldId, in loadConfigStats() argument
251 final long token = proto.start(fieldId); in loadConfigStats()
303 final long token = proto.start(fieldId); in loadEvent()
326 final long token = proto.start(fieldId); in writeUsageStats()
366 final long token = proto.start(fieldId); in writeCountAndTime()
411 final long token = proto.start(fieldId); in writeConfigStats()
[all …]

12345678910