Home
last modified time | relevance | path

Searched refs:mPackageName (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/packageinstaller/externalsources/src/android/packageinstaller/externalsources/cts/
DExternalSourcesInstantAppsTest.java44 private String mPackageName; field in ExternalSourcesInstantAppsTest
50 mPackageName = mContext.getPackageName(); in setUp()
54 AppOpsUtils.setOpMode(mPackageName, "REQUEST_INSTALL_PACKAGES", mode); in setAppOpsMode()
61 assertFalse("Instant app " + mPackageName + " allowed to install packages", isTrusted); in blockedSourceTest()
68 assertFalse("Instant app " + mPackageName + " allowed to install packages", isTrusted); in allowedSourceTest()
75 assertFalse("Instant app " + mPackageName + " allowed to install packages", isTrusted); in defaultSourceTest()
DExternalSourcesTest.java44 private String mPackageName; field in ExternalSourcesTest
51 mPackageName = mContext.getPackageName(); in setUp()
57 commandBuilder.append(" " + mPackageName); in setAppOpsMode()
67 Assert.assertFalse("Package " + mPackageName in blockedSourceTest()
75 Assert.assertTrue("Package " + mPackageName in allowedSourceTest()
83 Assert.assertFalse("Package " + mPackageName in defaultSourceTest()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAlwaysOnVpnTest.java44 private String mPackageName; field in AlwaysOnVpnTest
51 mPackageName = mContext.getPackageName(); in setUp()
83 restrictions.putStringArray(RESTRICTION_ALLOWED, new String[] {mPackageName}); in testAllowedApps()
92 restrictions.putStringArray(RESTRICTION_DISALLOWED, new String[] {mPackageName}); in testDisallowedApps()
103 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, mPackageName, in testSetNonVpnAlwaysOn()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java97 private final String mPackageName; field in AccessibilityEndToEndActivity.PackageNameInjector
100 mPackageName = packageName; in PackageNameInjector()
106 event.setPackageName(mPackageName); in onInitializeAccessibilityEvent()
112 info.setPackageName(mPackageName); in onInitializeAccessibilityNodeInfo()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java31 private final String mPackageName; field in TestResult
40 return mPackageName; in getPackageName()
90 mPackageName = packageName; in TestResult()
106 dest.writeString(mPackageName); in writeToParcel()
125 mPackageName = source.readString(); in TestResult()
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfoTest.java55 private String mPackageName; field in ApplicationInfoTest
59 mPackageName = getContext().getPackageName(); in setUp()
71 info.packageName = mPackageName; in testConstructor()
78 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcel()
109 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testDescribeContents()
130 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testLoadDescription()
141 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in verifyOwnInfo()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DPreSimpleSaveActivityTest.java84 Helper.assertHasSessions(mPackageName); in saveUiRestoredAfterTappingLinkTest()
143 Helper.assertHasSessions(mPackageName); in tapLinkThenTapBackThenStartOverTest()
203 Helper.assertHasSessions(mPackageName); in tapLinkThenTapBackThenStartOverTest()
237 Helper.assertHasSessions(mPackageName); in saveUiCancelledAfterTappingLinkTest()
295 Helper.assertHasSessions(mPackageName); in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
330 Helper.assertHasSessions(mPackageName); in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
376 Helper.assertHasSessions(mPackageName); in tapLinkAfterUpdateAppliedTest()
392 final UiObject2 changed = saveUi.findObject(By.res(mPackageName, ID_STATIC_TEXT)); in tapLinkAfterUpdateAppliedTest()
DUiBot.java112 private final String mPackageName; field in UiBot
127 mPackageName = mContext.getPackageName(); in UiBot()
343 UiObject2 object = waitForObject(By.res(mPackageName, id));
365 final UiObject2 obj = waitForObject(By.res(mPackageName, id), timeout);
377 boolean gone = mDevice.wait(Until.gone(By.res(mPackageName, id)), timeout.ms());
404 return waitForObject(By.res(mPackageName, id)).getText();
411 waitForObject(By.res(mPackageName, id)).click();
418 waitForObject(By.res(mPackageName, id)).setText(newText);
611 final UiObject2 field = waitForObject(By.res(mPackageName, id));
838 final UiObject2 child = parent.findObject(By.res(mPackageName, childId));
DSimpleSaveActivityTest.java220 Helper.assertHasSessions(mPackageName); in saveTest()
261 Helper.assertHasSessions(mPackageName); in testSave_launchIntent()
291 Helper.assertHasSessions(mPackageName); in testSaveThenStartNewSessionRightAway()
374 Helper.assertHasSessions(mPackageName); in testCancelPreventsSaveUiFromShowing()
425 Helper.assertHasSessions(mPackageName); in dismissSaveTest()
562 Helper.assertHasSessions(mPackageName); in saveUiRestoredAfterTappingLinkTest()
631 Helper.assertHasSessions(mPackageName); in tapLinkThenTapBackThenStartOverTest()
686 Helper.assertHasSessions(mPackageName); in tapLinkThenTapBackThenStartOverTest()
718 Helper.assertHasSessions(mPackageName); in saveUiCancelledAfterTappingLinkTest()
832 Helper.assertHasSessions(mPackageName); in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
[all …]
DAutoFillServiceTestCase.java96 protected final String mPackageName; field in AutoFillServiceTestCase
109 mPackageName = mContext.getPackageName(); in AutoFillServiceTestCase()
DCustomDescriptionWithLinkTestCase.java253 final RemoteViews presentation = new RemoteViews(mPackageName, in newTemplate()
296 final UiObject2 link = container.findObject(By.res(mPackageName, ID_LINK)); in getLink()
DMultiWindowLoginActivityTest.java75 return runShellCommand("am start %s/%s -f 0x%s", mPackageName, activity, in runAmStartActivity()
DCustomDescriptionDateTest.java90 final UiObject2 staticText = saveUi.findObject(By.res(mPackageName, "static_text")); in testCustomSave()
DCustomDescriptionTest.java504 .that(saveUi.findObject(By.res(mPackageName, "static_text"))).isNull(); in assertSaveUiWithoutCustomDescriptionIsShown()
512 final UiObject2 staticText = saveUi.findObject(By.res(mPackageName, "static_text")); in assertSaveUiWithCustomDescriptionIsShown()
DLoginActivityTest.java907 runShellCommand("appops set %s SYSTEM_ALERT_WINDOW allow", mPackageName); in testAutoFillOneDatasetAndSaveHidingOverlays()
976 runShellCommand("appops set %s SYSTEM_ALERT_WINDOW ignore", mPackageName); in testAutoFillOneDatasetAndSaveHidingOverlays()
2270 RemoteViews presentation = new RemoteViews(mPackageName, R.layout.list_item); in testClickCustomButton()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DBaseDeviceAdminTest.java29 protected String mPackageName; field in BaseDeviceAdminTest
39 mPackageName = mContext.getPackageName(); in setUp()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java102 private String mPackageName; field in VpnTest
126 mPackageName = mActivity.getPackageName(); in setUp()
221 .putExtra(mPackageName + ".cmd", "connect") in startVpn()
222 .putExtra(mPackageName + ".addresses", TextUtils.join(",", addresses)) in startVpn()
223 .putExtra(mPackageName + ".routes", TextUtils.join(",", routes)) in startVpn()
224 .putExtra(mPackageName + ".allowedapplications", allowedApplications) in startVpn()
225 .putExtra(mPackageName + ".disallowedapplications", disallowedApplications); in startVpn()
267 .putExtra(mPackageName + ".cmd", "disconnect"); in stopVpn()
557 String allowedApps = mRemoteSocketFactoryClient.getPackageName() + "," + mPackageName; in testAppAllowed()
573 String disallowedApps = mRemoteSocketFactoryClient.getPackageName() + "," + mPackageName; in testAppDisallowed()
/cts/tests/tests/telephony/src/android/telephony/cts/
DSubscriptionManagerTest.java65 private String mPackageName; field in SubscriptionManagerTest
83 mPackageName = InstrumentationRegistry.getContext().getPackageName(); in setUp()
136 setSubPlanOwner(mSubId, mPackageName); in testSubscriptionPlans()
171 setSubPlanOwner(mSubId, mPackageName); in testSubscriptionPlansOverrideCongested()
224 setSubPlanOwner(mSubId, mPackageName); in testSubscriptionPlansOverrideUnmetered()
254 setSubPlanOwner(mSubId, mPackageName); in testSubscriptionPlansInvalid()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java63 private String mPackageName; field in InputMethodInfoTest
83 mPackageName = mContext.getPackageName(); in setup()
87 mInputMethodInfo = new InputMethodInfo(mPackageName, mClassName, mLabel, mSettingsActivity); in setup()
150 assertEquals(mPackageName, info.getPackageName()); in assertInfo()
175 InputMethodInfo inputMethodInfo = new InputMethodInfo(mPackageName, mClassName, mLabel, in testEquals()
/cts/tests/signature/src/android/signature/cts/
DJDiffClassDescription.java34 private final String mPackageName; field in JDiffClassDescription
59 mPackageName = pkg; in JDiffClassDescription()
61 mAbsoluteClassName = mPackageName + "." + mShortClassName; in JDiffClassDescription()
66 return mPackageName; in getPackageName()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java63 private final String mPackageName; field in ShortcutManagerCtsTestsBase.SpoofingContext
67 mPackageName = packageName; in SpoofingContext()
72 return mPackageName; in getPackageName()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerPinnedStackTests.java1584 private final String mPackageName; field in ActivityManagerPinnedStackTests.AppOpsSession
1587 mPackageName = activityName.getPackageName(); in AppOpsSession()
1591 setAppOpsOpToMode(mPackageName, op, mode); in setOpToMode()
1596 executeShellCommand("appops reset " + mPackageName); in close()