Home
last modified time | relevance | path

Searched refs:fis (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/wifi/java/src/android/net/wifi/
DSoftApConfToXmlMigrationUtil.java111 private static SoftApConfiguration loadFromLegacyFile(InputStream fis) { in loadFromLegacyFile() argument
116 in = new DataInputStream(new BufferedInputStream(fis)); in loadFromLegacyFile()
249 public static InputStream convert(InputStream fis) { in convert() argument
250 SoftApConfiguration softApConf = loadFromLegacyFile(fis); in convert()
266 FileInputStream fis = null; in convert() local
268 fis = new FileInputStream(file); in convert()
272 if (fis == null) return null; in convert()
273 return convert(fis); in convert()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/
DTestFileUtils.java27 try (FileInputStream fis = new FileInputStream(file)) { in toByteArray() argument
28 return ByteStreams.toByteArray(fis); in toByteArray()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageStatusStorage.java131 try (FileInputStream fis = mPackageStatusFile.openRead()) { in getPackageStatusLocked() argument
132 TypedXmlPullParser parser = parseToPackageStatusTag(fis); in getPackageStatusLocked()
256 try (FileInputStream fis = mPackageStatusFile.openRead()) { in getCurrentOptimisticLockId() argument
257 TypedXmlPullParser parser = parseToPackageStatusTag(fis); in getCurrentOptimisticLockId()
267 private static TypedXmlPullParser parseToPackageStatusTag(FileInputStream fis) in parseToPackageStatusTag() argument
270 TypedXmlPullParser parser = Xml.resolvePullParser(fis); in parseToPackageStatusTag()
/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java302 FileInputStream fis = new FileInputStream(incidentReport); in testWrittenMeterDataMatchesReadIncidentReportData() local
304 fis.read(fileContent); in testWrittenMeterDataMatchesReadIncidentReportData()
346 FileInputStream fis = new FileInputStream(incidentReport); in testWrittenModelDataMatchesReadIncidentReportData() local
348 fis.read(fileContent); in testWrittenModelDataMatchesReadIncidentReportData()
393 FileInputStream fis = new FileInputStream(incidentReport); in testWrittenResidencyDataMatchesReadIncidentReportData() local
395 fis.read(fileContent); in testWrittenResidencyDataMatchesReadIncidentReportData()
453 FileInputStream fis = new FileInputStream(incidentReport); in testCorruptOnDeviceMeterStorage() local
455 fis.read(fileContent); in testCorruptOnDeviceMeterStorage()
496 FileInputStream fis = new FileInputStream(incidentReport); in testCorruptOnDeviceModelStorage() local
498 fis.read(fileContent); in testCorruptOnDeviceModelStorage()
[all …]
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java52 try(FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandRaw() argument
54 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommandRaw()
DWindowPerfTestBase.java123 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeShellCommand() argument
124 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
/frameworks/base/services/core/java/com/android/server/wm/
DAppWarnings.java514 FileInputStream fis = null; in readConfigFromFileAmsThread() local
517 fis = mConfigFile.openRead(); in readConfigFromFileAmsThread()
519 final TypedXmlPullParser parser = Xml.resolvePullParser(fis); in readConfigFromFileAmsThread()
552 if (fis != null) Slog.w(TAG, "Error reading package metadata", e); in readConfigFromFileAmsThread()
554 if (fis != null) { in readConfigFromFileAmsThread()
556 fis.close(); in readConfigFromFileAmsThread()
DCompatModePackages.java266 FileInputStream fis = null; in CompatModePackages() local
268 fis = mFile.openRead(); in CompatModePackages()
269 TypedXmlPullParser parser = Xml.resolvePullParser(fis); in CompatModePackages()
301 if (fis != null) Slog.w(TAG, "Error reading compat-packages", e); in CompatModePackages()
303 if (fis != null) { in CompatModePackages()
305 fis.close(); in CompatModePackages()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationWindowedCount.java111 try (FileInputStream fis = new FileInputStream(mFile); in loadFromFile() argument
112 DataInputStream dis = new DataInputStream(fis)) { in loadFromFile()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java162 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
163 while (fis.read() != -1); in runShellCommand()
164 fis.close(); in runShellCommand()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java212 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in setMockLocation() argument
217 while ((count = fis.read(buffer)) != -1) { in setMockLocation()
220 fis.close(); in setMockLocation()
/frameworks/base/graphics/java/android/graphics/fonts/
DFont.java138 try (FileInputStream fis = new FileInputStream(path)) { in Builder() argument
139 final FileChannel fc = fis.getChannel(); in Builder()
165 try (FileInputStream fis = new FileInputStream(fd.getFileDescriptor())) { in Builder() argument
166 final FileChannel fc = fis.getChannel(); in Builder()
278 try (FileInputStream fis = assetFD.createInputStream()) { in createBuffer() argument
279 final FileChannel fc = fis.getChannel(); in createBuffer()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java39 private SocketInputStream fis; field in LocalSocketImpl
323 if (fis == null) { in getInputStream()
324 fis = new SocketInputStream(); in getInputStream()
327 return fis; in getInputStream()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java151 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
153 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
156 fis.close(); in runShellCommand()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java226 FileInputStream fis = null; in restoreSessions() local
228 fis = mSessionsFile.openRead(); in restoreSessions()
229 TypedXmlPullParser in = Xml.resolvePullParser(fis); in restoreSessions()
255 IoUtils.closeQuietly(fis); in restoreSessions()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java249 final FileInputStream fis; in run() local
258 fis = new FileInputStream(readFd.getFileDescriptor()); in run()
271 while ((size=fis.read(buffer)) > 0) { in run()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DProcessedPackagesJournalTest.java144 try (FileInputStream fis = new FileInputStream(journal); in readJournalPackages() argument
145 DataInputStream dis = new DataInputStream(fis)) { in readJournalPackages()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java993 FileInputStream fis = null; in readHistoricalDataImpl() local
995 fis = mContext.openFileInput(mHistoryFileName); in readHistoricalDataImpl()
1004 parser.setInput(fis, StandardCharsets.UTF_8.name()); in readHistoricalDataImpl()
1053 if (fis != null) { in readHistoricalDataImpl()
1055 fis.close(); in readHistoricalDataImpl()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java840 FileInputStream fis = new FileInputStream(fd); in decodeFileDescriptor() local
842 bm = decodeStreamInternal(fis, outPadding, opts); in decodeFileDescriptor()
845 fis.close(); in decodeFileDescriptor()
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java82 try (FileInputStream fis = new FileInputStream(file)) { in mmap() argument
83 FileChannel channel = fis.getChannel(); in mmap()
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java310 FileInputStream fis; in readRules() local
312 fis = new FileInputStream(rulesFile); in readRules()
321 parser.setInput(fis, null); in readRules()
365 fis.close(); in readRules()
/frameworks/base/services/core/java/com/android/server/
DSystemUpdateManagerService.java134 try (FileInputStream fis = mFile.openRead()) { in loadSystemUpdateInfoLocked() argument
135 TypedXmlPullParser parser = Xml.resolvePullParser(fis); in loadSystemUpdateInfoLocked()
/frameworks/base/services/core/java/com/android/server/vcn/util/
DPersistableBundleUtils.java310 try (FileInputStream fis = new FileInputStream(file)) { in readFromDisk() argument
311 return PersistableBundle.readFromStream(fis); in readFromDisk()
/frameworks/base/core/java/android/app/backup/
DBlobBackupHelper.java93 FileInputStream fis = new FileInputStream(oldStateFd.getFileDescriptor()); in readOldState() local
94 DataInputStream in = new DataInputStream(fis); in readOldState()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DAdditionalSubtypeUtils.java203 try (FileInputStream fis = subtypesFile.openRead()) { in load() argument
204 final TypedXmlPullParser parser = Xml.resolvePullParser(fis); in load()

12