/packages/modules/AppSearch/framework/java/android/app/appsearch/safeparcel/ |
D | SafeParcelReader.java | 24 import android.os.Parcel; 45 public ParseException(@NonNull String message, @NonNull Parcel p) { in ParseException() 53 public static int readHeader(@NonNull Parcel p) { in readHeader() 63 public static int readSize(@NonNull Parcel p, int header) { in readSize() 72 public static void skipUnknownField(@NonNull Parcel p, int header) { in skipUnknownField() 77 private static void readAndEnforceSize(@NonNull Parcel p, int header, int required) { in readAndEnforceSize() 92 private static void enforceSize(@NonNull Parcel p, int header, int size, int required) { in enforceSize() 107 public static int validateObjectHeader(@NonNull Parcel p) { in validateObjectHeader() 123 public static boolean readBoolean(@NonNull Parcel p, int header) { in readBoolean() 130 public static Boolean readBooleanObject(@NonNull Parcel p, int header) { in readBooleanObject() [all …]
|
D | SafeParcelWriter.java | 24 import android.os.Parcel; 50 private static void writeHeader(Parcel p, int id, int size) { in writeHeader() 60 private static int beginVariableData(Parcel p, int id) { in beginVariableData() 71 private static void finishVariableData(Parcel p, int start) { in finishVariableData() 81 public static int beginObjectHeader(@NonNull Parcel p) { in beginObjectHeader() 86 public static void finishObjectHeader(@NonNull Parcel p, int start) { in finishObjectHeader() 91 public static void writeBoolean(@NonNull Parcel p, int id, boolean val) { in writeBoolean() 98 @NonNull Parcel p, int id, @Nullable Boolean val, boolean writeNull) { in writeBooleanObject() 111 public static void writeByte(@NonNull Parcel p, int id, byte val) { in writeByte() 117 public static void writeChar(@NonNull Parcel p, int id, char val) { in writeChar() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/com/android/adservices/ |
D | AdServicesParcelableUtilTest.java | 25 import android.os.Parcel; 53 null, "test", Parcel::writeString)); in testWriteNullableToParcel_nullParcelThrows() 62 Parcel.obtain(), "test", null)); in testWriteNullableToParcel_nullParcelWriterThrows() 69 () -> AdServicesParcelableUtil.readNullableFromParcel(null, Parcel::readString)); in testReadNullableFromParcel_nullParcelThrows() 76 () -> AdServicesParcelableUtil.readNullableFromParcel(Parcel.obtain(), null)); in testReadNullableFromParcel_nullParcelReaderThrows() 82 Parcel targetParcel = Parcel.obtain(); in testWriteNullableToParcelThenRead_nonNullSuccess() 84 AdServicesParcelableUtil.writeNullableToParcel(targetParcel, originalInt, Parcel::writeInt); in testWriteNullableToParcelThenRead_nonNullSuccess() 89 targetParcel, Parcel::readInt)); in testWriteNullableToParcelThenRead_nonNullSuccess() 96 Parcel targetParcel = Parcel.obtain(); in testWriteNullableToParcelThenRead_nullNonParcelableSuccess() 98 AdServicesParcelableUtil.writeNullableToParcel(targetParcel, null, Parcel::writeString); in testWriteNullableToParcelThenRead_nullNonParcelableSuccess() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/ |
D | AudioLocalSession.java | 19 import android.os.Parcel; 60 public void sendRequest(final int sessionId, final Parcel parcel) { in sendRequest() 78 Parcel parcel = Parcel.obtain(); in modifySession() 93 Parcel parcel = Parcel.obtain(); in addConfig() 108 Parcel parcel = Parcel.obtain(); in deleteConfig() 126 Parcel parcel = Parcel.obtain(); in confirmConfig() 141 Parcel parcel = Parcel.obtain(); in sendDtmf() 154 Parcel parcel = Parcel.obtain(); in sendHeaderExtension() 170 Parcel parcel = Parcel.obtain(); in setMediaQualityThreshold() 185 Parcel parcel = Parcel.obtain(); in requestRtpReceptionStats() [all …]
|
D | TextLocalSession.java | 19 import android.os.Parcel; 58 public void sendRequest(final int sessionId, final Parcel parcel) { in sendRequest() 78 Parcel parcel = Parcel.obtain(); in modifySession() 93 Parcel parcel = Parcel.obtain(); in setMediaQualityThreshold() 107 Parcel parcel = Parcel.obtain(); in sendRtt()
|
D | VideoLocalSession.java | 19 import android.os.Parcel; 59 public void sendRequest(final int sessionId, final Parcel parcel) { in sendRequest() 78 Parcel parcel = Parcel.obtain(); in modifySession() 118 Parcel parcel = Parcel.obtain(); in setMediaQualityThreshold() 142 Parcel parcel = Parcel.obtain(); in requestVideoDataUsage()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
D | DeletionType.kt | 18 import android.os.Parcel 30 constructor(parcel: Parcel) : this() {} 32 override fun writeToParcel(parcel: Parcel, flags: Int) {} in writeToParcel() 37 override fun createFromParcel(parcel: Parcel): DeletionTypeAllData { in describeContents() 51 parcel: Parcel 56 override fun writeToParcel(parcel: Parcel, flags: Int) { in writeToParcel() 65 override fun createFromParcel(parcel: Parcel): DeletionTypeHealthPermissionTypeData { in createFromParcel() 76 constructor(parcel: Parcel) : this(parcel.readInt()) {} 78 override fun writeToParcel(parcel: Parcel, flags: Int) { in writeToParcel() 87 override fun createFromParcel(parcel: Parcel): DeletionTypeCategoryData { in createFromParcel() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MetricsTestUtil.java | 21 import android.os.Parcel; 37 static ConnectivityMetricsEvent describeIpEvent(Consumer<Parcel>... fs) { in describeIpEvent() 38 Parcel p = Parcel.obtain(); in describeIpEvent() 39 for (Consumer<Parcel> f : fs) { in describeIpEvent() 46 static Consumer<Parcel> aType(Class<?> c) { in aType() 50 static Consumer<Parcel> aBool(boolean b) { in aBool() 54 static Consumer<Parcel> aByte(byte b) { in aByte() 58 static Consumer<Parcel> anInt(int i) { in anInt() 62 static Consumer<Parcel> aLong(long l) { in aLong() 66 static Consumer<Parcel> aString(String s) { in aString() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | Parcelling.java | 22 import android.os.Parcel; 48 void parcel(T item, Parcel dest, int parcelFlags); in parcel() 53 T unparcel(Parcel source); in unparcel() 107 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() 113 public String unparcel(Parcel source) { in unparcel() 120 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() 126 public String[] unparcel(Parcel source) { in unparcel() 140 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() 145 public List<String> unparcel(Parcel source) { in unparcel() 159 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() [all …]
|
/packages/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/ |
D | Parcelling.java | 21 import android.os.Parcel; 47 void parcel(T item, Parcel dest, int parcelFlags); in parcel() 52 T unparcel(Parcel source); in unparcel() 106 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() 112 public String unparcel(Parcel source) { in unparcel() 119 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() 125 public String[] unparcel(Parcel source) { in unparcel() 139 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() 144 public List<String> unparcel(Parcel source) { in unparcel() 158 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() [all …]
|
D | BaseOdpParceledListSlice.java | 21 import android.os.Parcel; 60 BaseOdpParceledListSlice(Parcel p, ClassLoader loader) { in BaseOdpParceledListSlice() 98 Parcel data = Parcel.obtain(); in BaseOdpParceledListSlice() 99 Parcel reply = Parcel.obtain(); in BaseOdpParceledListSlice() 129 private T readCreator(Creator<?> creator, Parcel p, ClassLoader loader) { in readCreator() 156 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() 179 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) in writeToParcel() 212 protected abstract void writeElement(T parcelable, Parcel reply, int callFlags); in writeElement() 214 protected abstract void writeParcelableCreator(T parcelable, Parcel dest); in writeParcelableCreator() 216 protected abstract Creator<?> readParcelableCreator(Parcel from, ClassLoader loader); in readParcelableCreator()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/ |
D | DeletionType.kt | 18 import android.os.Parcel in <lambda>() 29 parcel: Parcel in <lambda>() 36 override fun writeToParcel(parcel: Parcel, flags: Int) { in <lambda>() 48 override fun createFromParcel(parcel: Parcel): DeletionTypeHealthPermissionTypes { in <lambda>() 64 parcel: Parcel in <lambda>() 73 override fun writeToParcel(parcel: Parcel, flags: Int) { in <lambda>() 88 parcel: Parcel in <lambda>() 101 parcel: Parcel in <lambda>() 108 override fun writeToParcel(parcel: Parcel, flags: Int) { in <lambda>() 114 override fun createFromParcel(parcel: Parcel): DeletionTypeEntries { in <lambda>() [all …]
|
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/ |
D | VideoListenerTest.java | 26 import android.os.Parcel; 79 private Parcel createParcel(int event, int result) { in createParcel() 80 Parcel parcel = Parcel.obtain(); in createParcel() 89 Parcel parcel = createParcel(VideoSession.EVENT_OPEN_SESSION_SUCCESS, SESSION_ID); in testOpenSessionSuccess() 100 Parcel parcel = Parcel.obtain(); in testOpenSessionFailure() 115 Parcel parcel = Parcel.obtain(); in testEventModifySessionResponse() 130 Parcel parcel = Parcel.obtain(); in testEventFirstMediaPacketInd() 143 Parcel parcel = Parcel.obtain(); in testEventPeerDimensionChanged() 158 Parcel parcel = createParcel(VideoSession.EVENT_MEDIA_INACTIVITY_IND, in testEventMediaInactivityInd() 169 Parcel parcel = createParcel(VideoSession.EVENT_NOTIFY_BITRATE_IND, in testEventNotifyBitrateInd() [all …]
|
D | AudioListenerTest.java | 26 import android.os.Parcel; 85 private Parcel createParcel(int event, int result, AudioConfig config) { in createParcel() 86 Parcel parcel = Parcel.obtain(); in createParcel() 108 Parcel parcel = Parcel.obtain(); in testOpenSessionFailure() 153 Parcel parcel = Parcel.obtain(); in testEventFirstMediaPacketInd() 168 Parcel parcel = Parcel.obtain(); in testEventRtpHeaderExtensionInd() 184 Parcel parcel = Parcel.obtain(); in testEventMediaQualityStatusInd() 196 Parcel parcel = Parcel.obtain(); in testEventTriggerAnbrQueryInd() 208 Parcel parcel = Parcel.obtain(); in testEventDtmfReceivedInd() 221 Parcel parcel = Parcel.obtain(); in testEventCallQualityChangeInd() [all …]
|
D | TextListenerTest.java | 26 import android.os.Parcel; 77 private Parcel createParcel(int event, int result, TextConfig config) { in createParcel() 78 Parcel parcel = Parcel.obtain(); in createParcel() 90 Parcel parcel = createParcel(TextSession.EVENT_OPEN_SESSION_SUCCESS, SESSION_ID, in testOpenSessionSuccess() 102 Parcel parcel = Parcel.obtain(); in testOpenSessionFailure() 118 Parcel parcel = createParcel(TextSession.EVENT_MODIFY_SESSION_RESPONSE, in testEventModifySessionResponse() 130 Parcel parcel = createParcel(TextSession.EVENT_MEDIA_INACTIVITY_IND, in testEventMediaInactivityInd() 141 Parcel parcel = Parcel.obtain(); in testEventRttReceived() 155 Parcel parcel = Parcel.obtain(); in testEventSessionClosed()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExerciseCompletionGoalInternal.java | 23 import android.os.Parcel; 41 abstract void writeFieldsToParcel(@NonNull Parcel parcel); in writeFieldsToParcel() 82 public void writeToParcel(@NonNull Parcel parcel) { in writeToParcel() 89 public static ExerciseCompletionGoalInternal readFromParcel(@NonNull Parcel parcel) { in readFromParcel() 120 void writeFieldsToParcel(@NonNull Parcel parcel) { in writeFieldsToParcel() 126 public static DistanceGoalInternal readFieldsFromParcel(@NonNull Parcel parcel) { in readFieldsFromParcel() 157 void writeFieldsToParcel(@NonNull Parcel parcel) { in writeFieldsToParcel() 163 public static StepsGoalInternal readFieldsFromParcel(@NonNull Parcel parcel) { in readFieldsFromParcel() 193 void writeFieldsToParcel(@NonNull Parcel parcel) { in writeFieldsToParcel() 199 public static DurationGoalInternal readFieldsFromParcel(@NonNull Parcel parcel) { in readFieldsFromParcel() [all …]
|
D | ExercisePerformanceGoalInternal.java | 23 import android.os.Parcel; 37 abstract void writeFieldsToParcel(Parcel parcel); in writeFieldsToParcel() 44 List<ExercisePerformanceGoalInternal> performanceGoals, Parcel parcel) { in writeToParcel() 53 public static List<ExercisePerformanceGoalInternal> readFromParcel(Parcel parcel) { in readFromParcel() 137 void writeFieldsToParcel(Parcel parcel) { in writeFieldsToParcel() 158 void writeFieldsToParcel(Parcel parcel) { in writeFieldsToParcel() 163 static PowerGoalInternal readFieldsFromParcel(Parcel parcel) { in readFieldsFromParcel() 199 void writeFieldsToParcel(Parcel parcel) { in writeFieldsToParcel() 204 static SpeedGoalInternal readFieldsFromParcel(Parcel parcel) { in readFieldsFromParcel() 241 void writeFieldsToParcel(Parcel parcel) { in writeFieldsToParcel() [all …]
|
/packages/modules/ImsMedia/test/imsmediahal/src/com/android/telephony/testimsmediahal/ |
D | IImsMediaSessionImpl.java | 24 import android.os.Parcel; 79 Parcel parcel = Parcel.obtain(); in modifySession() 92 Parcel parcel = Parcel.obtain(); in sendDtmf() 102 Parcel parcel = Parcel.obtain(); in startDtmf() 111 Parcel parcel = Parcel.obtain(); in stopDtmf() 119 Parcel parcel = Parcel.obtain(); in sendHeaderExtension() 131 Parcel parcel = Parcel.obtain(); in setMediaQualityThreshold()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/ |
D | ParcelUtils.java | 21 import android.os.Parcel; 38 void writeToParcel(Parcel dest); in writeToParcel() 42 public static Parcel getParcelForSharedMemoryIfRequired(Parcel in) { in getParcelForSharedMemoryIfRequired() 46 Parcel dataParcel = Parcel.obtain(); in getParcelForSharedMemoryIfRequired() 60 public static SharedMemory getSharedMemoryForParcel(Parcel dataParcel, int dataParcelSize) { in getSharedMemoryForParcel() 78 Parcel dest, int flags, IPutToParcelRunnable parcelRunnable) { in putToRequiredMemory() 79 final Parcel dataParcel = Parcel.obtain(); in putToRequiredMemory()
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | OnDevicePersonalizationFrameworkClassesTest.java | 25 import android.os.Parcel; 58 Parcel parcel = Parcel.obtain(); in testExecuteInput() 83 Parcel parcel = Parcel.obtain(); in testExecuteOutput() 105 Parcel parcel = Parcel.obtain(); in testRenderInput() 124 Parcel parcel = Parcel.obtain(); in testRenderOutput() 142 Parcel parcel = Parcel.obtain(); in teetDownloadCompletedOutput() 170 Parcel parcel = Parcel.obtain(); in testEventInput() 198 Parcel parcel = Parcel.obtain(); in testEventOutput() 270 Parcel parcel = Parcel.obtain(); in testWebTriggerOutput() 303 Parcel parcel = Parcel.obtain(); in testMeasurementWebTriggerEventParams()
|
/packages/modules/AdServices/adservices/framework/java/com/android/adservices/ |
D | AdServicesParcelableUtil.java | 23 import android.os.Parcel; 50 @NonNull Parcel targetParcel, in writeNullableToParcel() 71 @NonNull Parcel sourceParcel, @NonNull ParcelReader<T> parcelReader) { in readNullableFromParcel() 91 @NonNull Parcel targetParcel, @NonNull Map<K, V> sourceMap) { in writeMapToParcel() 109 @NonNull Parcel sourceParcel, in readMapFromParcel() 137 @NonNull Parcel targetParcel, @NonNull Set<T> sourceSet) { 151 @NonNull Parcel sourceParcel, @NonNull Parcelable.Creator<T> creator) { 165 @NonNull Parcel targetParcel, @NonNull Set<String> sourceSet) { 179 public static Set<String> readStringSetFromParcel(@NonNull Parcel sourceParcel) { 192 @NonNull Parcel targetParcel, @NonNull Set<Integer> sourceSet) { [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | LargeParcelableBase.java | 25 import android.os.Parcel; 72 protected abstract void serialize(@NonNull Parcel dest, int flags); in serialize() 79 protected abstract void serializeNullPayload(@NonNull Parcel dest); in serializeNullPayload() 84 protected abstract void deserialize(@NonNull Parcel src); in deserialize() 89 public LargeParcelableBase(Parcel in) { in LargeParcelableBase() 119 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() 138 Parcel dataParcel = Parcel.obtain(); in writeToParcel() 172 private int updatePayloadSize(Parcel dest, int startPosition) { in updatePayloadSize() 183 private void writeSharedMemoryCompatibleToParcel(Parcel dest, SharedMemory memory, int flags) { in writeSharedMemoryCompatibleToParcel() 224 protected static SharedMemory serializeParcelToSharedMemory(Parcel p) { in serializeParcelToSharedMemory() [all …]
|
/packages/modules/Media/apex/framework/java/android/media/ |
D | BaseMediaParceledListSlice.java | 21 import android.os.Parcel; 64 BaseMediaParceledListSlice(Parcel p, ClassLoader loader) { in BaseMediaParceledListSlice() 99 Parcel data = Parcel.obtain(); in BaseMediaParceledListSlice() 100 Parcel reply = Parcel.obtain(); in BaseMediaParceledListSlice() 126 private T readCreator(Parcelable.Creator<?> creator, Parcel p, ClassLoader loader) { in readCreator() 161 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() 184 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) in writeToParcel() 214 abstract void writeElement(T parcelable, Parcel reply, int callFlags); in writeElement() 216 abstract void writeParcelableCreator(T parcelable, Parcel dest); in writeParcelableCreator() 218 abstract Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader); in readParcelableCreator()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
D | ResultPayloadUtils.java | 20 import android.os.Parcel; 31 Parcel parcel = Parcel.obtain(); in marshall() 40 Parcel parcel = unmarshall(bytes); in unmarshall() 46 private static Parcel unmarshall(byte[] bytes) { in unmarshall() 47 Parcel parcel = Parcel.obtain(); in unmarshall()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/ |
D | CarPropertyConfigListUnitTest.java | 24 import android.os.Parcel; 34 Parcel parcel = Parcel.obtain(); in testSerializeThenDeserializeNullConfigList() 47 Parcel parcel = Parcel.obtain(); in testSerializeNullPayloadThenDeserialize() 60 Parcel parcel = Parcel.obtain(); in testSerializeThenDeserializeWithValidResults() 92 Parcel parcel = Parcel.obtain(); in testCreateFromParcel()
|