Home
last modified time | relevance | path

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

12

/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/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/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java100 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand() local
101 while (fis.read() != -1); in runShellCommand()
102 fis.close(); in runShellCommand()
/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/services/core/java/com/android/server/wm/
DAppWarnings.java513 FileInputStream fis = null; in readConfigFromFileAmsThread() local
516 fis = mConfigFile.openRead(); in readConfigFromFileAmsThread()
519 parser.setInput(fis, StandardCharsets.UTF_8.name()); in readConfigFromFileAmsThread()
560 if (fis != null) Slog.w(TAG, "Error reading package metadata", e); in readConfigFromFileAmsThread()
562 if (fis != null) { in readConfigFromFileAmsThread()
564 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/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/graphics/java/android/graphics/fonts/
DFont.java111 try (FileInputStream fis = new FileInputStream(path)) { in Builder() argument
112 final FileChannel fc = fis.getChannel(); in Builder()
138 try (FileInputStream fis = new FileInputStream(fd.getFileDescriptor())) { in Builder() argument
139 final FileChannel fc = fis.getChannel(); in Builder()
/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/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java220 FileInputStream fis = null; in restoreSessions() local
222 fis = mSessionsFile.openRead(); in restoreSessions()
224 in.setInput(fis, StandardCharsets.UTF_8.name()); in restoreSessions()
250 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/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.java307 FileInputStream fis; in readRules() local
309 fis = new FileInputStream(rulesFile); in readRules()
318 parser.setInput(fis, null); in readRules()
362 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()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java522 FileInputStream fis = null; in readAppIdleTimes() local
525 fis = appIdleFile.openRead(); in readAppIdleTimes()
527 parser.setInput(fis, StandardCharsets.UTF_8.name()); in readAppIdleTimes()
583 IoUtils.closeQuietly(fis); in readAppIdleTimes()
/frameworks/base/core/java/android/content/res/
DAssetManager.java238 final FileInputStream fis; in loadStaticRuntimeOverlays() local
240 fis = new FileInputStream("/data/resource-cache/overlays.list"); in loadStaticRuntimeOverlays()
252 try (final BufferedReader br = new BufferedReader(new InputStreamReader(fis)); in loadStaticRuntimeOverlays()
253 final FileLock flock = fis.getChannel().lock(0, Long.MAX_VALUE, true /*shared*/)) { in loadStaticRuntimeOverlays()
262 IoUtils.closeQuietly(fis); in loadStaticRuntimeOverlays()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java369 final FileInputStream fis = new FileInputStream(file); in readFile() local
370 final BufferedInputStream bis = new BufferedInputStream(fis); in readFile()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java651 FileInputStream fis = mJobsFile.openRead(); in run() local
653 jobs = readJobMapImpl(fis, rtcGood); in run()
673 fis.close(); in run()
690 private List<JobStatus> readJobMapImpl(FileInputStream fis, boolean rtcIsGood) in readJobMapImpl() argument
693 parser.setInput(fis, StandardCharsets.UTF_8.name()); in readJobMapImpl()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbProfileGroupSettingsManager.java330 FileInputStream fis = null; in upgradeSingleUserLocked() local
332 fis = new FileInputStream(sSingleUserSettingsFile); in upgradeSingleUserLocked()
334 parser.setInput(fis, StandardCharsets.UTF_8.name()); in upgradeSingleUserLocked()
348 IoUtils.closeQuietly(fis); in upgradeSingleUserLocked()

12