Home
last modified time | relevance | path

Searched refs:mInputStream (Results 1 – 21 of 21) 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/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datastore/
DProtoDataSource.java45 private FileInputStream mInputStream; field in ProtoDataSource
117 if (mInputStream == null) { in readFromFile()
118 mInputStream = new FileInputStream(getDataFile()); in readFromFile()
120 result = parseDelimitedFrom(mInputStream); in readFromFile()
124 if (mInputStream != null) { in readFromFile()
126 mInputStream.close(); in readFromFile()
127 mInputStream = null; in readFromFile()
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/proto/
DProtoDataSource.kt38 private var mInputStream: FileInputStream? = null variable in com.android.car.carlaunchercommon.proto.ProtoDataSource
89 if (mInputStream == null) { in readFromFile()
90 mInputStream = FileInputStream(dataFile) in readFromFile()
92 result = parseDelimitedFrom(mInputStream) in readFromFile()
97 mInputStream?.close() in readFromFile()
98 mInputStream = null in readFromFile()
/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/providers/MediaProvider/src/com/android/providers/media/photopicker/data/glide/
DPickerThumbnailFetcher.java53 @Nullable private InputStream mInputStream = null; field in PickerThumbnailFetcher
91 mInputStream = mAssetFileDescriptor.createInputStream(); in loadData()
92 callback.onDataReady(mInputStream); in loadData()
105 if (mInputStream != null) { in cleanup()
106 mInputStream.close(); in cleanup()
/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/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DFileHandle.java33 private final InputStream mInputStream; field in FileHandle
55 mInputStream = is; in FileHandle()
68 return mInputStream; in getInputStream()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/obex/
DFakeObexTransport.java55 InputStream mInputStream; field in FakeObexTransport.BiDirectionalTransport
59 mInputStream = inputStream; in BiDirectionalTransport()
75 return mInputStream; in openInputStream()
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java157 private final FileInputStream mInputStream; field in AoapPhoneCompanionActivity.ProcessorThread
163 mInputStream = new FileInputStream(fd.getFileDescriptor()); in ProcessorThread()
189 int read = mInputStream.read(mBuffer); in run()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java199 private InputStream mInputStream; field in CarAudioZonesHelperTest
232 mInputStream = mContext.getResources().openRawResource(R.raw.car_audio_configuration); in setUp()
239 if (mInputStream != null) { in tearDown()
240 mInputStream.close(); in tearDown()
297 mInputStream, mCarAudioOutputDeviceInfos, mInputAudioDeviceInfos, in loadAudioZones_parsesAllZones()
346 mInputStream, mCarAudioOutputDeviceInfos, mInputAudioDeviceInfos, in loadAudioZones_parsesAudioZoneId()
383 mInputStream, mCarAudioOutputDeviceInfos, mInputAudioDeviceInfos, in loadAudioZones_parsesOccupantZoneId()
428 mInputStream, mCarAudioOutputDeviceInfos, mInputAudioDeviceInfos, in loadAudioZones_parsesZoneName()
463 mInputStream, mCarAudioOutputDeviceInfos, mInputAudioDeviceInfos, in loadAudioZones_parsesIsPrimary()
498 mInputStream, mCarAudioOutputDeviceInfos, mInputAudioDeviceInfos, in loadAudioZones_parsesZoneConfigs()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java492 private InputStream mInputStream; field in DefaultWallpaperPersister.SetWallpaperTask
521 mInputStream = stream; in SetWallpaperTask()
573 } else if (mInputStream != null) { in doInBackground()
574 wallpaperId = setStreamToWallpaperManager(mInputStream, mCropHint, in doInBackground()
615 if (mInputStream != null) { in onPostExecute()
617 mInputStream.close(); in onPostExecute()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java73 public final FileInputStream mInputStream; field in BluetoothOppSendFileInfo
90 mInputStream = inputStream; in BluetoothOppSendFileInfo()
98 mInputStream = null; in BluetoothOppSendFileInfo()
DBluetoothOppUtility.java476 if (info != null && info.mInputStream != null) { in closeSendFileInfo()
478 info.mInputStream.close(); in closeSendFileInfo()
DBluetoothOppObexClientSession.java484 BufferedInputStream a = new BufferedInputStream(fileInfo.mInputStream, 0x4000); in sendFile()
DBluetoothOppService.java905 if (sendFileInfo == null || sendFileInfo.mInputStream == null) { in insertShare()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfoTest.java84 assertThat(info.mInputStream).isEqualTo(inputStream); in createInstance_withFileInputStream()
199 assertThat(info.mInputStream).isEqualTo(fs); in generateFileInfo_withCorrectableMismatch_returnInfoWithCorrectLength()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothSocket.java137 private final BluetoothInputStream mInputStream; field in BluetoothSocket
258 mInputStream = new BluetoothInputStream(this); in BluetoothSocket()
297 mInputStream = new BluetoothInputStream(this); in BluetoothSocket()
382 return mInputStream; in getInputStream()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java152 private final InputStream mInputStream; field in CarAudioZonesHelper
185 mInputStream = Objects.requireNonNull(inputStream); in CarAudioZonesHelper()
211 return parseCarAudioZones(mInputStream); in loadAudioZones()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/
DSapServerTest.java104 @Mock private InputStream mInputStream; field in SapServerTest
117 mSapServer = spy(new SapServer(mHandler, mTargetContext, mInputStream, mOutputStream)); in setUp()
/packages/modules/Bluetooth/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1025 Landroid/bluetooth/BluetoothSocket;->mInputStream:Landroid/bluetooth/BluetoothInputStream;