Home | History | Annotate | Download | only in cookie

Lines Matching refs:pm

19 import android.content.pm.PackageManager;
34 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
37 assertTrue(pm.isInstantApp());
40 assertTrue(pm.getInstantAppCookieMaxBytes() > 0);
43 byte[] cookie = pm.getInstantAppCookie();
47 pm.updateInstantAppCookie("1".getBytes());
51 pm.updateInstantAppCookie(
52 new byte[pm.getInstantAppCookieMaxBytes() + 1]);
59 assertEquals("1", new String(pm.getInstantAppCookie()));
64 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
67 pm.updateInstantAppCookie("2".getBytes());
72 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
75 assertEquals("2", new String(pm.getInstantAppCookie()));
80 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
83 assertTrue(pm.isInstantApp());
86 pm.updateInstantAppCookie("3".getBytes());
91 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
94 assertFalse(pm.isInstantApp());
97 assertEquals("3", new String(pm.getInstantAppCookie()));
102 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
105 pm.updateInstantAppCookie("4".getBytes());
110 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
113 byte[] cookie = pm.getInstantAppCookie();