Home | History | Annotate | Download | only in pm

Lines Matching defs:cookie

139         // Only installed packages can get their own cookie
154 Slog.w(LOG_TAG, "Error reading cookie file: " + cookieFile);
161 @Nullable byte[] cookie, @UserIdInt int userId) {
162 if (cookie != null && cookie.length > 0) {
165 if (cookie.length > maxCookieSize) {
166 Slog.e(LOG_TAG, "Instant app cookie for package " + packageName + " size "
167 + cookie.length + " bytes while max size is " + maxCookieSize);
172 // Only an installed package can set its own cookie
178 mCookiePersistence.schedulePersistLPw(userId, pkg, cookie);
182 private void persistInstantApplicationCookie(@Nullable byte[] cookie,
187 Slog.e(LOG_TAG, "Cannot create instant app cookie directory");
192 Slog.e(LOG_TAG, "Cannot delete instant app cookie file");
195 // No cookie or an empty one means delete - done
196 if (cookie == null || cookie.length <= 0) {
201 fos.write(cookie, 0, cookie.length);
203 Slog.e(LOG_TAG, "Error writing instant app cookie file: " + cookieFile, e);
238 Slog.e(LOG_TAG, "Cannot create instant app cookie directory");
289 // Remove the on-disk state except the cookie
294 // If app signature changed - wipe the cookie
327 + " changed - dropping cookie");
351 // Deleting an app prunes all instant state such as cookie
549 File cookie = peekInstantCookieFile(packageName, userId);
550 if (cookie != null) {
551 cookie.delete();
1168 // persisting the cookie for a user and package.
1177 @NonNull byte[] cookie) {
1192 addPendingPersistCookieLPw(userId, pkg, cookie, newCookieFile);
1220 @NonNull PackageParser.Package pkg, @NonNull byte[] cookie,
1229 args.arg1 = cookie;
1256 byte[] cookie = (byte[]) state.arg1;
1259 persistInstantApplicationCookie(cookie, pkg.packageName, cookieFile, userId);