/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackage.java | 36 import com.android.server.pm.ShortcutService.ShortcutOperation; 37 import com.android.server.pm.ShortcutService.Stats; 62 private static final String TAG = ShortcutService.TAG; 63 private static final String TAG_VERIFY = ShortcutService.TAG + ".verify"; 209 final ShortcutService s = mShortcutUser.mService; in addShortcutInner() 430 final ShortcutService s = mShortcutUser.mService; in getApiCallCount() 450 if (ShortcutService.isClockValid(now) && mLastResetTime > now) { in getApiCallCount() 460 if (ShortcutService.DEBUG) { in getApiCallCount() 478 final ShortcutService s = mShortcutUser.mService; in tryApiCall() 489 if (ShortcutService.DEBUG) { in resetRateLimiting() [all …]
|
D | ShortcutPackageInfo.java | 43 private static final String TAG = ShortcutService.TAG; 105 public boolean canRestoreTo(ShortcutService s, PackageInfo target) { in canRestoreTo() 126 ShortcutService s, String packageName, @UserIdInt int packageUserId) { in generateForInstalledPackageForTest() 138 public void refreshSignature(ShortcutService s, ShortcutPackageItem pkg) { in refreshSignature() 158 ShortcutService.writeAttr(out, ATTR_VERSION, mVersionCode); in saveToXml() 159 ShortcutService.writeAttr(out, ATTR_LAST_UPDATE_TIME, mLastUpdateTime); in saveToXml() 160 ShortcutService.writeAttr(out, ATTR_SHADOW, mIsShadow); in saveToXml() 165 ShortcutService.writeAttr(out, ATTR_SIGNATURE_HASH, encoded); in saveToXml() 174 final int versionCode = ShortcutService.parseIntAttribute(parser, ATTR_VERSION); in loadFromXml() 176 final long lastUpdateTime = ShortcutService.parseLongAttribute( in loadFromXml() [all …]
|
D | ShortcutUser.java | 33 import com.android.server.pm.ShortcutService.InvalidFileFormatException; 55 private static final String TAG = ShortcutService.TAG; 108 final ShortcutService mService; 133 public ShortcutUser(ShortcutService service, int userId) { in ShortcutUser() 300 if (ShortcutService.DEBUG) { in detectLocaleChange() 326 public void attemptToRestoreIfNeededAndSave(ShortcutService s, @NonNull String packageName, in attemptToRestoreIfNeededAndSave() 339 ShortcutService.writeAttr(out, ATTR_KNOWN_LOCALES, mKnownLocales); in saveToXml() 340 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_TIME, in saveToXml() 342 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_OS_FINGERPRINT, in saveToXml() 345 ShortcutService.writeTagValue(out, TAG_LAUNCHER, mLastKnownLauncher); in saveToXml() [all …]
|
D | ShortcutLauncher.java | 47 private static final String TAG = ShortcutService.TAG; 209 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, getPackageName()); in saveToXml() 210 ShortcutService.writeAttr(out, ATTR_LAUNCHER_USER_ID, getPackageUserId()); in saveToXml() 221 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, pu.packageName); in saveToXml() 222 ShortcutService.writeAttr(out, ATTR_PACKAGE_USER_ID, pu.userId); in saveToXml() 227 ShortcutService.writeTagValue(out, TAG_PIN, ids.valueAt(j)); in saveToXml() 240 final String launcherPackageName = ShortcutService.parseStringAttribute(parser, in loadFromXml() 246 : ShortcutService.parseIntAttribute(parser, ATTR_LAUNCHER_USER_ID, ownerUserId); in loadFromXml() 267 final String packageName = ShortcutService.parseStringAttribute(parser, in loadFromXml() 270 : ShortcutService.parseIntAttribute(parser, in loadFromXml() [all …]
|
D | ShortcutParser.java | 47 private static final String TAG = ShortcutService.TAG; 49 private static final boolean DEBUG = ShortcutService.DEBUG || false; // DO NOT SUBMIT WITH TRUE 60 public static List<ShortcutInfo> parseShortcuts(ShortcutService service, in parseShortcuts() 62 if (ShortcutService.DEBUG) { in parseShortcuts() 100 ShortcutService service, in parseShortcutsOneFile() 103 if (ShortcutService.DEBUG) { in parseShortcutsOneFile() 191 if (ShortcutService.DEBUG) { in parseShortcutsOneFile() 212 if (ShortcutService.DEBUG) { in parseShortcutsOneFile() 272 private static String parseCategories(ShortcutService service, AttributeSet attrs) { in parseCategories() 287 private static ShortcutInfo parseShortcutAttributes(ShortcutService service, in parseShortcutAttributes() [all …]
|
D | ShortcutPackageItem.java | 35 private static final String TAG = ShortcutService.TAG; 92 final ShortcutService s = mShortcutUser.mService; in refreshPackageSignatureAndSave() 101 final ShortcutService s = mShortcutUser.mService; in attemptToRestoreIfNeededAndSave() 103 if (ShortcutService.DEBUG) { in attemptToRestoreIfNeededAndSave() 125 if (ShortcutService.DEBUG) { in attemptToRestoreIfNeededAndSave()
|
D | ShortcutBitmapSaver.java | 30 import com.android.server.pm.ShortcutService.FileOutputStreamWithPath; 52 private static final String TAG = ShortcutService.TAG; 53 private static final boolean DEBUG = ShortcutService.DEBUG; 64 private final ShortcutService mService; 110 public ShortcutBitmapSaver(ShortcutService service) { in ShortcutBitmapSaver() 173 Slog.wtf(ShortcutService.TAG, "Unable to compress bitmap"); in saveBitmapLocked() 185 Slog.wtf(ShortcutService.TAG, "Unable to write bitmap to file", e); in saveBitmapLocked() 275 Slog.e(ShortcutService.TAG, "Unable to write bitmap to file", e); in processPendingItems()
|
D | ShortcutRequestPinProcessor.java | 43 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()
|
D | ShortcutService.java | 146 public class ShortcutService extends IShortcutService.Stub { class 412 public ShortcutService(Context context) { in ShortcutService() method in ShortcutService 417 ShortcutService(Context context, Looper looper, boolean onlyForPackageManagerApis) { in ShortcutService() method in ShortcutService 543 final ShortcutService mService; 547 mService = new ShortcutService(context); in Lifecycle() 2618 return ShortcutService.this.hasShortcutHostPermission(callingPackage, launcherUserId); in hasShortcutHostPermission() 2631 return ShortcutService.this.isRequestPinItemSupported(callingUserId, requestType); in isRequestPinItemSupported() 3782 ShortcutService.this.handleStopUser(mUserId); in handleUnloadUser() 3793 ShortcutService.this.cleanUpPackageForAllLoadedUsers(packageName, mUserId, in handleClearShortcuts()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 43 private ShortcutService mShortcutService; 59 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(), in setUp()
|
D | ShortcutManagerTest7.java | 35 import com.android.server.pm.ShortcutService.ConfigConstants;
|
D | ShortcutManagerTest3.java | 26 import com.android.server.pm.ShortcutService.ConfigConstants;
|
D | BaseShortcutManagerTest.java | 126 || DUMP_IN_TEARDOWN || ShortcutService.DEBUG; 222 protected final class ShortcutServiceTestable extends ShortcutService { 1323 + "/system/" + ShortcutService.FILENAME_BASE_STATE); in dumpBaseStateFile() 1337 + "/" + ShortcutService.FILENAME_USER_PACKAGES, message); in dumpUserFile()
|
D | ShortcutManagerTest1.java | 93 import com.android.server.pm.ShortcutService.ConfigConstants; 94 import com.android.server.pm.ShortcutService.FileOutputStreamWithPath; 203 assertEquals(ShortcutService.DEFAULT_RESET_INTERVAL_SEC * 1000, in testLoadConfig() 206 assertEquals(ShortcutService.DEFAULT_MAX_SHORTCUTS_PER_APP, in testLoadConfig() 209 assertEquals(ShortcutService.DEFAULT_MAX_UPDATES_PER_INTERVAL, in testLoadConfig() 216 assertEquals(ShortcutService.DEFAULT_ICON_PERSIST_QUALITY, in testLoadConfig() 879 ShortcutService.shrinkBitmap(BitmapFactory.decodeResource( in checkShrinkBitmap()
|
D | ShortcutManagerTest2.java | 74 ShortcutService.ConfigConstants.KEY_MAX_UPDATES_PER_INTERVAL + "=99999999," in testShortcutInfoMissingMandatoryFields() 75 + ShortcutService.ConfigConstants.KEY_MAX_SHORTCUTS + "=99999999" in testShortcutInfoMissingMandatoryFields()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 94 import com.android.server.pm.ShortcutService; 1483 mSystemServiceManager.startService(ShortcutService.Lifecycle.class); in startOtherServices()
|
/frameworks/base/services/ |
D | profile-classes | 4922 Lcom/android/server/pm/ShortcutService; 4923 Lcom/android/server/pm/ShortcutService$1; 4924 Lcom/android/server/pm/ShortcutService$2; 4925 Lcom/android/server/pm/ShortcutService$3; 4926 Lcom/android/server/pm/ShortcutService$4; 4927 Lcom/android/server/pm/ShortcutService$5; 4928 Lcom/android/server/pm/ShortcutService$FileOutputStreamWithPath; 4929 Lcom/android/server/pm/ShortcutService$InvalidFileFormatException; 4930 Lcom/android/server/pm/ShortcutService$Lifecycle; 4931 Lcom/android/server/pm/ShortcutService$LocalService;
|