Searched refs:protoInputStream (Results 1 – 10 of 10) sorted by relevance
255 return protoInputStream -> { in protoStreamReader()263 Event event = Event.readFromProto(protoInputStream); in protoStreamReader()264 protoInputStream.end(token); in protoStreamReader()333 return protoInputStream -> {337 if (protoInputStream.getFieldNumber()345 switch (protoInputStream.getFieldNumber()) {347 eventType = protoInputStream.readInt(351 long indexToken = protoInputStream.start(354 protoInputStream.end(indexToken);358 + protoInputStream.getFieldNumber());[all …]
391 switch (protoInputStream.getFieldNumber()) { in readFromProto()397 long locusIdToken = protoInputStream.start( in readFromProto()399 while (protoInputStream.nextField() in readFromProto()406 protoInputStream.end(locusIdToken); in readFromProto()409 builder.setContactUri(Uri.parse(protoInputStream.readString( in readFromProto()421 builder.setLastEventTimestamp(protoInputStream.readLong( in readFromProto()425 builder.setCreationTimestamp(protoInputStream.readLong( in readFromProto()429 builder.setShortcutFlags(protoInputStream.readInt( in readFromProto()433 builder.setConversationFlags(protoInputStream.readInt( in readFromProto()437 builder.setContactPhoneNumber(protoInputStream.readString( in readFromProto()[all …]
162 static Event readFromProto(@NonNull ProtoInputStream protoInputStream) throws IOException { in readFromProto() argument164 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()
338 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()
284 static EventIndex readFromProto(@NonNull ProtoInputStream protoInputStream) throws IOException { in readFromProto() argument288 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()
216 final ProtoInputStream protoInputStream = new ProtoInputStream(fileInputStream); in parseFile() local217 return protoStreamReader().read(protoInputStream); in parseFile()252 T read(@NonNull ProtoInputStream protoInputStream); in read() argument
248 if (protoInputStream.getFieldNumber() in testWriteBackgroundInstalledPackagesToDisk_empty()252 long token = protoInputStream.start( in testWriteBackgroundInstalledPackagesToDisk_empty()263 userId = protoInputStream.readInt( in testWriteBackgroundInstalledPackagesToDisk_empty()271 protoInputStream.end(token); in testWriteBackgroundInstalledPackagesToDisk_empty()303 if (protoInputStream.getFieldNumber() in testWriteBackgroundInstalledPackagesToDisk_one()307 long token = protoInputStream.start( in testWriteBackgroundInstalledPackagesToDisk_one()318 userId = protoInputStream.readInt( in testWriteBackgroundInstalledPackagesToDisk_one()326 protoInputStream.end(token); in testWriteBackgroundInstalledPackagesToDisk_one()360 if (protoInputStream.getFieldNumber() in testWriteBackgroundInstalledPackagesToDisk_two()364 long token = protoInputStream.start( in testWriteBackgroundInstalledPackagesToDisk_two()[all …]
383 ProtoInputStream protoInputStream = new ProtoInputStream(fileInputStream); in initBackgroundInstalledPackages() local385 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in initBackgroundInstalledPackages()386 if (protoInputStream.getFieldNumber() in initBackgroundInstalledPackages()390 long token = protoInputStream.start( in initBackgroundInstalledPackages()394 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in initBackgroundInstalledPackages()395 switch (protoInputStream.getFieldNumber()) { in initBackgroundInstalledPackages()397 packageName = protoInputStream.readString( in initBackgroundInstalledPackages()401 userId = protoInputStream.readInt( in initBackgroundInstalledPackages()406 + protoInputStream.getFieldNumber()); in initBackgroundInstalledPackages()409 protoInputStream.end(token); in initBackgroundInstalledPackages()
1349 final long token = protoInputStream.start(fieldId); in readFromProto()1353 switch (protoInputStream.getFieldNumber()) { in readFromProto()1358 mcc = protoInputStream.readInt(MCC); in readFromProto()1361 mnc = protoInputStream.readInt(MNC); in readFromProto()1372 while (protoInputStream.nextField() in readFromProto()1394 protoInputStream.end(localeToken); in readFromProto()1422 colorMode = protoInputStream.readInt(COLOR_MODE); in readFromProto()1428 keyboard = protoInputStream.readInt(KEYBOARD); in readFromProto()1437 navigation = protoInputStream.readInt(NAVIGATION); in readFromProto()1446 uiMode = protoInputStream.readInt(UI_MODE); in readFromProto()[all …]
123 ProtoInputStream protoInputStream = new ProtoInputStream(inputStream); in readHibernationStates() local124 return mProtoReadWriter.readFromProto(protoInputStream); in readHibernationStates()