/frameworks/base/wifi/java/src/android/net/wifi/ |
D | SoftApConfToXmlMigrationUtil.java | 111 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/ |
D | TestFileUtils.java | 27 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/ |
D | PackageStatusStorage.java | 131 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/ |
D | PowerStatsServiceTest.java | 302 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/ |
D | ShellHelper.java | 52 try(FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandRaw() argument 54 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommandRaw()
|
D | WindowPerfTestBase.java | 123 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/ |
D | AppWarnings.java | 514 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()
|
D | CompatModePackages.java | 266 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/ |
D | TertiaryKeyRotationWindowedCount.java | 111 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/ |
D | SysuiTestCase.java | 162 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/ |
D | FusedLocationServiceTest.java | 212 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/ |
D | Font.java | 138 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/ |
D | LocalSocketImpl.java | 39 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/ |
D | BackgroundDexOptServiceIntegrationTests.java | 151 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/ |
D | PackageInstallerSessionTest.java | 226 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/ |
D | TransferPipe.java | 249 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/ |
D | ProcessedPackagesJournalTest.java | 144 try (FileInputStream fis = new FileInputStream(journal); in readJournalPackages() argument 145 DataInputStream dis = new DataInputStream(fis)) { in readJournalPackages()
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserModel.java | 993 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/ |
D | BitmapFactory.java | 840 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/ |
D | FontFileUtilTest.java | 82 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/ |
D | IntentFirewall.java | 310 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/ |
D | SystemUpdateManagerService.java | 134 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/ |
D | PersistableBundleUtils.java | 310 try (FileInputStream fis = new FileInputStream(file)) { in readFromDisk() argument 311 return PersistableBundle.readFromStream(fis); in readFromDisk()
|
/frameworks/base/core/java/android/app/backup/ |
D | BlobBackupHelper.java | 93 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/ |
D | AdditionalSubtypeUtils.java | 203 try (FileInputStream fis = subtypesFile.openRead()) { in load() argument 204 final TypedXmlPullParser parser = Xml.resolvePullParser(fis); in load()
|