Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java52 private InputStream mInputStream; field in CarAudioZonesHelperTest
58 mInputStream = mContext.getResources().openRawResource(R.raw.car_audio_configuration); in setUp()
63 if (mInputStream != null) { in tearDown()
64 mInputStream.close(); in tearDown()
91 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mContext, mInputStream, in loadAudioZones_parsesAllZones()
101 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mContext, mInputStream, in loadAudioZones_parsesZoneName()
112 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mContext, mInputStream, in loadAudioZones_parsesIsPrimary()
126 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mContext, mInputStream, in loadAudioZones_parsesVolumeGroups()
137 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mContext, mInputStream, in loadAudioZones_parsesBuses()
152 CarAudioZonesHelper cazh = new CarAudioZonesHelper(mContext, mInputStream, in loadAudioZones_parsesContexts()
[all …]
/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/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/Car/Cluster/src/android/car/cluster/
DSocketThread.java32 private InputStream mInputStream; field in SocketThread
46 mInputStream = inputStream; in SocketThread()
55 mInputStream.read(); in run()
82 mInputStream = null; in close()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java563 private InputStream mInputStream; field in DefaultWallpaperPersister.SetWallpaperTask
589 mInputStream = stream; in SetWallpaperTask()
642 } else if (mInputStream != null) { in doInBackground()
643 wallpaperId = setStreamToWallpaperManagerCompat(mInputStream, allowBackup, in doInBackground()
670 if (mInputStream != null) { in onPostExecute()
672 mInputStream.close(); in onPostExecute()
/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.java779 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/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java80 private final InputStream mInputStream; field in CarAudioZonesHelper
89 mInputStream = inputStream; in CarAudioZonesHelper()
98 parseCarAudioZones(carAudioZones, mInputStream); in loadAudioZones()
/packages/apps/Bluetooth/tests/robotests/src/com/android/bluetooth/opp/
DOppSendFileInfoTest.java72 assertThat(sendFileInfo.mInputStream).isEqualTo(mFileInputStream); in testFileOpen()