Home
last modified time | relevance | path

Searched refs:dos (Results 1 – 12 of 12) 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.java1018 DataOutputStream dos = new DataOutputStream(baos);
1019 dos.writeInt(envelope.teleService);
1020 dos.writeInt(0); //servicePresent
1021 dos.writeInt(0); //serviceCategory
1022 dos.write(destAddr.digitMode);
1023 dos.write(destAddr.numberMode);
1024 dos.write(destAddr.ton); // number_type
1025 dos.write(destAddr.numberPlan);
1026 dos.write(destAddr.numberOfDigits);
1027 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/
DRebootEscrowData.java132 DataOutputStream dos = new DataOutputStream(bos); in fromSyntheticPassword() local
146 dos.writeInt(CURRENT_VERSION); in fromSyntheticPassword()
147 dos.writeByte(spVersion); in fromSyntheticPassword()
148 dos.writeInt(iv.length); in fromSyntheticPassword()
149 dos.write(iv); in fromSyntheticPassword()
150 dos.writeInt(cipherText.length); in fromSyntheticPassword()
151 dos.write(cipherText); in fromSyntheticPassword()
DLockSettingsStorage.java729 DataOutputStream dos = new DataOutputStream(os); in toBytes() local
731 dos.writeByte(PersistentData.VERSION_1); in toBytes()
732 dos.writeByte(persistentType); in toBytes()
733 dos.writeInt(userId); in toBytes()
734 dos.writeInt(qualityForUi); in toBytes()
735 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/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/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java445 DataOutputStream dos = new DataOutputStream(os); in toBytes() local
446 dos.writeInt(VERSION_2); in toBytes()
447 dos.writeInt(mAdbKeys.length); in toBytes()
448 dos.write(mAdbKeys); in toBytes()
449 dos.writeInt(mAdbTempKeys.length); in toBytes()
450 dos.write(mAdbTempKeys); in toBytes()
451 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()