Home
last modified time | relevance | path

Searched refs:mInputStream (Results 1 – 13 of 13) sorted by relevance

/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/
DAssetDataSource.java41 private InputStream mInputStream; field in AssetDataSource
59 mInputStream = mAssetManager.open(path, AssetManager.ACCESS_RANDOM); in open()
60 long skipped = mInputStream.skip(dataSpec.position); in open()
70 mBytesRemaining = mInputStream.available(); in open()
98 bytesRead = mInputStream.read(buffer, offset, bytesToRead); in read()
114 if (mInputStream != null) { in close()
116 mInputStream.close(); in close()
120 mInputStream = null; in close()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DProxy.java37 private InputStream mInputStream = null; field in Proxy
71 mOffset += mInputStream.skip(offset - mOffset); in onRead()
80 int bytes = mInputStream.read(data, size - remainingSize, remainingSize); in onRead()
95 FileUtils.closeQuietly(mInputStream); in onRelease()
100 FileUtils.closeQuietly(mInputStream); in recreateInputStream()
101 mInputStream = mFile.getInputStream(mEntry); in recreateInputStream()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunTunerHal.java45 private BufferedInputStream mInputStream; field in HdHomeRunTunerHal
147 mInputStream = new BufferedInputStream(connection.getInputStream()); in connectAndOpenInputStream()
170 if (mInputStream != null) { in readTsStream()
174 return mInputStream.read(javaBuffer, 0, javaBufferSize); in readTsStream()
208 if (mInputStream != null) { in closeInputStreamAndDisconnect()
210 mInputStream.close(); in closeInputStreamAndDisconnect()
214 mInputStream = null; in closeInputStreamAndDisconnect()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java56 private InputStream mInputStream; field in CarAudioZonesHelperTest
81 mInputStream = mContext.getResources().openRawResource(R.raw.car_audio_configuration); in setUp()
87 if (mInputStream != null) { in tearDown()
88 mInputStream.close(); in tearDown()
141 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mCarAudioSettings, mInputStream, in loadAudioZones_parsesAllZones()
164 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mCarAudioSettings, mInputStream, in loadAudioZones_parsesAudioZoneId()
178 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mCarAudioSettings, mInputStream, in loadAudioZones_parsesOccupantZoneId()
195 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mCarAudioSettings, mInputStream, in loadAudioZones_parsesZoneName()
206 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mCarAudioSettings, mInputStream, in loadAudioZones_parsesIsPrimary()
220 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mCarAudioSettings, mInputStream, in loadAudioZones_parsesVolumeGroups()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DFileTsStreamer.java252 private BufferedInputStream mInputStream; field in FileTsStreamer.StreamProvider
261 mInputStream = new BufferedInputStream(new FileInputStream(filepath)); in open()
264 mInputStream = null; in open()
269 return mInputStream != null; in isReady()
313 if (mInputStream == null) { in read()
340 readSize = mInputStream.read(mPreBuffer, 0, mPreBuffer.length); in readInternal()
350 mInputStream.close(); in close()
354 mInputStream = null; in close()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java70 public final FileInputStream mInputStream; field in BluetoothOppSendFileInfo
87 mInputStream = inputStream; in BluetoothOppSendFileInfo()
95 mInputStream = null; in BluetoothOppSendFileInfo()
DBluetoothOppUtility.java429 if (info != null && info.mInputStream != null) { in closeSendFileInfo()
431 info.mInputStream.close(); in closeSendFileInfo()
DBluetoothOppObexClientSession.java459 BufferedInputStream a = new BufferedInputStream(fileInfo.mInputStream, 0x4000); in sendFile()
DBluetoothOppService.java775 if (sendFileInfo == null || sendFileInfo.mInputStream == null) { in insertShare()
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java149 private final FileInputStream mInputStream; field in AoapPhoneCompanionActivity.ProcessorThread
155 mInputStream = new FileInputStream(fd.getFileDescriptor()); in ProcessorThread()
177 int read = mInputStream.read(mBuffer); in run()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java603 private InputStream mInputStream; field in DefaultWallpaperPersister.SetWallpaperTask
629 mInputStream = stream; in SetWallpaperTask()
682 } else if (mInputStream != null) { in doInBackground()
683 wallpaperId = setStreamToWallpaperManagerCompat(mInputStream, allowBackup, in doInBackground()
710 if (mInputStream != null) { in onPostExecute()
712 mInputStream.close(); in onPostExecute()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java132 private final InputStream mInputStream; field in CarAudioZonesHelper
150 mInputStream = Objects.requireNonNull(inputStream); in CarAudioZonesHelper()
169 return parseCarAudioZones(mInputStream); in loadAudioZones()
/packages/apps/Bluetooth/tests/robotests/src/com/android/bluetooth/opp/
DOppSendFileInfoTest.java72 assertThat(sendFileInfo.mInputStream).isEqualTo(mFileInputStream); in testFileOpen()