Home
last modified time | relevance | path

Searched refs:dos (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DBackupPasswordManagerTest.java201 DataOutputStream dos = null; in writeHashAndSaltToFile() local
206 dos = new DataOutputStream(fos); in writeHashAndSaltToFile()
207 dos.writeInt(salt.length); in writeHashAndSaltToFile()
208 dos.write(salt); in writeHashAndSaltToFile()
209 dos.writeUTF(hash); in writeHashAndSaltToFile()
210 dos.flush(); in writeHashAndSaltToFile()
212 if (dos != null) dos.close(); in writeHashAndSaltToFile()
219 DataOutputStream dos = null; in writePasswordVersionToFile() local
224 dos = new DataOutputStream(fos); in writePasswordVersionToFile()
225 dos.writeInt(version); in writePasswordVersionToFile()
[all …]
DDataChangedJournalTest.java75 DataInputStream dos = new DataInputStream(fos); in addPackage_addsPackagesToEndOfFile() local
76 assertThat(dos.readUTF()).isEqualTo(GMAIL); in addPackage_addsPackagesToEndOfFile()
77 assertThat(dos.readUTF()).isEqualTo(DOCS); in addPackage_addsPackagesToEndOfFile()
78 assertThat(dos.readUTF()).isEqualTo(GOOGLE_PLUS); in addPackage_addsPackagesToEndOfFile()
79 assertThat(dos.available()).isEqualTo(0); in addPackage_addsPackagesToEndOfFile()
DProcessedPackagesJournalTest.java160 DataOutputStream dos = new DataOutputStream(fos)) { in writePermanentJournalPackages()
162 dos.writeUTF(packageName); in writePermanentJournalPackages()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java1010 DataOutputStream dos = new DataOutputStream(baos);
1011 dos.writeInt(envelope.teleService);
1012 dos.writeInt(0); //servicePresent
1013 dos.writeInt(0); //serviceCategory
1014 dos.write(destAddr.digitMode);
1015 dos.write(destAddr.numberMode);
1016 dos.write(destAddr.ton); // number_type
1017 dos.write(destAddr.numberPlan);
1018 dos.write(destAddr.numberOfDigits);
1019 dos.write(destAddr.origBytes, 0, destAddr.origBytes.length); // digits
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java109 DataOutputStream dos = new DataOutputStream(baos); in CdmaInboundSmsHandler()
111 dos.writeInt(SmsEnvelope.TELESERVICE_SCPT); in CdmaInboundSmsHandler()
112 dos.writeInt(0); //servicePresent in CdmaInboundSmsHandler()
113 dos.writeInt(0); //serviceCategory in CdmaInboundSmsHandler()
116 dos.write(destAddr.digitMode); in CdmaInboundSmsHandler()
117 dos.write(destAddr.numberMode); in CdmaInboundSmsHandler()
118 dos.write(destAddr.ton); // number_type in CdmaInboundSmsHandler()
119 dos.write(destAddr.numberPlan); in CdmaInboundSmsHandler()
120 dos.write(destAddr.numberOfDigits); in CdmaInboundSmsHandler()
121 dos.write(destAddr.origBytes, 0, destAddr.origBytes.length); // digits in CdmaInboundSmsHandler()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DAesEncryptionUtil.java88 DataOutputStream dos = new DataOutputStream(bos); in encrypt() local
102 dos.writeInt(iv.length); in encrypt()
103 dos.write(iv); in encrypt()
104 dos.writeInt(cipherText.length); in encrypt()
105 dos.write(cipherText); in encrypt()
DRebootEscrowData.java120 DataOutputStream dos = new DataOutputStream(bos); in fromSyntheticPassword() local
122 dos.writeInt(CURRENT_VERSION); in fromSyntheticPassword()
123 dos.writeByte(spVersion); in fromSyntheticPassword()
124 dos.write(kkEncryptedBlob); in fromSyntheticPassword()
DLockSettingsStorage.java753 DataOutputStream dos = new DataOutputStream(os); in toBytes() local
755 dos.writeByte(PersistentData.VERSION_1); in toBytes()
756 dos.writeByte(persistentType); in toBytes()
757 dos.writeInt(userId); in toBytes()
758 dos.writeInt(qualityForUi); in toBytes()
759 dos.write(payload); in toBytes()
/frameworks/base/services/core/java/com/android/server/timezone/
DCheckToken.java47 try (DataOutputStream dos = new DataOutputStream(baos)) { in toByteArray() argument
48 dos.writeInt(mOptimisticLockId); in toByteArray()
49 dos.writeLong(mPackageVersions.mUpdateAppVersion); in toByteArray()
50 dos.writeLong(mPackageVersions.mDataAppVersion); in toByteArray()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowDataTest.java118 DataOutputStream dos = new DataOutputStream(bos); in fromEncryptedData_legacyVersion_success() local
119 dos.writeInt(1); in fromEncryptedData_legacyVersion_success()
120 dos.writeByte(3); in fromEncryptedData_legacyVersion_success()
121 dos.write(ksEncryptedBlob); in fromEncryptedData_legacyVersion_success()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DBackupFileDecryptorTaskTest.java443 DataOutputStream dos = new DataOutputStream(fos)) { in createEncryptedFileUsingExplicitStarts()
448 dos.write(chunk.nonce()); in createEncryptedFileUsingExplicitStarts()
449 dos.write(chunk.encryptedBytes()); in createEncryptedFileUsingExplicitStarts()
471 dos.write(MessageNano.toByteArray(metadata)); in createEncryptedFileUsingExplicitStarts()
472 dos.writeLong(position); in createEncryptedFileUsingExplicitStarts()
496 DataOutputStream dos = new DataOutputStream(fos)) { in createEncryptedFileUsingInlineLengths()
498 dos.writeInt(chunk.nonce().length + chunk.encryptedBytes().length); in createEncryptedFileUsingInlineLengths()
499 dos.write(chunk.nonce()); in createEncryptedFileUsingInlineLengths()
500 dos.write(chunk.encryptedBytes()); in createEncryptedFileUsingInlineLengths()
514 int metadataStart = dos.size(); in createEncryptedFileUsingInlineLengths()
[all …]
/frameworks/base/core/java/android/content/pm/
DChecksum.java145 public static void writeToStream(@NonNull DataOutputStream dos, @NonNull Checksum checksum) in writeToStream() argument
147 dos.writeInt(checksum.getType()); in writeToStream()
150 dos.writeInt(valueBytes.length); in writeToStream()
151 dos.write(valueBytes); in writeToStream()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DThemedIconDrawable.java163 DataOutputStream dos = new DataOutputStream(out); in toByteArray() local
164 dos.writeByte(TYPE_THEMED); in toByteArray()
165 dos.writeFloat(mNormalizationScale); in toByteArray()
166 dos.writeUTF(resName); in toByteArray()
167 icon.compress(Bitmap.CompressFormat.PNG, 100, dos); in toByteArray()
169 dos.flush(); in toByteArray()
170 dos.close(); in toByteArray()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java446 DataOutputStream dos = new DataOutputStream(os); in toBytes() local
447 dos.writeInt(VERSION_2); in toBytes()
448 dos.writeInt(mAdbKeys.length); in toBytes()
449 dos.write(mAdbKeys); in toBytes()
450 dos.writeInt(mAdbTempKeys.length); in toBytes()
451 dos.write(mAdbTempKeys); in toBytes()
452 dos.close(); in toBytes()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationWindowedCount.java126 DataOutputStream dos = new DataOutputStream(fos)) { in saveToFile()
128 dos.writeLong(event); in saveToFile()
/frameworks/base/core/java/android/ddm/
DDdmHandleViewDebug.java245 DataOutputStream dos = new DataOutputStream(b); in captureLayers() local
247 ViewDebug.captureLayers(rootView, dos); in captureLayers()
253 dos.close(); in captureLayers()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java221 try (DataOutputStream dos = new DataOutputStream(os)) { in writeChecksums() argument
223 Checksum.writeToStream(dos, checksum); in writeChecksums()