/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 227 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 …]
|
D | ProtoInputStream.java | 263 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 …]
|
D | ProtoUtils.java | 34 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()
|
D | ProtoStream.java | 500 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/ |
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 | 157 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/ |
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 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/ |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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()
|
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 | ProtoInputStreamUInt64Test.java | 144 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/ |
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() 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()
|
D | Privacy.cpp | 43 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/ |
D | UsageStatsProto.java | 63 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 …]
|