/frameworks/base/services/core/java/com/android/server/pm/ |
ShortcutPackageInfo.java | 39 * All methods should be guarded by {@code ShortcutService.mLock}. 42 private static final String TAG = ShortcutService.TAG; 103 public boolean canRestoreTo(ShortcutService s, PackageInfo target) { 123 ShortcutService s, String packageName, @UserIdInt int packageUserId) { 135 public void refresh(ShortcutService s, ShortcutPackageItem pkg) { 157 ShortcutService.writeAttr(out, ATTR_VERSION, mVersionCode); 158 ShortcutService.writeAttr(out, ATTR_LAST_UPDATE_TIME, mLastUpdateTime); 159 ShortcutService.writeAttr(out, ATTR_SHADOW, mIsShadow); 163 ShortcutService.writeAttr(out, ATTR_SIGNATURE_HASH, Base64.encode(mSigHashes.get(i))); 172 final int versionCode = ShortcutService.parseIntAttribute(parser, ATTR_VERSION) [all...] |
ShortcutPackage.java | 37 import com.android.server.pm.ShortcutService.ShortcutOperation; 38 import com.android.server.pm.ShortcutService.Stats; 57 * Package information used by {@link ShortcutService}. 58 * User information used by {@link ShortcutService}. 63 private static final String TAG = ShortcutService.TAG; 64 private static final String TAG_VERIFY = ShortcutService.TAG + ".verify"; 158 final ShortcutService s = mShortcutUser.mService; 162 if (ShortcutService.DEBUG) { 234 final ShortcutService s = mShortcutUser.mService; 452 final ShortcutService s = mShortcutUser.mService [all...] |
ShortcutPackageItem.java | 35 private static final String TAG = ShortcutService.TAG; 86 final ShortcutService s = mShortcutUser.mService; 95 final ShortcutService s = mShortcutUser.mService; 97 if (ShortcutService.DEBUG) { 116 if (ShortcutService.DEBUG) {
|
ShortcutLauncher.java | 40 * Launcher information used by {@link ShortcutService}. 45 private static final String TAG = ShortcutService.TAG; 166 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, getPackageName()); 167 ShortcutService.writeAttr(out, ATTR_LAUNCHER_USER_ID, getPackageUserId()); 178 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, pu.packageName); 179 ShortcutService.writeAttr(out, ATTR_PACKAGE_USER_ID, pu.userId); 184 ShortcutService.writeTagValue(out, TAG_PIN, ids.valueAt(j)); 197 final String launcherPackageName = ShortcutService.parseStringAttribute(parser, 203 : ShortcutService.parseIntAttribute(parser, ATTR_LAUNCHER_USER_ID, ownerUserId); 224 final String packageName = ShortcutService.parseStringAttribute(parser [all...] |
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, 62 if (ShortcutService.DEBUG) { 100 ShortcutService service, 103 if (ShortcutService.DEBUG) { 191 if (ShortcutService.DEBUG) { 212 if (ShortcutService.DEBUG) { 272 private static String parseCategories(ShortcutService service, AttributeSet attrs) { 287 private static ShortcutInfo parseShortcutAttributes(ShortcutService service [all...] |
ShortcutUser.java | 48 * User information used by {@link ShortcutService}. 53 private static final String TAG = ShortcutService.TAG; 105 final ShortcutService mService; 128 public ShortcutUser(ShortcutService service, int userId) { 281 if (ShortcutService.DEBUG) { 307 public void attemptToRestoreIfNeededAndSave(ShortcutService s, @NonNull String packageName, 318 ShortcutService.writeAttr(out, ATTR_KNOWN_LOCALES, mKnownLocales); 319 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_TIME, 322 ShortcutService.writeTagValue(out, TAG_LAUNCHER, mLastKnownLauncher); 354 public static ShortcutUser loadFromXml(ShortcutService s, XmlPullParser parser, int userId [all...] |
ShortcutService.java | 138 public class ShortcutService extends IShortcutService.Stub { 139 static final String TAG = "ShortcutService"; 362 public ShortcutService(Context context) { 367 ShortcutService(Context context, Looper looper, boolean onlyForPackageManagerApis) { 490 final ShortcutService mService; 494 mService = new ShortcutService(context); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
ShortcutManagerTest5.java | 36 * Unit tests for all the IPackageManager related methods in {@link ShortcutService}. 43 private ShortcutService mShortcutService; 59 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(),
|
ShortcutManagerTest7.java | 35 import com.android.server.pm.ShortcutService.ConfigConstants;
|
ShortcutManagerTest3.java | 26 import com.android.server.pm.ShortcutService.ConfigConstants; 135 // (ShortcutService.verifyStates() will do so internally.)
|
BaseShortcutManagerTest.java | 121 || DUMP_IN_TEARDOWN || ShortcutService.DEBUG; 206 /** ShortcutService with injection override methods. */ 207 protected final class ShortcutServiceTestable extends ShortcutService { [all...] |
ShortcutManagerTest2.java | 48 import com.android.server.pm.ShortcutService.ConfigConstants; 59 * Tests for ShortcutService and ShortcutManager. 74 ShortcutService.ConfigConstants.KEY_MAX_UPDATES_PER_INTERVAL + "=99999999," 75 + ShortcutService.ConfigConstants.KEY_MAX_SHORTCUTS + "=99999999" [all...] |
ShortcutManagerTest1.java | 90 import com.android.server.pm.ShortcutService.ConfigConstants; 91 import com.android.server.pm.ShortcutService.FileOutputStreamWithPath; 102 * Tests for ShortcutService and ShortcutManager. 121 * Test for {@link ShortcutService#getLastResetTimeLocked()} and 122 * {@link ShortcutService#getNextResetTimeLocked()}. 198 assertEquals(ShortcutService.DEFAULT_RESET_INTERVAL_SEC * 1000, 201 assertEquals(ShortcutService.DEFAULT_MAX_SHORTCUTS_PER_APP, 204 assertEquals(ShortcutService.DEFAULT_MAX_UPDATES_PER_INTERVAL, 211 assertEquals(ShortcutService.DEFAULT_ICON_PERSIST_QUALITY, [all...] |
/frameworks/base/services/java/com/android/server/ |
SystemServer.java | 87 import com.android.server.pm.ShortcutService; [all...] |