Home
last modified time | relevance | path

Searched refs:ShortcutService (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DShareTargetInfo.java129 ShortcutService.writeAttr(out, ATTR_TARGET_CLASS, mTargetClass); in saveToXml()
133 ShortcutService.writeAttr(out, ATTR_SCHEME, mTargetData[i].mScheme); in saveToXml()
134 ShortcutService.writeAttr(out, ATTR_HOST, mTargetData[i].mHost); in saveToXml()
135 ShortcutService.writeAttr(out, ATTR_PORT, mTargetData[i].mPort); in saveToXml()
136 ShortcutService.writeAttr(out, ATTR_PATH, mTargetData[i].mPath); in saveToXml()
137 ShortcutService.writeAttr(out, ATTR_PATH_PATTERN, mTargetData[i].mPathPattern); in saveToXml()
138 ShortcutService.writeAttr(out, ATTR_PATH_PREFIX, mTargetData[i].mPathPrefix); in saveToXml()
139 ShortcutService.writeAttr(out, ATTR_MIME_TYPE, mTargetData[i].mMimeType); in saveToXml()
145 ShortcutService.writeAttr(out, ATTR_NAME, mCategories[i]); in saveToXml()
154 final String targetClass = ShortcutService.parseStringAttribute(parser, ATTR_TARGET_CLASS); in loadFromXml()
[all …]
DShortcutPackageInfo.java48 private static final String TAG = ShortcutService.TAG;
133 mBackupAllowed = ShortcutService.shouldBackupApp(pi); in updateFromPackageInfo()
143 public int canRestoreTo(ShortcutService s, PackageInfo currentPackage, boolean anyVersionOkay) { in canRestoreTo()
149 if (!ShortcutService.shouldBackupApp(currentPackage) || !mBackupSourceBackupAllowed) { in canRestoreTo()
165 ShortcutService s, String packageName, @UserIdInt int packageUserId) { in generateForInstalledPackageForTest()
183 public void refreshSignature(ShortcutService s, ShortcutPackageItem pkg) { in refreshSignature()
208 public void saveToXml(ShortcutService s, XmlSerializer out, boolean forBackup) in saveToXml()
216 ShortcutService.writeAttr(out, ATTR_VERSION, mVersionCode); in saveToXml()
217 ShortcutService.writeAttr(out, ATTR_LAST_UPDATE_TIME, mLastUpdateTime); in saveToXml()
218 ShortcutService.writeAttr(out, ATTR_SHADOW, mIsShadow); in saveToXml()
[all …]
DShortcutPackage.java41 import com.android.server.pm.ShortcutService.DumpFilter;
42 import com.android.server.pm.ShortcutService.ShortcutOperation;
43 import com.android.server.pm.ShortcutService.Stats;
68 private static final String TAG = ShortcutService.TAG;
69 private static final String TAG_VERIFY = ShortcutService.TAG + ".verify";
266 final ShortcutService s = mShortcutUser.mService; in forceReplaceShortcutInner()
513 final ShortcutService s = mShortcutUser.mService; in getApiCallCount()
534 if (ShortcutService.isClockValid(now) && mLastResetTime > now) { in getApiCallCount()
544 if (ShortcutService.DEBUG) { in getApiCallCount()
562 final ShortcutService s = mShortcutUser.mService; in tryApiCall()
[all …]
DShortcutUser.java34 import com.android.server.pm.ShortcutService.DumpFilter;
35 import com.android.server.pm.ShortcutService.InvalidFileFormatException;
56 private static final String TAG = ShortcutService.TAG;
110 final ShortcutService mService;
136 public ShortcutUser(ShortcutService service, int userId) { in ShortcutUser()
303 if (ShortcutService.DEBUG) { in detectLocaleChange()
330 public void attemptToRestoreIfNeededAndSave(ShortcutService s, @NonNull String packageName, in attemptToRestoreIfNeededAndSave()
343 ShortcutService.writeAttr(out, ATTR_KNOWN_LOCALES, mKnownLocales); in saveToXml()
344 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_TIME, in saveToXml()
346 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_OS_FINGERPRINT, in saveToXml()
[all …]
DShortcutLauncher.java28 import com.android.server.pm.ShortcutService.DumpFilter;
48 private static final String TAG = ShortcutService.TAG;
231 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, getPackageName()); in saveToXml()
232 ShortcutService.writeAttr(out, ATTR_LAUNCHER_USER_ID, getPackageUserId()); in saveToXml()
243 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, pu.packageName); in saveToXml()
244 ShortcutService.writeAttr(out, ATTR_PACKAGE_USER_ID, pu.userId); in saveToXml()
249 ShortcutService.writeTagValue(out, TAG_PIN, ids.valueAt(j)); in saveToXml()
262 final String launcherPackageName = ShortcutService.parseStringAttribute(parser, in loadFromXml()
268 : ShortcutService.parseIntAttribute(parser, ATTR_LAUNCHER_USER_ID, ownerUserId); in loadFromXml()
289 final String packageName = ShortcutService.parseStringAttribute(parser, in loadFromXml()
[all …]
DShortcutParser.java48 private static final String TAG = ShortcutService.TAG;
50 private static final boolean DEBUG = ShortcutService.DEBUG || false; // DO NOT SUBMIT WITH TRUE
64 public static List<ShortcutInfo> parseShortcuts(ShortcutService service, String packageName, in parseShortcuts()
67 if (ShortcutService.DEBUG) { in parseShortcuts()
106 ShortcutService service, in parseShortcutsOneFile()
110 if (ShortcutService.DEBUG) { in parseShortcutsOneFile()
208 if (ShortcutService.DEBUG) { in parseShortcutsOneFile()
233 if (ShortcutService.DEBUG) { in parseShortcutsOneFile()
255 if (ShortcutService.DEBUG) { in parseShortcutsOneFile()
354 private static String parseCategories(ShortcutService service, AttributeSet attrs) { in parseCategories()
[all …]
DShortcutBitmapSaver.java32 import com.android.server.pm.ShortcutService.FileOutputStreamWithPath;
54 private static final String TAG = ShortcutService.TAG;
55 private static final boolean DEBUG = ShortcutService.DEBUG;
66 private final ShortcutService mService;
112 public ShortcutBitmapSaver(ShortcutService service) { in ShortcutBitmapSaver()
181 Slog.wtf(ShortcutService.TAG, "Unable to compress bitmap"); in saveBitmapLocked()
193 Slog.wtf(ShortcutService.TAG, "Unable to write bitmap to file", e); in saveBitmapLocked()
285 Slog.e(ShortcutService.TAG, "Unable to write bitmap to file", e); in processPendingItems()
DShortcutDumpFiles.java37 private static final String TAG = ShortcutService.TAG;
38 private static final boolean DEBUG = ShortcutService.DEBUG;
39 private final ShortcutService mService;
41 public ShortcutDumpFiles(ShortcutService service) { in ShortcutDumpFiles()
91 pw.println(ShortcutService.formatTime(path.lastModified())); in dumpAll()
DShortcutPackageItem.java36 private static final String TAG = ShortcutService.TAG;
93 final ShortcutService s = mShortcutUser.mService; in refreshPackageSignatureAndSave()
102 final ShortcutService s = mShortcutUser.mService; in attemptToRestoreIfNeededAndSave()
104 if (ShortcutService.DEBUG) { in attemptToRestoreIfNeededAndSave()
123 if (ShortcutService.DEBUG) { in attemptToRestoreIfNeededAndSave()
DShortcutNonPersistentUser.java23 import com.android.server.pm.ShortcutService.DumpFilter;
34 private final ShortcutService mService;
52 public ShortcutNonPersistentUser(ShortcutService service, int userId) { in ShortcutNonPersistentUser()
DShortcutRequestPinProcessor.java43 private static final String TAG = ShortcutService.TAG;
44 private static final boolean DEBUG = ShortcutService.DEBUG;
46 private final ShortcutService mService;
213 public ShortcutRequestPinProcessor(ShortcutService service, Object lock) { in ShortcutRequestPinProcessor()
DShortcutService.java151 public class ShortcutService extends IShortcutService.Stub { class
426 public ShortcutService(Context context) { in ShortcutService() method in ShortcutService
431 ShortcutService(Context context, Looper looper, boolean onlyForPackageManagerApis) { in ShortcutService() method in ShortcutService
565 final ShortcutService mService;
572 mService = new ShortcutService(context); in Lifecycle()
2835 return ShortcutService.this.hasShortcutHostPermission(callingPackage, launcherUserId, in hasShortcutHostPermission()
2842 ShortcutService.this.setShortcutHostPackage(type, packageName, userId); in setShortcutHostPackage()
2855 return ShortcutService.this.isRequestPinItemSupported(callingUserId, requestType); in isRequestPinItemSupported()
4231 ShortcutService.this.handleStopUser(mUserId); in handleUnloadUser()
4242 ShortcutService.this.cleanUpPackageForAllLoadedUsers(packageName, mUserId, in handleClearShortcuts()
DOWNERS59 per-file ShortcutService.java = omakoto@google.com, yamasani@google.com
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java43 private ShortcutService mShortcutService;
59 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(), in setUp()
DShortcutManagerTest7.java36 import com.android.server.pm.ShortcutService.ConfigConstants;
DShortcutManagerTest3.java27 import com.android.server.pm.ShortcutService.ConfigConstants;
DBaseShortcutManagerTest.java133 || DUMP_IN_TEARDOWN || ShortcutService.DEBUG;
231 protected final class ShortcutServiceTestable extends ShortcutService {
1386 + "/system/" + ShortcutService.FILENAME_BASE_STATE); in dumpBaseStateFile()
1400 + "/" + ShortcutService.FILENAME_USER_PACKAGES, message); in dumpUserFile()
DShortcutManagerTest1.java104 import com.android.server.pm.ShortcutService.ConfigConstants;
105 import com.android.server.pm.ShortcutService.FileOutputStreamWithPath;
220 assertEquals(ShortcutService.DEFAULT_RESET_INTERVAL_SEC * 1000, in testLoadConfig()
223 assertEquals(ShortcutService.DEFAULT_MAX_SHORTCUTS_PER_APP, in testLoadConfig()
226 assertEquals(ShortcutService.DEFAULT_MAX_UPDATES_PER_INTERVAL, in testLoadConfig()
233 assertEquals(ShortcutService.DEFAULT_ICON_PERSIST_QUALITY, in testLoadConfig()
930 ShortcutService.shrinkBitmap(BitmapFactory.decodeResource( in checkShrinkBitmap()
DShortcutManagerTest2.java74 ShortcutService.ConfigConstants.KEY_MAX_UPDATES_PER_INTERVAL + "=99999999," in testShortcutInfoMissingMandatoryFields()
75 + ShortcutService.ConfigConstants.KEY_MAX_SHORTCUTS + "=99999999" in testShortcutInfoMissingMandatoryFields()
/frameworks/base/services/
Dart-profile10135 HSPLcom/android/server/pm/-$$Lambda$ShortcutService$3$WghiV-HLnzJqZabObC5uHCmb960;->run()V
10136 HSPLcom/android/server/pm/-$$Lambda$ShortcutService$3$n_VdEzyBcjs0pGZO8GnB0FoTgR0;->run()V
10137 PLcom/android/server/pm/-$$Lambda$ShortcutService$DzwraUeMWDwA0XDfFxd3sGOsA0E;->run()V
10138 PLcom/android/server/pm/-$$Lambda$ShortcutService$H1HFyb1U9E1-y03suEsi37_w-t0;->accept(Ljava/lang/O…
10139 …oid/server/pm/-$$Lambda$ShortcutService$LocalService$Q0t7aDuDFJ8HWAf1NHW1dGQjOf8;-><init>(Lcom/and…
10140 HSPLcom/android/server/pm/-$$Lambda$ShortcutService$LocalService$Q0t7aDuDFJ8HWAf1NHW1dGQjOf8;->acce…
10141 PLcom/android/server/pm/-$$Lambda$ShortcutService$LocalService$a6cj3oQpS-Z6FB4DytB0FytYmiM;->test(L…
10142 HSPLcom/android/server/pm/-$$Lambda$ShortcutService$LocalService$ltDE7qm9grkumxffFI8cLCFpNqU;-><ini…
10143 HSPLcom/android/server/pm/-$$Lambda$ShortcutService$LocalService$ltDE7qm9grkumxffFI8cLCFpNqU;->test…
10144 HSPLcom/android/server/pm/-$$Lambda$ShortcutService$QFWliMhWloedhnaZCwVKaqKPVb4;->run()V
[all …]
/frameworks/base/services/java/com/android/server/
DSystemServer.java134 import com.android.server.pm.ShortcutService;
1865 mSystemServiceManager.startService(ShortcutService.Lifecycle.class); in startOtherServices()