Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/provider/
DDrmStore.java103 FileInputStream fis = null; in addDrmFile() local
107 fis = new FileInputStream(file); in addDrmFile()
115 result = addDrmFile(cr, fis, title); in addDrmFile()
120 if (fis != null) in addDrmFile()
121 fis.close(); in addDrmFile()
138 public static final Intent addDrmFile(ContentResolver cr, FileInputStream fis, String title) { in addDrmFile() argument
143 DrmRawContent content = new DrmRawContent(fis, (int) fis.available(), in addDrmFile()
146 long size = fis.getChannel().size(); in addDrmFile()
186 if (fis != null) in addDrmFile()
187 fis.close(); in addDrmFile()
/frameworks/base/services/java/com/android/server/pm/
DUserManager.java112 FileInputStream fis = null; in readUserList() local
114 fis = new FileInputStream(mUserListFile); in readUserList()
116 parser.setInput(fis, null); in readUserList()
232 FileInputStream fis = null; in readUser() local
235 fis = new FileInputStream(userFile); in readUser()
237 parser.setInput(fis, null); in readUser()
268 fis.close(); in readUser()
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DFsUtils.java121 FileInputStream fis = null; in readDataFromStorage() local
123 fis = new FileInputStream(file); in readDataFromStorage()
125 fis.read(bytes); in readDataFromStorage()
127 if (fis != null) { in readDataFromStorage()
128 fis.close(); in readDataFromStorage()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java31 private SocketInputStream fis; field in LocalSocketImpl
295 if (fis == null) { in getInputStream()
296 fis = new SocketInputStream(); in getInputStream()
299 return fis; in getInputStream()
/frameworks/base/services/java/com/android/server/
DLightsService.java146 FileInputStream fis = new FileInputStream(FLASHLIGHT_FILE);
147 int result = fis.read();
148 fis.close();
DInputMethodManagerService.java3236 FileInputStream fis = null; in readAdditionalInputMethodSubtypes() local
3238 fis = subtypesFile.openRead(); in readAdditionalInputMethodSubtypes()
3240 parser.setInput(fis, null); in readAdditionalInputMethodSubtypes()
3298 if (fis != null) { in readAdditionalInputMethodSubtypes()
3300 fis.close(); in readAdditionalInputMethodSubtypes()
/frameworks/base/services/java/com/android/server/am/
DCompatModePackages.java63 FileInputStream fis = null; in CompatModePackages() local
65 fis = mFile.openRead(); in CompatModePackages()
67 parser.setInput(fis, null); in CompatModePackages()
101 if (fis != null) Slog.w(TAG, "Error reading compat-packages", e); in CompatModePackages()
103 if (fis != null) { in CompatModePackages()
105 fis.close(); in CompatModePackages()
DTransferPipe.java184 final FileInputStream fis = new FileInputStream(getReadFd().getFileDescriptor()); in run() local
196 while ((size=fis.read(buffer)) > 0) { in run()
DUsageStatsService.java363 FileInputStream fis = null; in readHistoryStatsFLOCK() local
365 fis = mHistoryFile.openRead(); in readHistoryStatsFLOCK()
367 parser.setInput(fis, null); in readHistoryStatsFLOCK()
412 if (fis != null) { in readHistoryStatsFLOCK()
414 fis.close(); in readHistoryStatsFLOCK()
DActivityManagerService.java6603 FileInputStream fis = null; in readLastDonePreBootReceivers() local
6605 fis = new FileInputStream(file); in readLastDonePreBootReceivers()
6606 DataInputStream dis = new DataInputStream(new BufferedInputStream(fis, 2048)); in readLastDonePreBootReceivers()
6628 if (fis != null) { in readLastDonePreBootReceivers()
6630 fis.close(); in readLastDonePreBootReceivers()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java574 FileInputStream fis = new FileInputStream(fd); in decodeFileDescriptor() local
576 return decodeStream(fis, outPadding, opts); in decodeFileDescriptor()
579 fis.close(); in decodeFileDescriptor()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java418 FileInputStream fis = null; in readPersistentServicesLocked() local
424 fis = mPersistentServicesFile.openRead(); in readPersistentServicesLocked()
426 parser.setInput(fis, null); in readPersistentServicesLocked()
453 if (fis != null) { in readPersistentServicesLocked()
455 fis.close(); in readPersistentServicesLocked()
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DPlaybackActivity.java91 FileInputStream fis = openFileInput(params[0]); in doInBackground() local
92 ObjectInputStream in = new ObjectInputStream(fis); in doInBackground()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java970 FileInputStream fis = null; in run() local
972 fis = mContext.openFileInput(mHistoryFileName); in run()
981 parser.setInput(fis, null); in run()
1067 if (fis != null) { in run()
1069 fis.close(); in run()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppCacheTest.java184 FileInputStream fis = new FileInputStream(pFile); in openOutFileInAppFilesDir() local
185 fis.read(buffer, 0, count); in openOutFileInAppFilesDir()
186 fis.close(); in openOutFileInAppFilesDir()
/frameworks/base/media/java/android/media/
DMediaScanner.java1600 FileInputStream fis = null;
1604 fis = new FileInputStream(f);
1606 …Xml.parse(fis, Xml.findEncodingByName("UTF-8"), new WplHandler(playListDirectory, uri).getContentH…
1614 if (fis != null)
1615 fis.close();
/frameworks/base/core/java/android/content/
DSyncStorageEngine.java1410 FileInputStream fis = null; in readAccountInfoLocked() local
1412 fis = mAccountInfoFile.openRead(); in readAccountInfoLocked()
1415 parser.setInput(fis, null); in readAccountInfoLocked()
1470 if (fis == null) Log.i(TAG, "No initial accounts"); in readAccountInfoLocked()
1475 if (fis != null) { in readAccountInfoLocked()
1477 fis.close(); in readAccountInfoLocked()
/frameworks/base/media/java/android/media/videoeditor/
DVideoEditorImpl.java970 final FileInputStream fis = new FileInputStream(file); in load() local
975 parser.setInput(fis, "UTF-8"); in load()
1107 if (fis != null) { in load()
1108 fis.close(); in load()
/frameworks/base/services/java/com/android/server/net/
DNetworkPolicyManagerService.java915 FileInputStream fis = null; in readPolicyLocked() local
917 fis = mPolicyFile.openRead(); in readPolicyLocked()
919 in.setInput(fis, null); in readPolicyLocked()
974 IoUtils.closeQuietly(fis); in readPolicyLocked()