use of com.android.server.pm.ShortcutService.FileOutputStreamWithPath in project android_frameworks_base by crdroidandroid.
the class ShortcutManagerTest1 method openIconFileForWriteAndGetPath.
protected File openIconFileForWriteAndGetPath(int userId, String packageName) throws IOException {
// Shortcut IDs aren't used in the path, so just pass the same ID.
final FileOutputStreamWithPath out = mService.openIconFileForWrite(userId, makePackageShortcut(packageName, "id"));
out.close();
return out.getFile();
}
use of com.android.server.pm.ShortcutService.FileOutputStreamWithPath in project platform_frameworks_base by android.
the class ShortcutManagerTest1 method openIconFileForWriteAndGetPath.
protected File openIconFileForWriteAndGetPath(int userId, String packageName) throws IOException {
// Shortcut IDs aren't used in the path, so just pass the same ID.
final FileOutputStreamWithPath out = mService.openIconFileForWrite(userId, makePackageShortcut(packageName, "id"));
out.close();
return out.getFile();
}
use of com.android.server.pm.ShortcutService.FileOutputStreamWithPath in project android_frameworks_base by DirtyUnicorns.
the class ShortcutManagerTest1 method openIconFileForWriteAndGetPath.
protected File openIconFileForWriteAndGetPath(int userId, String packageName) throws IOException {
// Shortcut IDs aren't used in the path, so just pass the same ID.
final FileOutputStreamWithPath out = mService.openIconFileForWrite(userId, makePackageShortcut(packageName, "id"));
out.close();
return out.getFile();
}
use of com.android.server.pm.ShortcutService.FileOutputStreamWithPath in project android_frameworks_base by ResurrectionRemix.
the class ShortcutManagerTest1 method openIconFileForWriteAndGetPath.
protected File openIconFileForWriteAndGetPath(int userId, String packageName) throws IOException {
// Shortcut IDs aren't used in the path, so just pass the same ID.
final FileOutputStreamWithPath out = mService.openIconFileForWrite(userId, makePackageShortcut(packageName, "id"));
out.close();
return out.getFile();
}
Aggregations