Home
last modified time | relevance | path

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

/aosp12/system/nfc/src/adaptation/
H A Dlibmain.cc89 int fileStream = open(filename.c_str(), O_RDONLY); in nfa_nv_co_read() local
90 if (fileStream >= 0) { in nfa_nv_co_read()
92 size_t checkSumRdData = read(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_read()
97 size_t actualReadData = read(fileStream, pBuffer, nbytes); in nfa_nv_co_read()
98 close(fileStream); in nfa_nv_co_read()
140 int fileStream = in nfa_nv_co_write() local
142 if (fileStream >= 0) { in nfa_nv_co_write()
144 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_write()
145 size_t actualWrittenData = write(fileStream, pBuffer, nbytes); in nfa_nv_co_write()
155 close(fileStream); in nfa_nv_co_write()
H A DCrcChecksum.cc97 int fileStream = open(filename, O_RDONLY); in crcChecksumVerifyIntegrity() local
98 if (fileStream >= 0) { in crcChecksumVerifyIntegrity()
101 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); in crcChecksumVerifyIntegrity()
104 ssize_t actualReadData = read(fileStream, buffer, sizeof(buffer)); in crcChecksumVerifyIntegrity()
110 close(fileStream); in crcChecksumVerifyIntegrity()
H A Ddebug_nfcsnoop.cc217 int fileStream; in storeNfcSnoopLogs() local
229 fileStream = open(filepath.c_str(), O_RDWR | O_CREAT | O_TRUNC, in storeNfcSnoopLogs()
232 fileStream = open(filepath.c_str(), O_RDWR | O_CREAT | O_APPEND, in storeNfcSnoopLogs()
237 if (fileStream >= 0) { in storeNfcSnoopLogs()
238 debug_nfcsnoop_dump(fileStream); in storeNfcSnoopLogs()
239 close(fileStream); in storeNfcSnoopLogs()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/
H A DPbapParserTest.java74 InputStream fileStream; in testNoTimestamp() local
75 fileStream = mTestResources.openRawResource( in testNoTimestamp()
77 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testNoTimestamp()
96 InputStream fileStream; in testMissedCall() local
97 fileStream = mTestResources.openRawResource( in testMissedCall()
99 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testMissedCall()
117 InputStream fileStream; in testUnknownCall() local
118 fileStream = mTestResources.openRawResource( in testUnknownCall()
120 BluetoothPbapVcardList pbapVCardList = new BluetoothPbapVcardList(mAccount, fileStream, in testUnknownCall()
140 InputStream fileStream; in testPullPhoneBook() local
[all …]
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/backup/
H A DMissingHashCodeGeneratorJobService.java129 InputStream fileStream = null; in onStartJob()
131 fileStream = new FileInputStream(parcelFd.getFileDescriptor()); in onStartJob()
132 lockBitmap = BitmapFactory.decodeStream(fileStream); in onStartJob()
137 if (fileStream != null) { in onStartJob()
139 fileStream.close(); in onStartJob()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/
H A DLogEulogizerTest.kt61 private val fileStream = ByteArrayOutputStream() regex
62 private val fileWriter = BufferedWriter(OutputStreamWriter(fileStream))
101 assertTrue(fileStream.toString().isNotEmpty())
115 assertTrue(fileStream.toString().isNotEmpty())
129 assertTrue(fileStream.toString().isEmpty())
/aosp12/packages/apps/Contacts/src/com/android/contacts/extensions/
H A DExtensionsFactory.java51 final InputStream fileStream = context.getAssets().open(EXTENSIONS_PROPERTIES); in init() local
53 sProperties.load(fileStream); in init()
54 fileStream.close(); in init()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
H A DDefaultWallpaperRefresher.java250 InputStream fileStream = null; in getLockWallpaperBitmap() local
252 fileStream = new FileInputStream(pfd.getFileDescriptor()); in getLockWallpaperBitmap()
253 lockBitmap = BitmapFactory.decodeStream(fileStream); in getLockWallpaperBitmap()
259 if (fileStream != null) { in getLockWallpaperBitmap()
261 fileStream.close(); in getLockWallpaperBitmap()
H A DDefaultWallpaperPersister.java857 InputStream fileStream = null; in saveLockWallpaperHashCode() local
859 fileStream = new FileInputStream(parcelFd.getFileDescriptor()); in saveLockWallpaperHashCode()
860 lockBitmap = BitmapFactory.decodeStream(fileStream); in saveLockWallpaperHashCode()
865 if (fileStream != null) { in saveLockWallpaperHashCode()
867 fileStream.close(); in saveLockWallpaperHashCode()
/aosp12/system/tools/hidl/hashing/
H A DHash.cpp55 std::stringstream fileStream; in sha256File() local
56 fileStream << stream.rdbuf(); in sha256File()
57 std::string fileContent = fileStream.str(); in sha256File()
/aosp12/frameworks/base/services/core/java/com/android/server/storage/
H A DCacheQuotaStrategy.java279 FileOutputStream fileStream = null; in writeXmlToFile() local
281 fileStream = mPreviousValuesFile.startWrite(); in writeXmlToFile()
282 TypedXmlSerializer out = Xml.resolveSerializer(fileStream); in writeXmlToFile()
284 mPreviousValuesFile.finishWrite(fileStream); in writeXmlToFile()
287 mPreviousValuesFile.failWrite(fileStream); in writeXmlToFile()
/aosp12/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp172 std::unique_ptr<SkFILEStream> fileStream; in ImageDecoder_nCreateFd()
176 fileStream.reset(new SkFILEStream(file)); in ImageDecoder_nCreateFd()
178 fileStream.reset(new SkFILEStream(file, length)); in ImageDecoder_nCreateFd()
180 return native_create(env, std::move(fileStream), source, preferAnimation); in ImageDecoder_nCreateFd()
H A DBitmapFactory.cpp560 std::unique_ptr<SkFILEStream> fileStream(new SkFILEStream(file)); in nativeDecodeFileDescriptor()
565 return doDecode(env, std::move(fileStream), padding, bitmapFactoryOptions, in nativeDecodeFileDescriptor()
573 std::move(fileStream), SkCodec::MinBufferedBytesNeeded())); in nativeDecodeFileDescriptor()
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DLayoutLibTestCallback.java159 try (FileInputStream fileStream = new FileInputStream(fileName)) { in createXmlParserForFile() argument
162 ByteStreams.copy(fileStream, byteOutputStream); in createXmlParserForFile()
/aosp12/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
H A DDownloadServiceTest.kt423 val fileStream = contentResolver.openInputStream(testFile) regex
425 val contents = InputStreamReader(fileStream, StandardCharsets.UTF_8).use {
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/
H A DBluetoothKeystoreService.java572 InputStream fileStream = Files.newInputStream(Paths.get(filePathString)); in readHashFile() local
573 while ((bytesRead = fileStream.read(dataBuffer)) != -1) { in readHashFile()
/aosp12/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java4405 InputStream fileStream = Files.newInputStream(pictureToUpload); in uploadCallComposerPicture()
4407 uploadCallComposerPicture(fileStream, contentType, executor, in uploadCallComposerPicture()
4412 fileStream.close(); in uploadCallComposerPicture()
4424 fileStream.close(); in uploadCallComposerPicture()
4437 fileStream.close(); in uploadCallComposerPicture()