Searched refs:fis (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DWfaCertBuilder.java53 FileInputStream fis = new FileInputStream(certFile);
54 Certificate cert = certFactory.generateCertificate(fis);
58 fis.close();
/frameworks/support/room/migration/src/main/java/androidx/room/migration/bundle/
H A DSchemaBundle.java73 public static SchemaBundle deserialize(InputStream fis) argument
75 InputStreamReader is = new InputStreamReader(fis, CHARSET);
80 safeClose(fis);
/frameworks/data-binding/gradlePlugin/src/main/java/android/databinding/tool/
H A DDataBindingExcludeGeneratedTask.java111 FileInputStream fis = null;
113 fis = new FileInputStream(generatedClassListFile);
114 return IOUtils.readLines(fis);
122 IOUtils.closeQuietly(fis);
/frameworks/base/tests/net/java/android/net/
H A DNetworkTest.java66 final FileInputStream fis = new FileInputStream(devNull);
67 assertTrue(null != fis.getFD());
68 assertTrue(fis.getFD().valid());
71 mNetwork.bindSocket(fis.getFD());
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
H A DDataBindingBuilder.java130 FileInputStream fis = null;
132 fis = new FileInputStream(generatedClassListFile);
133 return IOUtils.readLines(fis);
141 IOUtils.closeQuietly(fis);
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatUtil.java82 try (FileInputStream fis = new FileInputStream(file)) {
83 FileChannel channel = fis.getChannel();
102 try (FileInputStream fis = new FileInputStream(pfd.getFileDescriptor())) {
103 FileChannel channel = fis.getChannel();
H A DTypefaceCompatApi21Impl.java77 try (FileInputStream fis = new FileInputStream(pfd.getFileDescriptor())) {
78 return super.createFromInputStream(context, fis);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DSysuiTestCase.java97 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
98 while (fis.read() != -1);
99 fis.close();
/frameworks/base/services/core/java/com/android/server/timezone/
H A DPackageStatusStorage.java129 try (FileInputStream fis = mPackageStatusFile.openRead()) {
130 XmlPullParser parser = parseToPackageStatusTag(fis);
254 try (FileInputStream fis = mPackageStatusFile.openRead()) {
255 XmlPullParser parser = parseToPackageStatusTag(fis);
265 private static XmlPullParser parseToPackageStatusTag(FileInputStream fis) argument
269 parser.setInput(fis, StandardCharsets.UTF_8.name());
/frameworks/base/services/core/java/com/android/server/am/
H A DAppWarnings.java513 FileInputStream fis = null;
516 fis = mConfigFile.openRead();
519 parser.setInput(fis, StandardCharsets.UTF_8.name());
560 if (fis != null) Slog.w(TAG, "Error reading package metadata", e);
562 if (fis != null) {
564 fis.close();
H A DCompatModePackages.java88 FileInputStream fis = null;
90 fis = mFile.openRead();
92 parser.setInput(fis, StandardCharsets.UTF_8.name());
131 if (fis != null) Slog.w(TAG, "Error reading compat-packages", e);
133 if (fis != null) {
135 fis.close();
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
H A DProcessedPackagesJournalTest.java143 try (FileInputStream fis = new FileInputStream(journal);
144 DataInputStream dis = new DataInputStream(fis)) {
/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java38 private SocketInputStream fis; field in class:LocalSocketImpl
356 if (fis == null) {
357 fis = new SocketInputStream();
360 return fis;
/frameworks/base/core/java/com/android/internal/os/
H A DTransferPipe.java249 final FileInputStream fis;
258 fis = new FileInputStream(readFd.getFileDescriptor());
271 while ((size=fis.read(buffer)) > 0) {
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
H A DJournalDbPostMigrationTest.java159 InputStream fis = InstrumentationRegistry.getContext().getAssets().open(path);
163 while ((length = fis.read(buffer)) > 0) {
167 fis.close();
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java801 FileInputStream fis = new FileInputStream(fd);
803 bm = decodeStreamInternal(fis, outPadding, opts);
806 fis.close();
/frameworks/base/core/java/android/app/backup/
H A DBlobBackupHelper.java93 FileInputStream fis = new FileInputStream(oldStateFd.getFileDescriptor());
94 DataInputStream in = new DataInputStream(fis);
/frameworks/base/services/core/java/com/android/server/
H A DSystemUpdateManagerService.java132 try (FileInputStream fis = mFile.openRead()) {
134 parser.setInput(fis, StandardCharsets.UTF_8.name());
/frameworks/base/core/java/android/widget/
H A DActivityChooserModel.java984 FileInputStream fis = null;
986 fis = mContext.openFileInput(mHistoryFileName);
995 parser.setInput(fis, StandardCharsets.UTF_8.name());
1044 if (fis != null) {
1046 fis.close();
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DActivityChooserModel.java964 FileInputStream fis = null;
966 fis = mContext.openFileInput(mHistoryFileName);
975 parser.setInput(fis, "UTF-8");
1024 if (fis != null) {
1026 fis.close();
/frameworks/base/services/core/java/com/android/server/firewall/
H A DIntentFirewall.java307 FileInputStream fis;
309 fis = new FileInputStream(rulesFile);
318 parser.setInput(fis, null);
362 fis.close();
/frameworks/base/core/java/com/android/internal/util/
H A DFileRotator.java369 final FileInputStream fis = new FileInputStream(file);
370 final BufferedInputStream bis = new BufferedInputStream(fis);
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java219 final FileInputStream fis;
221 fis = new FileInputStream("/data/resource-cache/overlays.list");
233 try (final BufferedReader br = new BufferedReader(new InputStreamReader(fis));
234 final FileLock flock = fis.getChannel().lock(0, Long.MAX_VALUE, true /*shared*/)) {
243 IoUtils.closeQuietly(fis);
/frameworks/base/services/usage/java/com/android/server/usage/
H A DAppIdleHistory.java517 FileInputStream fis = null;
520 fis = appIdleFile.openRead();
522 parser.setInput(fis, StandardCharsets.UTF_8.name());
578 IoUtils.closeQuietly(fis);
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbProfileGroupSettingsManager.java323 FileInputStream fis = null;
325 fis = new FileInputStream(sSingleUserSettingsFile);
327 parser.setInput(fis, StandardCharsets.UTF_8.name());
341 IoUtils.closeQuietly(fis);

Completed in 333 milliseconds

12