Home
last modified time | relevance | path

Searched refs:mBytes (Results 1 – 19 of 19) sorted by relevance

/packages/services/Car/car-lib/src/android/car/occupantconnection/
DPayload.java55 private byte[] mBytes; field in Payload
62 this.mBytes = bytes.clone(); in Payload()
80 return mBytes; in getBytes()
102 return Arrays.equals(mBytes, other.mBytes); in equals()
116 return Arrays.hashCode(mBytes); in hashCode()
155 dest.writeByteArray(mBytes); in serialize()
171 mBytes = null; in deserialize()
173 mBytes = src.createByteArray(); in deserialize()
/packages/apps/Gallery2/jni_jpegstream/src/
Dstream_wrapper.cpp25 mBytes(NULL), in StreamWrapper()
62 mBytes = env->GetByteArrayElements(mByteArray, NULL); in init()
63 if (mBytes == NULL || env->ExceptionCheck()){ in init()
77 if (mBytes != NULL) { in cleanup()
78 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_ABORT); in cleanup()
79 mBytes = NULL; in cleanup()
84 mBytes = NULL; in cleanup()
96 return mBytes; in getBufferPtr()
Dinputstream_wrapper.cpp28 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); in read()
29 mBytes = NULL; in read()
38 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); in read()
39 if (mBytes == NULL || mEnv->ExceptionCheck()) { in read()
60 mBytes[0] = (jbyte) 0xFF; in forceReadEOI()
61 mBytes[1] = (jbyte) 0xD9; in forceReadEOI()
Doutputstream_wrapper.cpp26 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); in write()
27 mBytes = NULL; in write()
40 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); in write()
41 if (mBytes == NULL || mEnv->ExceptionCheck()) { in write()
Dstream_wrapper.h40 jbyte* mBytes; variable
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiSsid.java41 private final byte[] mBytes; field in WifiSsid
52 mBytes = bytes; in WifiSsid()
72 return mBytes.clone(); in getBytes()
96 return decodeSsid(mBytes, StandardCharsets.UTF_8); in getUtf8Text()
130 String utf8String = decodeSsid(mBytes, StandardCharsets.UTF_8); in toString()
132 return HexEncoding.encodeToString(mBytes, false /* upperCase */); in toString()
167 return Arrays.equals(mBytes, that.mBytes); in equals()
172 return Arrays.hashCode(mBytes); in hashCode()
184 dest.writeByteArray(mBytes); in writeToParcel()
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java854 private byte[] mBytes; field in StatsEvent.Buffer
871 mBytes = tempBuffer.hasArray() ? tempBuffer.array() : new byte [MAX_PUSH_PAYLOAD_SIZE]; in Buffer()
876 return mBytes; in getBytes()
922 if (mBytes.length < mMaxSize && totalBytesNeeded > mBytes.length) { in hasEnoughSpace()
923 int newSize = mBytes.length; in hasEnoughSpace()
932 mBytes = Arrays.copyOf(mBytes, newSize); in hasEnoughSpace()
947 mBytes[index] = (byte) (value); in putByte()
974 mBytes[index] = (byte) (value); in putInt()
975 mBytes[index + 1] = (byte) (value >> 8); in putInt()
976 mBytes[index + 2] = (byte) (value >> 16); in putInt()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacketListener.java38 protected final byte[] mBytes = new byte[DhcpPacket.MAX_LENGTH]; field in DhcpPacketListener.Payload
49 return buffer.mBytes.length; in recvBufSize()
59 final DhcpPacket packet = DhcpPacket.decodeFullPacket(recvbuf.mBytes, length, in handlePacket()
63 logParseError(recvbuf.mBytes, length, e); in handlePacket()
74 fd, packetBuffer.mBytes, 0, packetBuffer.mBytes.length, 0 /* flags */, addr); in readPacket()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/util/
DHexTest.java36 private final byte[] mBytes = { field in HexTest
64 assertEquals(mLower, Hex.encode(mBytes)); in testEncode()
69 assertEquals(mUpper, Hex.encodeUpper(mBytes)); in testEncodeUpper()
74 assertArrayEquals(mBytes, Hex.decode(mLower)); in testDecodeLower()
79 assertArrayEquals(mBytes, Hex.decode(mUpper)); in testDecodeUpper()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaBytes.java23 private final byte[] mBytes; field in MediaBytes
27 mBytes = bytes; in MediaBytes()
31 return mBytes; in getMediaBytes()
36 return mBytes.length; in getMediaSize()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DImagePersistTask.java44 private final byte[] mBytes; field in ImagePersistTask
64 mBytes = bytes; in ImagePersistTask()
84 exifInterface.readExif(mBytes); in doInBackgroundTimed()
96 bitmap = BitmapFactory.decodeByteArray(mBytes, 0, mBytes.length); in doInBackgroundTimed()
129 outputStream.write(mBytes); in doInBackgroundTimed()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DScanRecord.java358 private final byte[] mBytes; field in ScanRecord
466 return mBytes; in getBytes()
476 while (pos < mBytes.length) { in matchesAnyField()
477 final int length = mBytes[pos] & 0xFF; in matchesAnyField()
481 if (matcher.test(Arrays.copyOfRange(mBytes, pos, pos + length + 1))) { in matchesAnyField()
509 mBytes = bytes; in ScanRecord()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionType.java45 private long mBytes; field in DownloadsDeletionType
135 mBytes = data.totalSize; in onLoadFinished()
204 mListener.onFreeableChanged(mFiles.size(), mBytes); in maybeUpdateListener() local
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java309 private byte[] mBytes = null; field in CarVendorExtensionManagerTest.VendorExtMockedVehicleHal
354 if (propId == CUSTOM_BYTES_PROP_ID_2 && mBytes != null) { in getValues()
355 Log.d(TAG, "Returning byte array property, value size " + mBytes.length); in getValues()
356 resultValue.value.byteValues = mBytes.clone(); in getValues()
394 mBytes = requestedPropValue.value.byteValues.clone(); in setValues()
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/
DTestSafeParcelableWithSparseArray.java52 final SparseArray<byte[]> mBytes; field in TestSafeParcelableWithSparseArray
71 mBytes = bytes; in TestSafeParcelableWithSparseArray()
DSafeParcelableSparseArrayTest.java159 assertByteArrayEquals(val.mBytes, readVal.mBytes); in testReadWriteSafeParcelableWithSparseArray()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java80 private final byte[] mBytes; field in ConnectivityPacketSummary
113 mBytes = buffer; in ConnectivityPacketSummary()
114 mLength = Math.min(length, mBytes.length); in ConnectivityPacketSummary()
115 mPacket = ByteBuffer.wrap(mBytes, 0, mLength); in ConnectivityPacketSummary()
388 dhcpPacket = DhcpPacket.decodeFullPacket(mBytes, mLength, DhcpPacket.ENCAP_L2); in parseDHCPv4()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java3379 private final byte[] mBytes = repeatedString.getBytes(StandardCharsets.UTF_8); in testReadAsString() field in NetworkMonitorTest.TestInputStream
3384 mPosition = (mPosition + 1) % mBytes.length; in testReadAsString()
3385 return mBytes[mPosition]; in testReadAsString()
/packages/modules/Bluetooth/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt2653 Landroid/bluetooth/le/ScanRecord;->mBytes:[B