/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 49 private static final String TAG = ShortcutService.TAG; 134 mBackupAllowed = ShortcutService.shouldBackupApp(pi); in updateFromPackageInfo() 144 public int canRestoreTo(ShortcutService s, PackageInfo currentPackage, boolean anyVersionOkay) { in canRestoreTo() 150 if (!ShortcutService.shouldBackupApp(currentPackage) || !mBackupSourceBackupAllowed) { in canRestoreTo() 166 ShortcutService s, String packageName, @UserIdInt int packageUserId) { in generateForInstalledPackageForTest() 184 public void refreshSignature(ShortcutService s, ShortcutPackageItem pkg) { in refreshSignature() 209 public void saveToXml(ShortcutService s, TypedXmlSerializer out, boolean forBackup) in saveToXml() 217 ShortcutService.writeAttr(out, ATTR_VERSION, mVersionCode); in saveToXml() 218 ShortcutService.writeAttr(out, ATTR_LAST_UPDATE_TIME, mLastUpdateTime); in saveToXml() 219 ShortcutService.writeAttr(out, ATTR_SHADOW, mIsShadow); in saveToXml() [all …]
|
D | ShareTargetInfo.java | 131 ShortcutService.writeAttr(out, ATTR_TARGET_CLASS, mTargetClass); in saveToXml() 135 ShortcutService.writeAttr(out, ATTR_SCHEME, mTargetData[i].mScheme); in saveToXml() 136 ShortcutService.writeAttr(out, ATTR_HOST, mTargetData[i].mHost); in saveToXml() 137 ShortcutService.writeAttr(out, ATTR_PORT, mTargetData[i].mPort); in saveToXml() 138 ShortcutService.writeAttr(out, ATTR_PATH, mTargetData[i].mPath); in saveToXml() 139 ShortcutService.writeAttr(out, ATTR_PATH_PATTERN, mTargetData[i].mPathPattern); in saveToXml() 140 ShortcutService.writeAttr(out, ATTR_PATH_PREFIX, mTargetData[i].mPathPrefix); in saveToXml() 141 ShortcutService.writeAttr(out, ATTR_MIME_TYPE, mTargetData[i].mMimeType); in saveToXml() 147 ShortcutService.writeAttr(out, ATTR_NAME, mCategories[i]); in saveToXml() 156 final String targetClass = ShortcutService.parseStringAttribute(parser, ATTR_TARGET_CLASS); in loadFromXml() [all …]
|
D | ShortcutPackage.java | 69 import com.android.server.pm.ShortcutService.DumpFilter; 70 import com.android.server.pm.ShortcutService.ShortcutOperation; 71 import com.android.server.pm.ShortcutService.Stats; 102 private static final String TAG = ShortcutService.TAG; 103 private static final String TAG_VERIFY = ShortcutService.TAG + ".verify"; 373 final ShortcutService s = mShortcutUser.mService; in forceReplaceShortcutInner() 443 final ShortcutService service = mShortcutUser.mService; in pushDynamicShortcut() 506 final ShortcutService service = mShortcutUser.mService; in ensureShortcutCountBeforePush() 760 final ShortcutService s = mShortcutUser.mService; in getApiCallCount() 781 if (ShortcutService.isClockValid(now) && mLastResetTime > now) { in getApiCallCount() [all …]
|
D | ShortcutUser.java | 43 import com.android.server.pm.ShortcutService.DumpFilter; 44 import com.android.server.pm.ShortcutService.InvalidFileFormatException; 66 private static final String TAG = ShortcutService.TAG; 85 final ShortcutService mService; 111 public ShortcutUser(ShortcutService service, int userId) { in ShortcutUser() 283 if (ShortcutService.DEBUG) { in detectLocaleChange() 300 if (ShortcutService.DEBUG_REBOOT) { in rescanPackageIfNeeded() 314 public void attemptToRestoreIfNeededAndSave(ShortcutService s, @NonNull String packageName, in attemptToRestoreIfNeededAndSave() 327 ShortcutService.writeAttr(out, ATTR_KNOWN_LOCALES, mKnownLocales); in saveToXml() 328 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_TIME, in saveToXml() [all …]
|
D | ShortcutLauncher.java | 32 import com.android.server.pm.ShortcutService.DumpFilter; 52 private static final String TAG = ShortcutService.TAG; 265 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, getPackageName()); in saveToXml() 266 ShortcutService.writeAttr(out, ATTR_LAUNCHER_USER_ID, getPackageUserId()); in saveToXml() 277 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, up.packageName); in saveToXml() 278 ShortcutService.writeAttr(out, ATTR_PACKAGE_USER_ID, up.userId); in saveToXml() 283 ShortcutService.writeTagValue(out, TAG_PIN, ids.valueAt(j)); in saveToXml() 313 if (ShortcutService.DEBUG_LOAD) { in loadFromFile() 320 ShortcutService.throwForInvalidTag(depth, tag); in loadFromFile() 336 final String launcherPackageName = ShortcutService.parseStringAttribute(parser, in loadFromXml() [all …]
|
D | ShortcutDumpFiles.java | 37 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()
|
D | ShortcutBitmapSaver.java | 31 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() 182 Slog.wtf(ShortcutService.TAG, "Unable to compress bitmap"); in saveBitmapLocked() 194 Slog.wtf(ShortcutService.TAG, "Unable to write bitmap to file", e); in saveBitmapLocked() 287 Slog.e(ShortcutService.TAG, "Unable to write bitmap to file", e); in processPendingItems()
|
D | ShortcutParser.java | 48 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 …]
|
D | ShortcutPackageItem.java | 45 private static final String TAG = ShortcutService.TAG; 108 final ShortcutService s = mShortcutUser.mService; in refreshPackageSignatureAndSave() 117 final ShortcutService s = mShortcutUser.mService; in attemptToRestoreIfNeededAndSave() 119 if (ShortcutService.DEBUG) { in attemptToRestoreIfNeededAndSave() 138 if (ShortcutService.DEBUG) { in attemptToRestoreIfNeededAndSave() 219 if (ShortcutService.DEBUG || ShortcutService.DEBUG_REBOOT) { in saveShortcutPackageItem()
|
D | TEST_MAPPING | 50 "file_patterns": ["(/|^)ShortcutService\\.java"] 54 "file_patterns": ["(/|^)ShortcutService\\.java"]
|
D | ShortcutRequestPinProcessor.java | 45 private static final String TAG = ShortcutService.TAG; 46 private static final boolean DEBUG = ShortcutService.DEBUG; 48 private final ShortcutService mService; 215 public ShortcutRequestPinProcessor(ShortcutService service, Object lock) { in ShortcutRequestPinProcessor()
|
D | ShortcutNonPersistentUser.java | 23 import com.android.server.pm.ShortcutService.DumpFilter;
|
D | ShortcutService.java | 169 public class ShortcutService extends IShortcutService.Stub { class 488 public ShortcutService(Context context) { in ShortcutService() method in ShortcutService 500 ShortcutService(Context context, Looper looper, boolean onlyForPackageManagerApis) { in ShortcutService() method in ShortcutService 666 final ShortcutService mService; 673 mService = new ShortcutService(context); in Lifecycle() 3274 return ShortcutService.this.getShareTargets( 3286 return ShortcutService.this.isSharingShortcut(callingUserId, callingPackage, 3685 return ShortcutService.this.hasShortcutHostPermission(callingPackage, launcherUserId, 3690 return ShortcutService.this.areShortcutsSupportedOnHomeScreen(userId); 3696 ShortcutService.this.setShortcutHostPackage(type, packageName, userId); [all …]
|
D | OWNERS | 51 per-file ShortcutService.java = omakoto@google.com, yamasani@google.com, sunnygoyal@google.com, met…
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest12.java | 46 ShortcutService.ConfigConstants.KEY_MAX_SHORTCUTS + "=5," in setUp() 47 + ShortcutService.ConfigConstants.KEY_SAVE_DELAY_MILLIS + "=1"); in setUp() 153 ShortcutService.ConfigConstants.KEY_MAX_SHORTCUTS + "=10," in testPushDynamicShortcuts_PersistsShortcutsToDisk() 154 + ShortcutService.ConfigConstants.KEY_SAVE_DELAY_MILLIS + "=1"); in testPushDynamicShortcuts_PersistsShortcutsToDisk()
|
D | ShortcutManagerTest5.java | 46 private ShortcutService mShortcutService; 62 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(), in setUp()
|
D | ShortcutManagerTest7.java | 41 import com.android.server.pm.ShortcutService.ConfigConstants;
|
D | ShortcutManagerTest3.java | 29 import com.android.server.pm.ShortcutService.ConfigConstants;
|
D | BaseShortcutManagerTest.java | 143 || DUMP_IN_TEARDOWN || ShortcutService.DEBUG; 279 protected final class ShortcutServiceTestable extends ShortcutService { 1514 + "/system/" + ShortcutService.FILENAME_BASE_STATE); in dumpBaseStateFile() 1528 + "/" + ShortcutService.FILENAME_USER_PACKAGES, message); in dumpUserFile()
|
D | ShortcutManagerTest1.java | 107 import com.android.server.pm.ShortcutService.ConfigConstants; 108 import com.android.server.pm.ShortcutService.FileOutputStreamWithPath; 244 assertEquals(ShortcutService.DEFAULT_RESET_INTERVAL_SEC * 1000, in testLoadConfig() 247 assertEquals(ShortcutService.DEFAULT_MAX_SHORTCUTS_PER_ACTIVITY, in testLoadConfig() 250 assertEquals(ShortcutService.DEFAULT_MAX_UPDATES_PER_INTERVAL, in testLoadConfig() 257 assertEquals(ShortcutService.DEFAULT_ICON_PERSIST_QUALITY, in testLoadConfig() 408 + ShortcutService.ConfigConstants.KEY_SAVE_DELAY_MILLIS + "=1"); in testPushDynamicShortcut() 549 ShortcutService.ConfigConstants.KEY_SAVE_DELAY_MILLIS + "=500"); in testPushDynamicShortcut_CallsToUsageStatsManagerAreThrottled() 1201 ShortcutService.shrinkBitmap(BitmapFactory.decodeResource( in checkShrinkBitmap()
|
D | ShortcutManagerTest11.java | 35 import com.android.server.pm.ShortcutService.ConfigConstants;
|
D | ShortcutManagerTest2.java | 79 ShortcutService.ConfigConstants.KEY_MAX_UPDATES_PER_INTERVAL + "=99999999," in testShortcutInfoMissingMandatoryFields() 80 + ShortcutService.ConfigConstants.KEY_MAX_SHORTCUTS + "=99999999" in testShortcutInfoMissingMandatoryFields()
|
/frameworks/base/services/ |
D | art-wear-profile | 19511 PLcom/android/server/pm/ShortcutBitmapSaver;-><init>(Lcom/android/server/pm/ShortcutService;)V 19514 PLcom/android/server/pm/ShortcutDumpFiles;-><init>(Lcom/android/server/pm/ShortcutService;)V 19527 …<init>(Lcom/android/server/pm/ShortcutPackage;Lcom/android/server/pm/ShortcutService;Landroid/cont… 19558 PLcom/android/server/pm/ShortcutPackage;->loadFromFile(Lcom/android/server/pm/ShortcutService;Lcom/… 19559 PLcom/android/server/pm/ShortcutPackage;->loadFromXml(Lcom/android/server/pm/ShortcutService;Lcom/a… 19575 PLcom/android/server/pm/ShortcutPackageInfo;->saveToXml(Lcom/android/server/pm/ShortcutService;Lcom… 19590 PLcom/android/server/pm/ShortcutParser;->parseShortcuts(Lcom/android/server/pm/ShortcutService;Ljav… 19591 …ver/pm/ShortcutParser;->parseShortcutsOneFile(Lcom/android/server/pm/ShortcutService;Landroid/cont… 19592 PLcom/android/server/pm/ShortcutRequestPinProcessor;-><init>(Lcom/android/server/pm/ShortcutService… 19593 PLcom/android/server/pm/ShortcutService$$ExternalSyntheticLambda13;-><init>(Lcom/android/server/pm/… [all …]
|
D | art-profile | 2435 …;]Landroid/content/pm/ShortcutServiceInternal;Lcom/android/server/pm/ShortcutService$LocalService;… 2438 …+]Landroid/content/pm/ShortcutServiceInternal;Lcom/android/server/pm/ShortcutService$LocalService;… 2634 …erver/pm/ShortcutPackage;]Lcom/android/server/pm/ShortcutService;Lcom/android/server/pm/ShortcutSe… 2638 …erver/pm/ShortcutPackage;]Lcom/android/server/pm/ShortcutService;Lcom/android/server/pm/ShortcutSe… 2641 HPLcom/android/server/pm/ShortcutPackageInfo;->saveToXml(Lcom/android/server/pm/ShortcutService;Lco… 2644 …ShortcutService;Landroid/content/pm/ActivityInfo;Ljava/lang/String;ILjava/util/List;Ljava/util/Lis… 2645 …roid/server/pm/ShortcutService$4;->onUidStateChanged(IIJI)V+]Lcom/android/server/pm/ShortcutServic… 2646 …ShortcutService$LocalService;->getShortcuts(ILjava/lang/String;JLjava/lang/String;Ljava/util/List;… 2647 …ShortcutService$LocalService;->getShortcutsInnerLocked(ILjava/lang/String;Ljava/lang/String;Ljava/… 2648 HPLcom/android/server/pm/ShortcutService$LocalService;->lambda$getFilterFromQuery$1(JLandroid/util/… [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 212 import com.android.server.pm.ShortcutService; 2624 mSystemServiceManager.startService(ShortcutService.Lifecycle.class); in startOtherServices()
|