Home
last modified time | relevance | path

Searched refs:ProtoInputStream (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamBoolTest.java19 import android.util.proto.ProtoInputStream;
65 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
67 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
108 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
112 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
177 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
180 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
230 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
235 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
297 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamObjectTest.java19 import android.util.proto.ProtoInputStream;
38 void parseProto(ProtoInputStream pi) throws IOException { in parseProto()
50 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in parseProto()
102 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectOneChar()
106 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testObjectOneChar()
156 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectOneLargeChar()
160 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testObjectOneLargeChar()
213 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectAndTwoChars()
219 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testObjectAndTwoChars()
283 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testComplexObject()
[all …]
DProtoInputStreamEnumTest.java19 import android.util.proto.ProtoInputStream;
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
134 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
207 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
210 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
271 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
275 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
354 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamIncompleteValueTest.java19 import android.util.proto.ProtoInputStream;
46 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteVarint()
48 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteVarint()
84 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteFixed64()
86 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteFixed64()
122 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteLengthDelimited()
124 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteLengthDelimited()
159 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteFixed32()
161 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteFixed32()
DProtoInputStreamStringTest.java19 import android.util.proto.ProtoInputStream;
69 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
71 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
122 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
126 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
195 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
198 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
253 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
258 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
289 ProtoInputStream pi = new ProtoInputStream(protobuf); in testBadReadType()
[all …]
DProtoInputStreamSInt32Test.java19 import android.util.proto.ProtoInputStream;
71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
204 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
264 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamUInt32Test.java19 import android.util.proto.ProtoInputStream;
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
135 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
206 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
209 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
269 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
274 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
352 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamSFixed32Test.java19 import android.util.proto.ProtoInputStream;
71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
204 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
264 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamFixed32Test.java19 import android.util.proto.ProtoInputStream;
71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
204 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
264 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamInt32Test.java19 import android.util.proto.ProtoInputStream;
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
135 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
207 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
210 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
270 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
275 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
353 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamBytesTest.java19 import android.util.proto.ProtoInputStream;
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
132 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
136 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
206 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
209 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
269 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
274 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
308 ProtoInputStream pi = new ProtoInputStream(protobuf); in testBadReadType()
[all …]
DProtoInputStreamUInt64Test.java19 import android.util.proto.ProtoInputStream;
83 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
85 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
151 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
155 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
245 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
248 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
317 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
322 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
420 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamSFixed64Test.java19 import android.util.proto.ProtoInputStream;
86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
88 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
154 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
158 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
255 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
258 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
327 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
332 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
426 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamSInt64Test.java19 import android.util.proto.ProtoInputStream;
81 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
83 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
149 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
153 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
240 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
243 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
312 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
317 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
401 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamInt64Test.java19 import android.util.proto.ProtoInputStream;
84 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
86 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
152 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
156 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
247 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
250 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
319 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
324 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
424 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamFixed64Test.java19 import android.util.proto.ProtoInputStream;
86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
88 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
154 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
158 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
255 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
258 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
327 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
332 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
426 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamDoubleTest.java19 import android.util.proto.ProtoInputStream;
97 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
99 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
174 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
178 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
293 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
296 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
377 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
382 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
493 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
DProtoInputStreamFloatTest.java19 import android.util.proto.ProtoInputStream;
88 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
90 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead()
165 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat()
169 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat()
266 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated()
350 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat()
355 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat()
446 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
[all …]
/frameworks/base/services/core/java/com/android/server/powerstats/
DProtoStreamUtils.java29 import android.util.proto.ProtoInputStream;
159 final ProtoInputStream pis = new ProtoInputStream(new ByteArrayInputStream(data)); in unpackProtoMessage()
172 } else if (nextField == ProtoInputStream.NO_MORE_FIELDS) { in unpackProtoMessage()
186 private static StateResidencyResult unpackStateResidencyResultProto(ProtoInputStream pis) in unpackStateResidencyResultProto()
204 case ProtoInputStream.NO_MORE_FIELDS: in unpackStateResidencyResultProto()
221 private static StateResidency unpackStateResidencyProto(ProtoInputStream pis) in unpackStateResidencyProto()
247 case ProtoInputStream.NO_MORE_FIELDS: in unpackStateResidencyProto()
353 final ProtoInputStream pis = new ProtoInputStream(new ByteArrayInputStream(data)); in unpackProtoMessage()
365 } else if (nextField == ProtoInputStream.NO_MORE_FIELDS) { in unpackProtoMessage()
379 private static EnergyMeasurement unpackEnergyMeasurementProto(ProtoInputStream pis) in unpackEnergyMeasurementProto()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsProtoV2.java26 import android.util.proto.ProtoInputStream;
48 private static UsageStats parseUsageStats(ProtoInputStream proto, final long beginTime) in parseUsageStats()
99 case ProtoInputStream.NO_MORE_FIELDS: in parseUsageStats()
105 private static void loadCountAndTime(ProtoInputStream proto, long fieldId, in loadCountAndTime()
119 case ProtoInputStream.NO_MORE_FIELDS: in loadCountAndTime()
129 private static void loadChooserCounts(ProtoInputStream proto, UsageStats usageStats) in loadChooserCounts()
158 case ProtoInputStream.NO_MORE_FIELDS: in loadChooserCounts()
164 private static void loadCountsForAction(ProtoInputStream proto, SparseIntArray counts) in loadCountsForAction()
179 case ProtoInputStream.NO_MORE_FIELDS: in loadCountsForAction()
188 private static void loadConfigStats(ProtoInputStream proto, IntervalStats stats) in loadConfigStats()
[all …]
DUsageStatsProto.java24 import android.util.proto.ProtoInputStream;
43 private static List<String> readStringPool(ProtoInputStream proto) throws IOException { in readStringPool()
52 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readStringPool()
63 private static void loadUsageStats(ProtoInputStream proto, long fieldId, in loadUsageStats()
83 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in loadUsageStats()
159 private static void loadCountAndTime(ProtoInputStream proto, long fieldId, in loadCountAndTime()
171 case ProtoInputStream.NO_MORE_FIELDS: in loadCountAndTime()
181 private static void loadChooserCounts(ProtoInputStream proto, UsageStats usageStats) in loadChooserCounts()
214 case ProtoInputStream.NO_MORE_FIELDS: in loadChooserCounts()
224 private static void loadCountsForAction(ProtoInputStream proto, in loadCountsForAction()
[all …]
/frameworks/base/services/core/java/com/android/server/apphibernation/
DUserLevelHibernationProto.java23 import android.util.proto.ProtoInputStream;
49 public @Nullable List<UserLevelState> readFromProto(@NonNull ProtoInputStream stream) in readFromProto()
52 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
59 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
DGlobalLevelHibernationProto.java23 import android.util.proto.ProtoInputStream;
50 public @Nullable List<GlobalLevelState> readFromProto(@NonNull ProtoInputStream stream) in readFromProto()
53 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
60 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
DProtoReadWriter.java21 import android.util.proto.ProtoInputStream;
41 @Nullable T readFromProto(@NonNull ProtoInputStream stream) throws IOException; in readFromProto()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryProtoHelper.java24 import android.util.proto.ProtoInputStream;
45 private static List<String> readStringPool(ProtoInputStream proto) throws IOException { in readStringPool()
53 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readStringPool()
75 private static void readNotification(ProtoInputStream proto, List<String> stringPool, in readNotification()
92 private static HistoricalNotification readNotification(ProtoInputStream parser, in readNotification()
155 case ProtoInputStream.NO_MORE_FIELDS: in readNotification()
161 private static void loadIcon(ProtoInputStream parser, in loadIcon()
200 case ProtoInputStream.NO_MORE_FIELDS: in loadIcon()
307 final ProtoInputStream proto = new ProtoInputStream(in); in read()
317 case ProtoInputStream.NO_MORE_FIELDS: in read()

123