Home
last modified time | relevance | path

Searched refs:Byte (Results 1 – 25 of 110) sorted by relevance

12345

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockWeaverService.java24 private Pair<ArrayList<Byte>, ArrayList<Byte>>[] slots = new Pair[MAX_SLOTS];
35 public int write(int slotId, ArrayList<Byte> key, ArrayList<Byte> value) in write()
40 slots[slotId] = Pair.create((ArrayList<Byte>) key.clone(), (ArrayList<Byte>) value.clone()); in write()
45 public void read(int slotId, ArrayList<Byte> key, readCallback cb) throws RemoteException { in read()
/aosp14/frameworks/base/core/java/android/hardware/camera2/marshal/
H A DMarshalHelpers.java36 public static final int SIZEOF_INT32 = Integer.SIZE / Byte.SIZE;
37 public static final int SIZEOF_INT64 = Long.SIZE / Byte.SIZE;
38 public static final int SIZEOF_FLOAT = Float.SIZE / Byte.SIZE;
39 public static final int SIZEOF_DOUBLE = Double.SIZE / Byte.SIZE;
156 if (klass == byte.class || klass == Byte.class) { in isPrimitiveClass()
189 return (Class<T>)Byte.class; in wrapClassIfPrimitive()
/aosp14/frameworks/base/services/core/java/com/android/server/oemlock/
H A DVendorLockHidl.java88 ArrayList<Byte> signatureBytes = toByteArrayList(signature); in setOemUnlockAllowedByCarrier()
190 private ArrayList<Byte> toByteArrayList(byte[] data) { in toByteArrayList()
192 return new ArrayList<Byte>(); in toByteArrayList()
194 ArrayList<Byte> result = new ArrayList<Byte>(data.length); in toByteArrayList()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java139 sizeInBits = Byte.SIZE; in toByteArray()
167 ByteBuffer byteBuffer = ByteBuffer.allocate(numbers.length * (Double.SIZE / Byte.SIZE)) in toByteArray()
186 } else if (klass == Byte.class) { in toByteArray()
187 byteBuffer.put((Byte)value); in toByteArray()
221 int sizeOfT = sizeOfTBits / Byte.SIZE; in toByteArray()
/aosp14/frameworks/base/core/java/android/os/
H A DHidlMemoryUtil.java99 HidlMemory byteListToHidlMemory(@NonNull List<Byte> input) { in byteListToHidlMemory()
114 HidlMemory byteListToHidlMemory(@NonNull List<Byte> input, @Nullable String name) { in byteListToHidlMemory()
123 for (Byte b : input) { in byteListToHidlMemory()
167 ArrayList<Byte> hidlMemoryToByteList(@NonNull HidlMemory mem) { in hidlMemoryToByteList()
180 ArrayList<Byte> result = new ArrayList<>(buffer.remaining()); in hidlMemoryToByteList()
H A DHwBlob.java375 public static Byte[] wrapArray(@NonNull byte[] array) { in wrapArray()
377 Byte[] wrappedArray = new Byte[n]; in wrapArray()
H A DHwParcel.java222 public final void writeInt8Vector(ArrayList<Byte> val) { in writeInt8Vector()
505 public final ArrayList<Byte> readInt8Vector() { in readInt8Vector()
506 Byte[] array = HwBlob.wrapArray(readInt8VectorAsArray()); in readInt8Vector()
508 return new ArrayList<Byte>(Arrays.asList(array)); in readInt8Vector()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DWeaverHidlAdapter.java122 private static ArrayList<Byte> toByteArrayList(byte[] data) { in toByteArrayList()
123 ArrayList<Byte> result = new ArrayList<Byte>(data.length); in toByteArrayList()
130 private static byte[] fromByteArrayList(ArrayList<Byte> data) { in fromByteArrayList()
H A DAuthSecretHidlAdapter.java38 final ArrayList<Byte> secretAsArrayList = new ArrayList<>(secret.length); in setPrimaryUserCredential()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DWrappedSysUiStatsEvent.java34 private HashMap<Integer, HashMap<Byte, Object>> mAnnotations;
116 mAnnotations.get(key).put(Byte.valueOf(annotation), value); in addAnnotation()
120 return ((Boolean) mAnnotations.get(Integer.valueOf(i)).get(Byte.valueOf(a))) in getBooleanAnnotation()
/aosp14/frameworks/base/core/java/android/content/
H A DContentValues.java138 public void put(String key, Byte value) { in put()
227 } else if (value instanceof Byte) { in putObject()
228 put(key, (Byte) value); in putObject()
396 public Byte getAsByte(String key) { in getAsByte()
403 return Byte.valueOf(value.toString()); in getAsByte()
592 } else if (value instanceof Byte) { in isSupportedValue()
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/
H A DUsbStrings.java32 private static HashMap<Byte, String> sDescriptorNames;
33 private static HashMap<Byte, String> sACControlInterfaceNames;
34 private static HashMap<Byte, String> sACStreamingInterfaceNames;
46 sDescriptorNames = new HashMap<Byte, String>(); in initDescriptorNames()
70 sACControlInterfaceNames = new HashMap<Byte, String>(); in initACControlInterfaceNames()
88 sACStreamingInterfaceNames = new HashMap<Byte, String>(); in initACStreamingInterfaceNames()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
H A DTestHal.java78 public int enroll(ArrayList<Byte> hat, int timeoutSec, ArrayList<Integer> disabledFeatures) { in enroll()
89 public int setFeature(int feature, boolean enabled, ArrayList<Byte> hat, int faceId) { in setFeature()
161 public int resetLockout(ArrayList<Byte> hat) { in resetLockout()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DTypedProperties.java268 if (value < Byte.MIN_VALUE || value > Byte.MAX_VALUE) { in parseValue()
271 return Byte.valueOf((byte) value); in parseValue()
459 if (value instanceof Byte) { in getByte()
460 return ((Byte)value).byteValue(); in getByte()
/aosp14/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePrimitive.java94 } else if (value instanceof Byte) { in marshal()
96 final byte val = (Byte) value; in marshal()
167 if (klass == byte.class || klass == Byte.class) { in isTypeMappingSupported()
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
H A DRadioModuleHidlTest.java72 when(mBroadcastRadioMock.getImage(anyInt())).thenReturn(new ArrayList<Byte>(0)); in setup()
120 ArrayList<Byte> enabledListExpected = new ArrayList<Byte>(Arrays.asList( in addAnnouncementListener_listenerRegistered()
/aosp14/frameworks/base/media/java/android/media/
H A DMediaCas.java434 public void onEvent(int event, int arg, @Nullable ArrayList<Byte> data)
445 @NonNull ArrayList<Byte> sessionId,
448 @Nullable ArrayList<Byte> data)
528 private ArrayList<Byte> toByteArray(@NonNull byte[] data, int offset, int length) { in toByteArray()
529 ArrayList<Byte> byteArray = new ArrayList<Byte>(length); in toByteArray()
531 byteArray.add(Byte.valueOf(data[offset + i])); in toByteArray()
536 private ArrayList<Byte> toByteArray(@Nullable byte[] data) { in toByteArray()
538 return new ArrayList<Byte>(); in toByteArray()
543 private byte[] toBytes(@NonNull ArrayList<Byte> byteArray) { in toBytes()
1073 public void onValues(int status, ArrayList<Byte> sessionId) { in onValues()
[all …]
H A DMediaDescrambler.java161 ArrayList<Byte> byteArray = new ArrayList<>(); in setMediaCasSession()
165 byteArray = new ArrayList<Byte>(length); in setMediaCasSession()
167 byteArray.add(Byte.valueOf(sessionId[i])); in setMediaCasSession()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifTag.java478 } else if (obj instanceof Byte) { in setValue()
479 return setValue(((Byte) obj).byteValue()); in setValue()
504 } else if (obj instanceof Byte[]) { in setValue()
506 Byte[] arr = (Byte[]) obj; in setValue()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DAuthenticationConsumer.java28 ArrayList<Byte> hardwareAuthToken); in onAuthenticated()
/aosp14/frameworks/base/core/java/android/hardware/camera2/
H A DCaptureResult.java3077 public static final Key<Byte> JPEG_QUALITY =
3078 new Key<Byte>("android.jpeg.quality", byte.class);
3090 public static final Key<Byte> JPEG_THUMBNAIL_QUALITY =
3091 new Key<Byte>("android.jpeg.thumbnailQuality", byte.class);
3757 public static final Key<Byte> REQUEST_PIPELINE_DEPTH =
3758 new Key<Byte>("android.request.pipelineDepth", byte.class);
/aosp14/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/
H A DWifiNl80211ManagerTest.java1298 public static String bytesToHexOrQuotedString(ArrayList<Byte> bytes) { in bytesToHexOrQuotedString()
1304 if (!bytes.contains(Byte.valueOf((byte) 0))) { in bytesToHexOrQuotedString()
1324 public static ArrayList<Byte> decodeSsid(String ssidStr) { in decodeSsid()
1325 ArrayList<Byte> ssidBytes = hexOrQuotedStringToBytes(ssidStr); in decodeSsid()
1336 public static byte[] byteArrayFromArrayList(ArrayList<Byte> bytes) { in byteArrayFromArrayList()
1339 for (Byte b : bytes) { in byteArrayFromArrayList()
1367 public static ArrayList<Byte> hexOrQuotedStringToBytes(String str) { in hexOrQuotedStringToBytes()
1386 public static ArrayList<Byte> stringToByteArrayList(String str) { in stringToByteArrayList()
1405 public static ArrayList<Byte> byteArrayToArrayList(byte[] bytes) { in byteArrayToArrayList()
1406 ArrayList<Byte> byteList = new ArrayList<>(); in byteArrayToArrayList()
[all …]
/aosp14/frameworks/base/core/jni/hwbinder/
H A DEphemeralStorage.cpp106 DEFINE_ALLOC_VECTOR_METHODS(Int8,jbyte,Byte) in DEFINE_ALLOC_VECTOR_METHODS() argument
152 DEFINE_RELEASE_ARRAY_CASE(Int8,jbyte,Byte)
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
H A DFingerprint21UdfpsMock.java167 @Nullable final ArrayList<Byte> token;
170 int fingerId, int groupId, @Nullable ArrayList<Byte> token) { in LastAuthArgs()
210 ArrayList<Byte> token) { in onAuthenticated()
242 ArrayList<Byte> token) { in sendAuthenticated()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DBundleMergerTest.java59 for (int strategy = Byte.MIN_VALUE; strategy < Byte.MAX_VALUE; strategy++) { in testNoConflict()
72 for (int strategy = Byte.MIN_VALUE; strategy < Byte.MAX_VALUE; strategy++) { in testMixedTypes()

12345