/aosp14/frameworks/base/wifi/java/src/android/net/wifi/ |
H A 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()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/ |
H A D | PowerStatsServiceTest.java | 303 FileInputStream fis = new FileInputStream(incidentReport); in testWrittenMeterDataMatchesReadIncidentReportData() local 305 fis.read(fileContent); in testWrittenMeterDataMatchesReadIncidentReportData() 347 FileInputStream fis = new FileInputStream(incidentReport); in testWrittenModelDataMatchesReadIncidentReportData() local 349 fis.read(fileContent); in testWrittenModelDataMatchesReadIncidentReportData() 396 fis.read(fileContent); in testWrittenResidencyDataMatchesReadIncidentReportData() 456 fis.read(fileContent); in testCorruptOnDeviceMeterStorage() 499 fis.read(fileContent); in testCorruptOnDeviceModelStorage() 540 fis.read(fileContent); in testCorruptOnDeviceResidencyStorage() 590 fis.read(fileContent); in testNotEnoughBytesAfterMeterLengthField() 634 fis.read(fileContent); in testNotEnoughBytesAfterModelLengthField() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | LetterboxConfigurationPersister.java | 220 FileInputStream fis = null; in readCurrentConfiguration() local 222 fis = mConfigurationFile.openRead(); in readCurrentConfiguration() 223 byte[] protoData = readInputStream(fis); in readCurrentConfiguration() 240 if (fis != null) { in readCurrentConfiguration() 242 fis.close(); in readCurrentConfiguration()
|
H A D | AppWarnings.java | 619 FileInputStream fis = null; in readConfigFromFileAmsThread() local 622 fis = mConfigFile.openRead(); in readConfigFromFileAmsThread() 624 final TypedXmlPullParser parser = Xml.resolvePullParser(fis); in readConfigFromFileAmsThread() 657 if (fis != null) Slog.w(TAG, "Error reading package metadata", e); in readConfigFromFileAmsThread() 659 if (fis != null) { in readConfigFromFileAmsThread() 661 fis.close(); in readConfigFromFileAmsThread()
|
H A D | CompatModePackages.java | 340 FileInputStream fis = null; in CompatModePackages() local 342 fis = mFile.openRead(); in CompatModePackages() 343 TypedXmlPullParser parser = Xml.resolvePullParser(fis); in CompatModePackages() 375 if (fis != null) Slog.w(TAG, "Error reading compat-packages", e); in CompatModePackages() 377 if (fis != null) { in CompatModePackages() 379 fis.close(); in CompatModePackages()
|
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
H A D | HotwordAudioStreamCopier.java | 309 InputStream fis = null; in call() local 312 fis = new ParcelFileDescriptor.AutoCloseInputStream(mAudioSource); in call() 322 int bytesRead = fis.read(buffer); in call() 352 if (fis != null) { in call() 353 fis.close(); in call()
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | ShellHelper.java | 93 try(FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandRaw() argument 95 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommandRaw()
|
H A D | WindowPerfTestBase.java | 123 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeShellCommand() argument 124 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
|
/aosp14/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/ |
H A 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()
|
/aosp14/frameworks/base/graphics/java/android/graphics/fonts/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/net/ |
H A 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()
|
/aosp14/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
H A D | BackgroundDexOptServiceIntegrationTests.java | 155 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local 157 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand() 160 fis.close(); in runShellCommand()
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/ |
H A D | SysuiTestCase.java | 211 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local 212 while (fis.read() != -1); in runShellCommand() 213 fis.close(); in runShellCommand()
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A 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()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | PackageInstallerSessionTest.kt | 229 var fis: FileInputStream? = null 231 fis = mSessionsFile.openRead() 232 val parser = Xml.resolvePullParser(fis) 264 IoUtils.closeQuietly(fis)
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
H A D | ProcessedPackagesJournalTest.java | 144 try (FileInputStream fis = new FileInputStream(journal); in readJournalPackages() argument 145 DataInputStream dis = new DataInputStream(fis)) { in readJournalPackages()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A 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()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 852 FileInputStream fis = new FileInputStream(fd); in decodeFileDescriptor() local 854 bm = decodeStreamInternal(fis, outPadding, opts); in decodeFileDescriptor() 857 fis.close(); in decodeFileDescriptor()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | FontFileUtilTest.java | 82 try (FileInputStream fis = new FileInputStream(file)) { in mmap() argument 83 FileChannel channel = fis.getChannel(); in mmap()
|
/aosp14/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | IntentFirewall.java | 325 FileInputStream fis; in readRules() local 327 fis = new FileInputStream(rulesFile); in readRules() 336 parser.setInput(fis, null); in readRules() 380 fis.close(); in readRules()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | SystemUpdateManagerService.java | 134 try (FileInputStream fis = mFile.openRead()) { in loadSystemUpdateInfoLocked() argument 135 TypedXmlPullParser parser = Xml.resolvePullParser(fis); in loadSystemUpdateInfoLocked()
|
/aosp14/frameworks/base/core/java/android/app/backup/ |
H A D | BlobBackupHelper.java | 93 FileInputStream fis = new FileInputStream(oldStateFd.getFileDescriptor()); in readOldState() local 94 DataInputStream in = new DataInputStream(fis); in readOldState()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | FileRotator.java | 386 final FileInputStream fis = new FileInputStream(file); in readFile() local 387 final BufferedInputStream bis = new BufferedInputStream(fis); in readFile()
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | AdditionalSubtypeUtils.java | 233 try (FileInputStream fis = subtypesFile.openRead()) { in loadFromFile() argument 234 final TypedXmlPullParser parser = Xml.resolvePullParser(fis); in loadFromFile()
|
/aosp14/frameworks/base/services/core/java/com/android/server/powerstats/ |
H A D | PowerStatsLogger.java | 268 final FileInputStream fis = new FileInputStream(cachedFile.getPath()); in dataChanged() local 269 fis.read(dataCached); in dataChanged()
|