Home
last modified time | relevance | path

Searched refs:lengthBytes (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java155 long offsetBytes, long lengthBytes) throws Exception { in writeToSession() argument
157 Utils.writeToSession(session, in, offsetBytes, lengthBytes, lengthBytes); in writeToSession()
162 long offsetBytes, long lengthBytes, long allocateBytes) throws Exception { in writeToSession() argument
164 Utils.writeToSession(session, in, offsetBytes, lengthBytes, allocateBytes); in writeToSession()
168 public void writeToFd(FileDescriptor fd, long offsetBytes, long lengthBytes) throws Exception { in writeToFd() argument
172 copy(in, out, lengthBytes); in writeToFd()
182 long offsetBytes, int lengthBytes) throws Exception { in readFromSessionAndVerifyBytes() argument
183 final byte[] expectedBytes = new byte[lengthBytes]; in readFromSessionAndVerifyBytes()
185 read(in, expectedBytes, offsetBytes, lengthBytes); in readFromSessionAndVerifyBytes()
188 final byte[] actualBytes = new byte[lengthBytes]; in readFromSessionAndVerifyBytes()
[all …]
DUtils.java50 public static void copy(InputStream in, OutputStream out, long lengthBytes) in copy() argument
54 while (bytesWrittern < lengthBytes) { in copy()
55 final int toWrite = (bytesWrittern + buffer.length <= lengthBytes) in copy()
56 ? buffer.length : (int) (lengthBytes - bytesWrittern); in copy()
74 long lengthBytes) throws IOException { in writeToSession() argument
76 writeToSession(session, in, 0, lengthBytes, lengthBytes); in writeToSession()
81 long offsetBytes, long lengthBytes, long allocateBytes) throws IOException { in writeToSession() argument
85 copy(in, out, lengthBytes); in writeToSession()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DEapAkaResponse.java194 byte[] lengthBytes = BytesConverter.convertIntegerTo4Bytes(message.length); in generateEapAkaSynchronizationFailureResponse()
195 message[2] = lengthBytes[2]; in generateEapAkaSynchronizationFailureResponse()
196 message[3] = lengthBytes[3]; in generateEapAkaSynchronizationFailureResponse()
226 byte[] lengthBytes = BytesConverter.convertIntegerTo4Bytes(message.length); in createEapAkaChallengeResponse()
227 message[2] = lengthBytes[2]; in createEapAkaChallengeResponse()
228 message[3] = lengthBytes[3]; in createEapAkaChallengeResponse()
/frameworks/base/core/java/android/content/pm/
DIPackageInstallerSession.aidl35 ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes); in openWrite() argument
38 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in write() argument
56 …void addFile(int location, String name, long lengthBytes, in byte[] metadata, in byte[] signature); in addFile() argument
DInstallationFile.java41 long lengthBytes, @Nullable byte[] metadata, @Nullable byte[] signature) { in InstallationFile() argument
45 mParcel.size = lengthBytes; in InstallationFile()
DIPackageInstallerSessionFileSystemConnector.aidl23 void writeData(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in writeData() argument
DPackageInstaller.java1597 long lengthBytes) throws IOException { in openWrite() argument
1601 mSession.openWrite(name, offsetBytes, lengthBytes)); in openWrite()
1604 offsetBytes, lengthBytes); in openWrite()
1616 public void write(@NonNull String name, long offsetBytes, long lengthBytes, in write() argument
1619 mSession.write(name, offsetBytes, lengthBytes, fd); in write()
1788 public void addFile(@FileLocation int location, @NonNull String name, long lengthBytes, in addFile() argument
1791 mSession.addFile(location, name, lengthBytes, metadata, signature); in addFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java128 private String lengthBytes; field in UiccCarrierPrivilegeRules.TLV
149 lengthBytes = data.substring(offset, offset + 2); in parseLength()
153 lengthBytes = data.substring(offset, offset + 2 + numBytes * 2); in parseLength()
155 log("TLV parseLength length=" + length + "lenghtBytes: " + lengthBytes); in parseLength()
156 return lengthBytes; in parseLength()
170 index += lengthBytes.length(); in parse()
563 String lengthBytes = allRules.parseLength(mRules); in isDataComplete() local
564 log("isDataComplete lengthBytes: " + lengthBytes); in isDataComplete()
565 if (mRules.length() == TAG_ALL_REF_AR_DO.length() + lengthBytes.length() + in isDataComplete()
626 if (!cpDo.lengthBytes.equals("06") || !cpDo.value.equals(CARRIER_PRIVILEGE_AID) in parseRefArdo()
/frameworks/base/core/jni/
Dandroid_service_DataLoaderService.cpp63 jlong lengthBytes, in nativeWriteData() argument
66 …return DataLoader_FilesystemConnector_writeData(connector, name, offsetBytes, lengthBytes, incomin… in nativeWriteData()
/frameworks/base/core/java/android/service/dataloader/
DDataLoaderService.java218 public void writeData(@NonNull String name, long offsetBytes, long lengthBytes, in writeData() argument
221 nativeWriteData(mNativeInstance, name, offsetBytes, lengthBytes, incomingFd); in writeData()
247 long lengthBytes, ParcelFileDescriptor incomingFd); in nativeWriteData() argument
/frameworks/base/services/core/java/com/android/server/powerstats/
DPowerStatsDataStorage.java78 byte[] lengthBytes = new byte[LENGTH_FIELD_WIDTH]; in DataElement()
79 int bytesRead = in.read(lengthBytes); in DataElement()
83 int length = ByteBuffer.wrap(lengthBytes).getInt(); in DataElement()
/frameworks/base/apex/blobstore/framework/java/android/app/blob/
DIBlobStoreSession.aidl23 ParcelFileDescriptor openWrite(long offsetBytes, long lengthBytes); in openWrite() argument
DBlobStoreManager.java675 @BytesLong long lengthBytes) throws IOException { in openWrite() argument
677 final ParcelFileDescriptor pfd = mSession.openWrite(offsetBytes, lengthBytes); in openWrite()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreSession.java212 @BytesLong long lengthBytes) { in openWrite() argument
225 fd = openWriteInternal(offsetBytes, lengthBytes); in openWrite()
245 @BytesLong long lengthBytes) throws IOException { in openWriteInternal() argument
260 if (lengthBytes > 0) { in openWriteInternal()
261 mContext.getSystemService(StorageManager.class).allocateBytes(fd, lengthBytes); in openWriteInternal()
/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
DSecureChannel.java298 final byte[] lengthBytes = new byte[4]; in readMessage()
299 Streams.readFully(mInput, lengthBytes); in readMessage()
300 final int length = ByteBuffer.wrap(lengthBytes).getInt(); in readMessage()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java909 int lengthBytes = 2 + (addressLength + 1) / 2; in getAddress() local
912 ret = new GsmSmsAddress(mPdu, mCur, lengthBytes); in getAddress()
919 mCur += lengthBytes; in getAddress()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1875 public ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes) { in openWrite() argument
1878 return doWriteInternal(name, offsetBytes, lengthBytes, null); in openWrite()
1885 public void write(String name, long offsetBytes, long lengthBytes, in write() argument
1889 doWriteInternal(name, offsetBytes, lengthBytes, fd); in write()
1944 private ParcelFileDescriptor doWriteInternal(String name, long offsetBytes, long lengthBytes, in doWriteInternal() argument
1986 if (stageDir != null && lengthBytes > 0) { in doWriteInternal()
1988 targetPfd.getFileDescriptor(), lengthBytes, in doWriteInternal() local
2004 lengthBytes, null, Runnable::run, in doWriteInternal() local
2302 public void writeData(String name, long offsetBytes, long lengthBytes, in writeData() argument
2311 doWriteInternal(name, offsetBytes, lengthBytes, incomingFd); in writeData()
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...