Home
last modified time | relevance | path

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

12345

/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAnswerToReset.java61 private Byte mCheckByte;
146 private static String byteToStringHex(Byte b) { in byteToStringHex()
238 Byte newTD = interfaceByte.getTD(); in parseInterfaceBytes()
340 private Byte mTA;
341 private Byte mTB;
342 private Byte mTC;
343 private Byte mTD;
346 public Byte getTA() { in getTA()
351 public Byte getTB() { in getTB()
356 public Byte getTC() { in getTC()
[all …]
DPlmnActRecord.java67 this.accessTechs = (Byte.toUnsignedInt(bytes[offset + 3]) << 8) in PlmnActRecord()
68 | Byte.toUnsignedInt(bytes[offset + 4]); in PlmnActRecord()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java52 public static ArrayList<Byte> stringToByteArrayList(String str) { in stringToByteArrayList()
74 public static String stringFromByteArrayList(ArrayList<Byte> byteArrayList) { in stringFromByteArrayList()
80 for (Byte b : byteArrayList) { in stringFromByteArrayList()
225 public static ArrayList<Byte> hexOrQuotedStringToBytes(String str) { in hexOrQuotedStringToBytes()
248 public static String bytesToHexOrQuotedString(ArrayList<Byte> bytes) { in bytesToHexOrQuotedString()
254 if (!bytes.contains(Byte.valueOf((byte) 0))) { in bytesToHexOrQuotedString()
274 public static ArrayList<Byte> decodeSsid(String ssidStr) { in decodeSsid()
288 public static String encodeSsid(ArrayList<Byte> ssidBytes) { in encodeSsid()
295 public static ArrayList<Byte> byteArrayToArrayList(byte[] bytes) { in byteArrayToArrayList()
296 ArrayList<Byte> byteList = new ArrayList<>(); in byteArrayToArrayList()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
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()
/frameworks/base/media/java/android/media/
DMediaCas.java140 toBytes((ArrayList<Byte>) msg.obj)); in handleMessage()
147 public void onEvent(int event, int arg, @Nullable ArrayList<Byte> data)
189 private ArrayList<Byte> toByteArray(@NonNull byte[] data, int offset, int length) { in toByteArray()
190 ArrayList<Byte> byteArray = new ArrayList<Byte>(length); in toByteArray()
192 byteArray.add(Byte.valueOf(data[offset + i])); in toByteArray()
197 private ArrayList<Byte> toByteArray(@Nullable byte[] data) { in toByteArray()
199 return new ArrayList<Byte>(); in toByteArray()
204 private byte[] toBytes(@NonNull ArrayList<Byte> byteArray) { in toBytes()
218 final ArrayList<Byte> mSessionId;
220 Session(@NonNull ArrayList<Byte> sessionId) { in Session()
[all …]
DMediaExtractor.java304 private ArrayList<Byte> toByteArray(@NonNull byte[] data) { in toByteArray()
305 ArrayList<Byte> byteArray = new ArrayList<Byte>(data.length); in toByteArray()
307 byteArray.add(i, Byte.valueOf(data[i])); in toByteArray()
/frameworks/base/core/java/android/hardware/camera2/marshal/
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;
122 if (klass == byte.class || klass == Byte.class) { in isPrimitiveClass()
155 return (Class<T>)Byte.class; in wrapClassIfPrimitive()
/frameworks/base/obex/javax/obex/
DHeaderSet.java227 private Byte[] mByteUserDefined; // 1 byte
233 private Byte mSingleResponseMode; // byte to indicate enable/disable/support for SRM
235 private Byte mSrmParam; // byte representing the SRM parameters - only "wait"
255 mByteUserDefined = new Byte[16]; in HeaderSet()
420 if (!(headerValue instanceof Byte)) { in setHeader()
424 mSingleResponseMode = (Byte)headerValue; in setHeader()
432 if (!(headerValue instanceof Byte)) { in setHeader()
436 mSrmParam = (Byte)headerValue; in setHeader()
470 if ((headerValue != null) && (!(headerValue instanceof Byte))) { in setHeader()
473 mByteUserDefined[headerID - 0xB0] = (Byte)headerValue; in setHeader()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DByteBufferReader.java31 public static final int MINIMUM_INTEGER_SIZE = Byte.BYTES;
59 value = (value << Byte.SIZE) | (octets[n] & 0xFF); in readInteger()
63 value = (value << Byte.SIZE) | (octet & 0xFF); in readInteger()
DSupplicantStaNetworkHal.java102 private ArrayList<Byte> mSsid;
112 private ArrayList<Byte> mWepKey;
118 private ArrayList<Byte> mEapIdentity;
119 private ArrayList<Byte> mEapAnonymousIdentity;
120 private ArrayList<Byte> mEapPassword;
982 private boolean setSsid(java.util.ArrayList<Byte> ssid) { in setSsid()
1141 private boolean setWepKey(int keyIdx, java.util.ArrayList<Byte> wepKey) { in setWepKey()
1225 private boolean setEapIdentity(java.util.ArrayList<Byte> identity) { in setEapIdentity()
1239 private boolean setEapAnonymousIdentity(java.util.ArrayList<Byte> identity) { in setEapAnonymousIdentity()
1253 private boolean setEapPassword(java.util.ArrayList<Byte> password) { in setEapPassword()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java267 public SupplicantStatus answer(ArrayList<Byte> ssid) throws RemoteException { in testSsidSaveFailure()
538 ArrayList<Byte> resList = new ArrayList<>(); in testSendNetworkEapSimUmtsAuthResponse()
623 public SupplicantStatus answer(ArrayList<Byte> identity) in testSendNetworkEapIdentityResponse()
639 public SupplicantStatus answer(ArrayList<Byte> identity, in testSendNetworkEapIdentityResponse()
640 ArrayList<Byte> encryptedIdentity) in testSendNetworkEapIdentityResponse()
702 final ArrayList<Byte> token = new ArrayList<>(); in testGetWpsNfcConfigurationToken()
703 token.add(Byte.valueOf((byte) 0x45)); in testGetWpsNfcConfigurationToken()
704 token.add(Byte.valueOf((byte) 0x34)); in testGetWpsNfcConfigurationToken()
859 public SupplicantStatus answer(ArrayList<Byte> ssid) throws RemoteException { in setupISupplicantNetworkMock()
954 public SupplicantStatus answer(int keyIdx, ArrayList<Byte> key) throws RemoteException { in setupISupplicantNetworkMock()
[all …]
/frameworks/base/core/java/android/os/
DHwParcel.java181 public final void writeInt8Vector(ArrayList<Byte> val) { in writeInt8Vector()
397 public final ArrayList<Byte> readInt8Vector() { in readInt8Vector()
398 Byte[] array = HwBlob.wrapArray(readInt8VectorAsArray()); in readInt8Vector()
400 return new ArrayList<Byte>(Arrays.asList(array)); in readInt8Vector()
DHwBlob.java344 public static Byte[] wrapArray(@NonNull byte[] array) { in wrapArray()
346 Byte[] wrappedArray = new Byte[n]; in wrapArray()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DAnswerToResetTest.java94 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestNoHistoricalByte()
111 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestNoInterfaceByte()
141 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestSuccess()
222 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestEuiccSupported()
256 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestEuiccSupportedWithLowerCaseString()
290 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestEuiccNotSupportedDueToIncorrectT()
324 assertEquals(atr.getCheckByte(), Byte.valueOf((byte) 0x97)); in testAnswerToRestEuiccNotSupportedDueToIncorrectTB()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/
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()
69 sACControlInterfaceNames = new HashMap<Byte, String>(); in initACControlInterfaceNames()
87 sACStreamingInterfaceNames = new HashMap<Byte, String>(); in initACStreamingInterfaceNames()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
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()
/frameworks/base/core/java/com/android/internal/util/
DTypedProperties.java268 if (value < Byte.MIN_VALUE || value > Byte.MAX_VALUE) { in parseValue()
271 return new Byte((byte)value); in parseValue()
459 if (value instanceof Byte) { in getByte()
460 return ((Byte)value).byteValue(); in getByte()
/frameworks/support/persistence/db/src/main/java/androidx/sqlite/db/
DSimpleSQLiteQuery.java98 } else if (arg instanceof Byte) { in bind()
99 statement.bindLong(index, (Byte) arg); in bind()
/frameworks/base/core/java/android/hardware/camera2/
DCaptureResult.java2476 public static final Key<Byte> JPEG_QUALITY =
2477 new Key<Byte>("android.jpeg.quality", byte.class);
2487 public static final Key<Byte> JPEG_THUMBNAIL_QUALITY =
2488 new Key<Byte>("android.jpeg.thumbnailQuality", byte.class);
3096 public static final Key<Byte> REQUEST_PIPELINE_DEPTH =
3097 new Key<Byte>("android.request.pipelineDepth", byte.class);
/frameworks/base/services/core/java/com/android/server/oemlock/
DVendorLock.java161 ArrayList<Byte> result = new ArrayList<Byte>(data.length); in toByteArrayList()
/frameworks/base/tests/net/java/com/android/internal/util/
DBitUtilsTest.java39 assertEquals(127, uint8(Byte.MAX_VALUE)); in testUnsignedByteWideningConversions()
40 assertEquals(128, uint8(Byte.MIN_VALUE)); in testUnsignedByteWideningConversions()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackTest.java292 ArrayList<Byte> fakeSsidBytesList = new ArrayList<Byte>() {{ in testOnGroupStarted_success()
336 ArrayList<Byte> fakeSsidBytesList = new ArrayList<Byte>() {{ in testOnGroupStarted_invalidArguments()
474 ArrayList<Byte> tlvs = NativeUtil.byteArrayToArrayList(hexStr2Bin(SERV_DISC_RESP_TLVS)); in testOnServiceDiscoveryResponseCompleted_success()
/frameworks/base/core/jni/hwbinder/
DEphemeralStorage.cpp95 DEFINE_ALLOC_VECTOR_METHODS(Int8,jbyte,Byte) in DEFINE_ALLOC_VECTOR_METHODS() argument
141 DEFINE_RELEASE_ARRAY_CASE(Int8,jbyte,Byte)

12345