Home
last modified time | relevance | path

Searched refs:protoInputStream (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/people/java/com/android/server/people/data/
DEventHistoryImpl.java255 return protoInputStream -> { in protoStreamReader()
258 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in protoStreamReader()
259 if (protoInputStream.getFieldNumber() != (int) PeopleEventsProto.EVENTS) { in protoStreamReader()
262 long token = protoInputStream.start(PeopleEventsProto.EVENTS); in protoStreamReader()
263 Event event = Event.readFromProto(protoInputStream); in protoStreamReader()
264 protoInputStream.end(token); in protoStreamReader()
333 return protoInputStream -> {
336 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) {
337 if (protoInputStream.getFieldNumber()
341 long token = protoInputStream.start(PeopleEventIndexesProto.TYPED_INDEXES);
[all …]
DConversationInfo.java387 static ConversationInfo readFromProto(@NonNull ProtoInputStream protoInputStream) in readFromProto() argument
390 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
391 switch (protoInputStream.getFieldNumber()) { in readFromProto()
394 protoInputStream.readString(ConversationInfoProto.SHORTCUT_ID)); in readFromProto()
397 long locusIdToken = protoInputStream.start( in readFromProto()
399 while (protoInputStream.nextField() in readFromProto()
401 if (protoInputStream.getFieldNumber() == (int) LocusIdProto.LOCUS_ID) { in readFromProto()
403 protoInputStream.readString(LocusIdProto.LOCUS_ID))); in readFromProto()
406 protoInputStream.end(locusIdToken); in readFromProto()
409 builder.setContactUri(Uri.parse(protoInputStream.readString( in readFromProto()
[all …]
DEvent.java162 static Event readFromProto(@NonNull ProtoInputStream protoInputStream) throws IOException { in readFromProto() argument
164 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
165 switch (protoInputStream.getFieldNumber()) { in readFromProto()
167 builder.setType(protoInputStream.readInt(PeopleEventProto.EVENT_TYPE)); in readFromProto()
170 builder.setTimestamp(protoInputStream.readLong(PeopleEventProto.TIME)); in readFromProto()
173 builder.setDurationSeconds(protoInputStream.readInt(PeopleEventProto.DURATION)); in readFromProto()
177 + protoInputStream.getFieldNumber()); in readFromProto()
DConversationStore.java338 return protoInputStream -> { in protoStreamReader()
341 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in protoStreamReader()
342 if (protoInputStream.getFieldNumber() in protoStreamReader()
346 long token = protoInputStream.start( in protoStreamReader()
349 protoInputStream); in protoStreamReader()
350 protoInputStream.end(token); in protoStreamReader()
DEventIndex.java284 static EventIndex readFromProto(@NonNull ProtoInputStream protoInputStream) throws IOException { in readFromProto() argument
288 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
289 switch (protoInputStream.getFieldNumber()) { in readFromProto()
291 eventBitmaps[bitmapIndex++] = protoInputStream.readLong( in readFromProto()
295 lastUpdated = protoInputStream.readLong( in readFromProto()
300 + protoInputStream.getFieldNumber()); in readFromProto()
DAbstractProtoDiskReadWriter.java216 final ProtoInputStream protoInputStream = new ProtoInputStream(fileInputStream); in parseFile() local
217 return protoStreamReader().read(protoInputStream); in parseFile()
252 T read(@NonNull ProtoInputStream protoInputStream); in read() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBackgroundInstallControlServiceTest.java242 ProtoInputStream protoInputStream = new ProtoInputStream(fileInputStream); in testWriteBackgroundInstalledPackagesToDisk_empty() local
244 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testWriteBackgroundInstalledPackagesToDisk_empty()
245 if (protoInputStream.getFieldNumber() in testWriteBackgroundInstalledPackagesToDisk_empty()
250 protoInputStream.start(BackgroundInstalledPackagesProto.BG_INSTALLED_PKG); in testWriteBackgroundInstalledPackagesToDisk_empty()
253 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testWriteBackgroundInstalledPackagesToDisk_empty()
254 switch (protoInputStream.getFieldNumber()) { in testWriteBackgroundInstalledPackagesToDisk_empty()
257 protoInputStream.readString( in testWriteBackgroundInstalledPackagesToDisk_empty()
262 protoInputStream.readInt( in testWriteBackgroundInstalledPackagesToDisk_empty()
267 fail("Undefined field in proto: " + protoInputStream.getFieldNumber()); in testWriteBackgroundInstalledPackagesToDisk_empty()
270 protoInputStream.end(token); in testWriteBackgroundInstalledPackagesToDisk_empty()
[all …]
/frameworks/base/core/java/android/content/res/
DConfiguration.java1369 public void readFromProto(ProtoInputStream protoInputStream, long fieldId) throws IOException { in readFromProto() argument
1370 final long token = protoInputStream.start(fieldId); in readFromProto()
1373 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
1374 switch (protoInputStream.getFieldNumber()) { in readFromProto()
1376 fontScale = protoInputStream.readFloat(FONT_SCALE); in readFromProto()
1379 mcc = protoInputStream.readInt(MCC); in readFromProto()
1382 mnc = protoInputStream.readInt(MNC); in readFromProto()
1387 final long localeToken = protoInputStream.start(LOCALES); in readFromProto()
1393 while (protoInputStream.nextField() in readFromProto()
1395 switch (protoInputStream.getFieldNumber()) { in readFromProto()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundInstallControlService.java476 ProtoInputStream protoInputStream = new ProtoInputStream(fileInputStream); in initBackgroundInstalledPackages() local
478 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in initBackgroundInstalledPackages()
479 if (protoInputStream.getFieldNumber() in initBackgroundInstalledPackages()
484 protoInputStream.start(BackgroundInstalledPackagesProto.BG_INSTALLED_PKG); in initBackgroundInstalledPackages()
487 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in initBackgroundInstalledPackages()
488 switch (protoInputStream.getFieldNumber()) { in initBackgroundInstalledPackages()
491 protoInputStream.readString( in initBackgroundInstalledPackages()
496 protoInputStream.readInt( in initBackgroundInstalledPackages()
504 + protoInputStream.getFieldNumber()); in initBackgroundInstalledPackages()
507 protoInputStream.end(token); in initBackgroundInstalledPackages()
/frameworks/base/services/core/java/com/android/server/apphibernation/
DHibernationStateDiskStore.java123 ProtoInputStream protoInputStream = new ProtoInputStream(inputStream); in readHibernationStates() local
124 return mProtoReadWriter.readFromProto(protoInputStream); in readHibernationStates()