Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/java/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DWfaCertBuilder.java53 FileInputStream fis = new FileInputStream(certFile); in loadCertsFromDisk() local
54 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk()
58 fis.close(); in loadCertsFromDisk()
/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/tests/net/common/java/android/net/
DNetworkTest.java63 final FileInputStream fis = new FileInputStream(devNull); in testBindSocketOfNonSocketFdThrows() local
64 assertTrue(null != fis.getFD()); in testBindSocketOfNonSocketFdThrows()
65 assertTrue(fis.getFD().valid()); in testBindSocketOfNonSocketFdThrows()
68 mNetwork.bindSocket(fis.getFD()); in testBindSocketOfNonSocketFdThrows()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageStatusStorage.java129 try (FileInputStream fis = mPackageStatusFile.openRead()) { in getPackageStatusLocked() argument
130 XmlPullParser parser = parseToPackageStatusTag(fis); in getPackageStatusLocked()
254 try (FileInputStream fis = mPackageStatusFile.openRead()) { in getCurrentOptimisticLockId() argument
255 XmlPullParser parser = parseToPackageStatusTag(fis); in getCurrentOptimisticLockId()
265 private static XmlPullParser parseToPackageStatusTag(FileInputStream fis) in parseToPackageStatusTag() argument
269 parser.setInput(fis, StandardCharsets.UTF_8.name()); in parseToPackageStatusTag()
/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()
/frameworks/base/graphics/java/android/graphics/fonts/
DFont.java110 try (FileInputStream fis = new FileInputStream(path)) { in Builder() argument
111 final FileChannel fc = fis.getChannel(); in Builder()
137 try (FileInputStream fis = new FileInputStream(fd.getFileDescriptor())) { in Builder() argument
138 final FileChannel fc = fis.getChannel(); in Builder()
234 try (FileInputStream fis = assetFD.createInputStream()) { in createBuffer() argument
235 final FileChannel fc = fis.getChannel(); in createBuffer()
/frameworks/base/services/core/java/com/android/server/wm/
DAppWarnings.java517 FileInputStream fis = null; in readConfigFromFileAmsThread() local
520 fis = mConfigFile.openRead(); in readConfigFromFileAmsThread()
523 parser.setInput(fis, StandardCharsets.UTF_8.name()); in readConfigFromFileAmsThread()
564 if (fis != null) Slog.w(TAG, "Error reading package metadata", e); in readConfigFromFileAmsThread()
566 if (fis != null) { in readConfigFromFileAmsThread()
568 fis.close(); in readConfigFromFileAmsThread()
DCompatModePackages.java92 FileInputStream fis = null; in CompatModePackages() local
94 fis = mFile.openRead(); in CompatModePackages()
96 parser.setInput(fis, StandardCharsets.UTF_8.name()); in CompatModePackages()
135 if (fis != null) Slog.w(TAG, "Error reading compat-packages", e); in CompatModePackages()
137 if (fis != null) { in CompatModePackages()
139 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.java152 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
153 while (fis.read() != -1); in runShellCommand()
154 fis.close(); in runShellCommand()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java150 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
152 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand()
155 fis.close(); in runShellCommand()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java39 private SocketInputStream fis; field in LocalSocketImpl
326 if (fis == null) { in getInputStream()
327 fis = new SocketInputStream(); in getInputStream()
330 return fis; in getInputStream()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java258 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in setMockLocation() argument
263 while ((count = fis.read(buffer)) != -1) { in setMockLocation()
266 fis.close(); in setMockLocation()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java226 FileInputStream fis = null; in restoreSessions() local
228 fis = mSessionsFile.openRead(); in restoreSessions()
230 in.setInput(fis, StandardCharsets.UTF_8.name()); in restoreSessions()
256 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.java991 FileInputStream fis = null; in readHistoricalDataImpl() local
993 fis = mContext.openFileInput(mHistoryFileName); in readHistoricalDataImpl()
1002 parser.setInput(fis, StandardCharsets.UTF_8.name()); in readHistoricalDataImpl()
1051 if (fis != null) { in readHistoricalDataImpl()
1053 fis.close(); in readHistoricalDataImpl()
/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/
DWindowManagerPerfTestBase.java108 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeShellCommand() argument
109 while ((bytesRead = fis.read(buf)) != -1) { in executeShellCommand()
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java78 try (FileInputStream fis = new FileInputStream(file)) { in mmap() argument
79 FileChannel channel = fis.getChannel(); in mmap()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java839 FileInputStream fis = new FileInputStream(fd); in decodeFileDescriptor() local
841 bm = decodeStreamInternal(fis, outPadding, opts); in decodeFileDescriptor()
844 fis.close(); in decodeFileDescriptor()
/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.java132 try (FileInputStream fis = mFile.openRead()) { in loadSystemUpdateInfoLocked() argument
134 parser.setInput(fis, StandardCharsets.UTF_8.name()); in loadSystemUpdateInfoLocked()
/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.java209 try (FileInputStream fis = subtypesFile.openRead()) { in load() argument
211 parser.setInput(fis, StandardCharsets.UTF_8.name()); in load()

12