Searched refs:ShortcutService (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackageInfo.java40 * All methods should be guarded by {@code ShortcutService.mLock}.
43 private static final String TAG = ShortcutService.TAG;
105 public boolean canRestoreTo(ShortcutService s, PackageInfo target) {
126 ShortcutService s, String packageName, @UserIdInt int packageUserId) {
138 public void refreshSignature(ShortcutService s, ShortcutPackageItem pkg) {
158 ShortcutService.writeAttr(out, ATTR_VERSION, mVersionCode);
159 ShortcutService.writeAttr(out, ATTR_LAST_UPDATE_TIME, mLastUpdateTime);
160 ShortcutService.writeAttr(out, ATTR_SHADOW, mIsShadow);
164 ShortcutService.writeAttr(out, ATTR_SIGNATURE_HASH, Base64.encode(mSigHashes.get(i)));
173 final int versionCode = ShortcutService
[all...]
H A DShortcutPackage.java36 import com.android.server.pm.ShortcutService.ShortcutOperation;
37 import com.android.server.pm.ShortcutService.Stats;
56 * Package information used by {@link ShortcutService}.
57 * User information used by {@link ShortcutService}.
62 private static final String TAG = ShortcutService.TAG;
63 private static final String TAG_VERIFY = ShortcutService.TAG + ".verify";
209 final ShortcutService s = mShortcutUser.mService;
425 final ShortcutService s = mShortcutUser.mService;
445 if (ShortcutService.isClockValid(now) && mLastResetTime > now) {
455 if (ShortcutService
[all...]
H A DShortcutPackageItem.java35 private static final String TAG = ShortcutService.TAG;
92 final ShortcutService s = mShortcutUser.mService;
101 final ShortcutService s = mShortcutUser.mService;
103 if (ShortcutService.DEBUG) {
122 if (ShortcutService.DEBUG) {
H A DShortcutLauncher.java41 * Launcher information used by {@link ShortcutService}.
46 private static final String TAG = ShortcutService.TAG;
177 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, getPackageName());
178 ShortcutService.writeAttr(out, ATTR_LAUNCHER_USER_ID, getPackageUserId());
189 ShortcutService.writeAttr(out, ATTR_PACKAGE_NAME, pu.packageName);
190 ShortcutService.writeAttr(out, ATTR_PACKAGE_USER_ID, pu.userId);
195 ShortcutService.writeTagValue(out, TAG_PIN, ids.valueAt(j));
208 final String launcherPackageName = ShortcutService.parseStringAttribute(parser,
214 : ShortcutService.parseIntAttribute(parser, ATTR_LAUNCHER_USER_ID, ownerUserId);
235 final String packageName = ShortcutService
[all...]
H A DShortcutParser.java47 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 servic
[all...]
H A DShortcutUser.java33 import com.android.server.pm.ShortcutService.InvalidFileFormatException;
50 * User information used by {@link ShortcutService}.
55 private static final String TAG = ShortcutService.TAG;
108 final ShortcutService mService;
133 public ShortcutUser(ShortcutService service, int userId) {
300 if (ShortcutService.DEBUG) {
326 public void attemptToRestoreIfNeededAndSave(ShortcutService s, @NonNull String packageName,
339 ShortcutService.writeAttr(out, ATTR_KNOWN_LOCALES, mKnownLocales);
340 ShortcutService.writeAttr(out, ATTR_LAST_APP_SCAN_TIME,
342 ShortcutService
[all...]
H A DShortcutService.java139 public class ShortcutService extends IShortcutService.Stub { class in inherits:IShortcutService.Stub
140 static final String TAG = "ShortcutService";
389 public ShortcutService(Context context) { method in class:ShortcutService
394 ShortcutService(Context context, Looper looper, boolean onlyForPackageManagerApis) { method in class:ShortcutService
517 final ShortcutService mService;
521 mService = new ShortcutService(context);
1369 Slog.wtf(ShortcutService.TAG, "Unable to write bitmap to file", e);
2503 return ShortcutService.this.hasShortcutHostPermission(callingPackage, launcherUserId);
3569 ShortcutService.this.handleCleanupUser(mUserId);
3580 ShortcutService
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest5.java36 * Unit tests for all the IPackageManager related methods in {@link ShortcutService}.
43 private ShortcutService mShortcutService;
59 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(),
H A DShortcutManagerTest7.java35 import com.android.server.pm.ShortcutService.ConfigConstants;
H A DShortcutManagerTest3.java26 import com.android.server.pm.ShortcutService.ConfigConstants;
135 // (ShortcutService.verifyStates() will do so internally.)
H A DBaseShortcutManagerTest.java121 || DUMP_IN_TEARDOWN || ShortcutService.DEBUG;
206 /** ShortcutService with injection override methods. */
207 protected final class ShortcutServiceTestable extends ShortcutService {
1138 Log.v(TAG, "Dumping ShortcutService: " + message);
1193 + "/system/" + ShortcutService.FILENAME_BASE_STATE);
1207 + "/" + ShortcutService.FILENAME_USER_PACKAGES, message);
H A DShortcutManagerTest2.java48 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"
H A DShortcutManagerTest1.java90 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,
857 ShortcutService
[all...]
/frameworks/base/services/java/com/android/server/
H A DSystemServer.java88 import com.android.server.pm.ShortcutService;
1164 // LauncherAppsService uses ShortcutService.
1165 mSystemServiceManager.startService(ShortcutService.Lifecycle.class);

Completed in 448 milliseconds