/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/ |
D | FakeBlobData.java | 154 long offsetBytes, long lengthBytes) throws Exception { in writeToSession() argument 156 Utils.writeToSession(session, in, offsetBytes, lengthBytes, lengthBytes); in writeToSession() 161 long offsetBytes, long lengthBytes, long allocateBytes) throws Exception { in writeToSession() argument 163 Utils.writeToSession(session, in, offsetBytes, lengthBytes, allocateBytes); in writeToSession() 167 public void writeToFd(FileDescriptor fd, long offsetBytes, long lengthBytes) throws Exception { in writeToFd() argument 171 copy(in, out, lengthBytes); in writeToFd() 181 long offsetBytes, int lengthBytes) throws Exception { in readFromSessionAndVerifyBytes() argument 182 final byte[] expectedBytes = new byte[lengthBytes]; in readFromSessionAndVerifyBytes() 184 read(in, expectedBytes, offsetBytes, lengthBytes); in readFromSessionAndVerifyBytes() 187 final byte[] actualBytes = new byte[lengthBytes]; in readFromSessionAndVerifyBytes() [all …]
|
D | Utils.java | 47 public static void copy(InputStream in, OutputStream out, long lengthBytes) in copy() argument 51 while (bytesWrittern < lengthBytes) { in copy() 52 final int toWrite = (bytesWrittern + buffer.length <= lengthBytes) in copy() 53 ? buffer.length : (int) (lengthBytes - bytesWrittern); in copy() 71 long lengthBytes) throws IOException { in writeToSession() argument 73 writeToSession(session, in, 0, lengthBytes, lengthBytes); in writeToSession() 78 long offsetBytes, long lengthBytes, long allocateBytes) throws IOException { in writeToSession() argument 82 copy(in, out, lengthBytes); in writeToSession()
|
/frameworks/base/core/java/android/content/pm/ |
D | IPackageInstallerSession.aidl | 32 ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes); in openWrite() argument 35 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in write() argument 48 …void addFile(int location, String name, long lengthBytes, in byte[] metadata, in byte[] signature); in addFile() argument
|
D | InstallationFile.java | 41 long lengthBytes, @Nullable byte[] metadata, @Nullable byte[] signature) { in InstallationFile() argument 45 mParcel.size = lengthBytes; in InstallationFile()
|
D | IPackageInstallerSessionFileSystemConnector.aidl | 23 void writeData(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in writeData() argument
|
D | PackageInstaller.java | 1023 long lengthBytes) throws IOException { in openWrite() argument 1027 mSession.openWrite(name, offsetBytes, lengthBytes)); in openWrite() 1030 offsetBytes, lengthBytes); in openWrite() 1042 public void write(@NonNull String name, long offsetBytes, long lengthBytes, in write() argument 1045 mSession.write(name, offsetBytes, lengthBytes, fd); in write() 1215 public void addFile(@FileLocation int location, @NonNull String name, long lengthBytes, in addFile() argument 1218 mSession.addFile(location, name, lengthBytes, metadata, signature); in addFile()
|
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/ |
D | EapAkaResponse.java | 194 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/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRules.java | 130 private String lengthBytes; field in UiccCarrierPrivilegeRules.TLV 151 lengthBytes = data.substring(offset, offset + 2); in parseLength() 155 lengthBytes = data.substring(offset, offset + 2 + numBytes * 2); in parseLength() 157 log("TLV parseLength length=" + length + "lenghtBytes: " + lengthBytes); in parseLength() 158 return lengthBytes; in parseLength() 172 index += lengthBytes.length(); in parse() 612 String lengthBytes = allRules.parseLength(mRules); in isDataComplete() local 613 log("isDataComplete lengthBytes: " + lengthBytes); in isDataComplete() 614 if (mRules.length() == TAG_ALL_REF_AR_DO.length() + lengthBytes.length() + in isDataComplete() 675 if (!cpDo.lengthBytes.equals("06") || !cpDo.value.equals(CARRIER_PRIVILEGE_AID) in parseRefArdo()
|
/frameworks/base/core/jni/ |
D | android_service_DataLoaderService.cpp | 63 jlong lengthBytes, in nativeWriteData() argument 66 …return DataLoader_FilesystemConnector_writeData(connector, name, offsetBytes, lengthBytes, incomin… in nativeWriteData()
|
/frameworks/base/core/java/android/service/dataloader/ |
D | DataLoaderService.java | 218 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/ |
D | PowerStatsDataStorage.java | 76 byte[] lengthBytes = new byte[LENGTH_FIELD_WIDTH]; in DataElement() 77 int bytesRead = in.read(lengthBytes); in DataElement() 81 int length = ByteBuffer.wrap(lengthBytes).getInt(); in DataElement()
|
/frameworks/base/location/java/com/android/internal/location/ |
D | GpsNetInitiatedHandler.java | 491 int lengthBytes = input.length; in decodeGSMPackedString() local 492 int lengthSeptets = (lengthBytes * 8) / 7; in decodeGSMPackedString() 499 if (lengthBytes % 7 == 0) { in decodeGSMPackedString() 500 if (lengthBytes > 0) { in decodeGSMPackedString() 501 if ((input[lengthBytes - 1] >> 1) == PADDING_CHAR) { in decodeGSMPackedString()
|
/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
D | IBlobStoreSession.aidl | 23 ParcelFileDescriptor openWrite(long offsetBytes, long lengthBytes); in openWrite() argument
|
D | BlobStoreManager.java | 659 @BytesLong long lengthBytes) throws IOException { in openWrite() argument 661 final ParcelFileDescriptor pfd = mSession.openWrite(offsetBytes, lengthBytes); in openWrite()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreSession.java | 212 @BytesLong long lengthBytes) { in openWrite() argument 225 fd = openWriteInternal(offsetBytes, lengthBytes); in openWrite() 244 @BytesLong long lengthBytes) throws IOException { in openWriteInternal() argument 259 if (lengthBytes > 0) { in openWriteInternal() 260 mContext.getSystemService(StorageManager.class).allocateBytes(fd, lengthBytes); in openWriteInternal()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 1455 public ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes) { in openWrite() argument 1458 return doWriteInternal(name, offsetBytes, lengthBytes, null); in openWrite() 1465 public void write(String name, long offsetBytes, long lengthBytes, in write() argument 1469 doWriteInternal(name, offsetBytes, lengthBytes, fd); in write() 1517 private ParcelFileDescriptor doWriteInternal(String name, long offsetBytes, long lengthBytes, in doWriteInternal() argument 1555 if (stageDir != null && lengthBytes > 0) { in doWriteInternal() 1557 targetPfd.getFileDescriptor(), lengthBytes, in doWriteInternal() local 1573 lengthBytes, null, Runnable::run, in doWriteInternal() local 1808 public void writeData(String name, long offsetBytes, long lengthBytes, in writeData() argument 1817 doWriteInternal(name, offsetBytes, lengthBytes, incomingFd); in writeData() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsMessage.java | 843 int lengthBytes = 2 + (addressLength + 1) / 2; in getAddress() local 846 ret = new GsmSmsAddress(mPdu, mCur, lengthBytes); in getAddress() 853 mCur += lengthBytes; in getAddress()
|