Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/people/java/com/android/server/people/data/
H A DEventHistoryImpl.java255 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 …]
H A DConversationInfo.java368 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
369 switch (protoInputStream.getFieldNumber()) { in readFromProto()
375 long locusIdToken = protoInputStream.start( in readFromProto()
377 while (protoInputStream.nextField() in readFromProto()
384 protoInputStream.end(locusIdToken); in readFromProto()
387 builder.setContactUri(Uri.parse(protoInputStream.readString( in readFromProto()
399 builder.setLastEventTimestamp(protoInputStream.readLong( in readFromProto()
403 builder.setShortcutFlags(protoInputStream.readInt( in readFromProto()
407 builder.setConversationFlags(protoInputStream.readInt( in readFromProto()
411 builder.setContactPhoneNumber(protoInputStream.readString( in readFromProto()
[all …]
H A 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()
H A 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()
H A 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()
H A 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
/aosp12/frameworks/base/core/java/android/content/res/
H A DConfiguration.java1227 final long token = protoInputStream.start(fieldId); in readFromProto()
1231 switch (protoInputStream.getFieldNumber()) { in readFromProto()
1236 mcc = protoInputStream.readInt(MCC); in readFromProto()
1239 mnc = protoInputStream.readInt(MNC); in readFromProto()
1250 while (protoInputStream.nextField() in readFromProto()
1272 protoInputStream.end(localeToken); in readFromProto()
1300 colorMode = protoInputStream.readInt(COLOR_MODE); in readFromProto()
1306 keyboard = protoInputStream.readInt(KEYBOARD); in readFromProto()
1315 navigation = protoInputStream.readInt(NAVIGATION); in readFromProto()
1324 uiMode = protoInputStream.readInt(UI_MODE); in readFromProto()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/apphibernation/
H A DHibernationStateDiskStore.java123 ProtoInputStream protoInputStream = new ProtoInputStream(inputStream); in readHibernationStates() local
124 return mProtoReadWriter.readFromProto(protoInputStream); in readHibernationStates()