/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 228 public void write(long fieldId, double val) { in write() argument 230 final int id = (int)fieldId; in write() 232 switch ((int)((fieldId & (FIELD_TYPE_MASK | FIELD_COUNT_MASK)) >> FIELD_TYPE_SHIFT)) { in write() 348 + getFieldIdString(fieldId)); in write() 363 public void write(long fieldId, float val) { in write() argument 365 final int id = (int)fieldId; in write() 367 switch ((int)((fieldId & (FIELD_TYPE_MASK | FIELD_COUNT_MASK)) >> FIELD_TYPE_SHIFT)) { in write() 483 + getFieldIdString(fieldId)); in write() 498 public void write(long fieldId, int val) { in write() argument 500 final int id = (int)fieldId; in write() [all …]
|
D | ProtoInputStream.java | 267 public boolean nextField(long fieldId) throws IOException { in nextField() argument 268 if (nextField() == (int) fieldId) { in nextField() 282 public double readDouble(long fieldId) throws IOException { in readDouble() argument 284 assertFieldNumber(fieldId); in readDouble() 285 checkPacked(fieldId); in readDouble() 288 switch ((int) ((fieldId & FIELD_TYPE_MASK) in readDouble() 296 "Requested field id (" + getFieldIdString(fieldId) in readDouble() 311 public float readFloat(long fieldId) throws IOException { in readFloat() argument 313 assertFieldNumber(fieldId); in readFloat() 314 checkPacked(fieldId); in readFloat() [all …]
|
D | ProtoUtils.java | 36 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument 38 final long aggStatsToken = proto.start(fieldId); in toAggStatsProto() 50 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument 52 toAggStatsProto(proto, fieldId, min, average, max, 0, 0); in toAggStatsProto() 58 public static void toDuration(ProtoOutputStream proto, long fieldId, long startMs, long endMs) { in toDuration() argument 59 final long token = proto.start(fieldId); in toDuration() 68 public static void writeBitWiseFlagsToProtoEnum(ProtoOutputStream proto, long fieldId, in writeBitWiseFlagsToProtoEnum() argument 77 proto.write(fieldId, protoEnums[i]); in writeBitWiseFlagsToProtoEnum() 81 proto.write(fieldId, protoEnums[i]); in writeBitWiseFlagsToProtoEnum()
|
D | ProtoStream.java | 501 public static @NonNull String getFieldIdString(long fieldId) { in getFieldIdString() argument 502 final long fieldCount = fieldId & FIELD_COUNT_MASK; in getFieldIdString() 511 final long fieldType = fieldId & FIELD_TYPE_MASK; in getFieldIdString() 517 return countString + typeString + " tag=" + ((int) fieldId) in getFieldIdString() 518 + " fieldId=0x" + Long.toHexString(fieldId); in getFieldIdString()
|
/frameworks/base/tools/incident_report/ |
D | generic_message.cpp | 28 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()
|
D | generic_message.h | 56 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;
|
D | main.cpp | 45 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/ |
D | ProtoOutputStream.cpp | 61 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/ |
D | DualDumpOutputStream.java | 156 public void write(@NonNull String fieldName, long fieldId, double val) { in write() argument 158 mProtoStream.write(fieldId, val); in write() 164 public void write(@NonNull String fieldName, long fieldId, boolean val) { in write() argument 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() 180 public void write(@NonNull String fieldName, long fieldId, float val) { in write() argument 182 mProtoStream.write(fieldId, val); in write() 188 public void write(@NonNull String fieldName, long fieldId, byte[] val) { in write() argument 190 mProtoStream.write(fieldId, val); in write() [all …]
|
/frameworks/base/libs/protoutil/include/android/util/ |
D | ProtoOutputStream.h | 99 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_view 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/services/core/java/com/android/server/vibrator/ |
D | Vibration.java | 331 void dump(ProtoOutputStream proto, long fieldId) { in dump() argument 332 final long token = proto.start(fieldId); in dump() 357 ProtoOutputStream proto, long fieldId, CombinedVibration effect) { in dumpEffect() argument 358 dumpEffect(proto, fieldId, in dumpEffect() 365 ProtoOutputStream proto, long fieldId, CombinedVibration.Sequential effect) { in dumpEffect() argument 366 final long token = proto.start(fieldId); in dumpEffect() 382 ProtoOutputStream proto, long fieldId, CombinedVibration.Mono effect) { in dumpEffect() argument 383 final long token = proto.start(fieldId); in dumpEffect() 389 ProtoOutputStream proto, long fieldId, CombinedVibration.Stereo effect) { in dumpEffect() argument 390 final long token = proto.start(fieldId); in dumpEffect() [all …]
|
D | GroupedAggregatedLogRecords.java | 94 long fieldId = findGroupKeyProtoFieldId(mGroupedRecords.keyAt(i)); in dump() local 96 records.dump(proto, fieldId); in dump() 144 synchronized void dump(ProtoOutputStream proto, long fieldId) { in dump() argument 145 mFirst.dump(proto, fieldId); in dump() 147 mLatest.dump(proto, fieldId); in dump() 180 void dump(ProtoOutputStream proto, long fieldId); in dump() argument
|
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
D | ProtoInputStreamBoolTest.java | 101 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()
|
D | ProtoInputStreamEnumTest.java | 124 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()
|
D | ProtoInputStreamFixed32Test.java | 122 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()
|
D | ProtoInputStreamSInt32Test.java | 122 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()
|
D | ProtoInputStreamUInt32Test.java | 124 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()
|
D | ProtoInputStreamInt32Test.java | 124 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()
|
D | ProtoInputStreamSFixed32Test.java | 122 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()
|
D | ProtoInputStreamSFixed64Test.java | 147 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()
|
D | ProtoInputStreamInt64Test.java | 145 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()
|
D | ProtoInputStreamSInt64Test.java | 142 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()
|
D | ProtoInputStreamFixed64Test.java | 147 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()
|
/frameworks/base/cmds/incidentd/src/ |
D | PrivacyFilter.cpp | 96 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() 351 uint32_t fieldId = read_field_id(fieldTag); in filter_and_write_report() local 354 && args.containsSection(fieldId, section_requires_specific_mention(fieldId))) { in filter_and_write_report() 356 PrivacyFilter filter(fieldId, get_privacy_of_section(fieldId)); in filter_and_write_report()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 63 private static void loadUsageStats(ProtoInputStream proto, long fieldId, in loadUsageStats() argument 67 final long token = proto.start(fieldId); in loadUsageStats() 159 private static void loadCountAndTime(ProtoInputStream proto, long fieldId, in loadCountAndTime() argument 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() 301 private static void loadEvent(ProtoInputStream proto, long fieldId, IntervalStats statsOut, in loadEvent() argument 303 final long token = proto.start(fieldId); in loadEvent() 323 private static void writeUsageStats(ProtoOutputStream proto, long fieldId, in writeUsageStats() argument [all …]
|