Home
last modified time | relevance | path

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

123

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java80 private final String mPackageName; field in Package
83 mPackageName = packageName; in Package()
88 return mPackageName; in packageName()
105 .addOperand(mPackageName) in installExisting()
210 .addOperand(mPackageName) in uninstall()
265 .addOperand(mPackageName) in enable()
289 .addOperand(mPackageName) in disable()
439 .filter(p -> p.mPackageName.equals(mPackageName)) in runningProcesses()
501 .checkPermission(permission, mPackageName) == PERMISSION_GRANTED; in hasPermission()
521 + mPackageName + " but can't on instant apps"); in requestedPermissions()
[all …]
DAdbPackage.java41 String mPackageName; field in AdbPackage.MutablePackage
65 mMutablePackage.mPackageName, /* flags= */ GET_PERMISSIONS); in AdbPackage()
109 return mMutablePackage.mPackageName; in packageName()
115 stringBuilder.append("packageName=" + mMutablePackage.mPackageName); in toString()
/cts/tests/tests/security/src/android/security/cts/
DSQLiteTest.java42 private String mPackageName; field in SQLiteTest
52 mPackageName = mContext.getPackageName(); in setUp()
67 uri = uri.buildUpon().appendQueryParameter("source_package", mPackageName).build(); in test_android_cve_2019_2195()
70 mContext.grantUriPermission(mPackageName, uri, in test_android_cve_2019_2195()
87 + fileToDump + "'',?,?,''" + mPackageName + "'',4);',0,'','Z')") in test_android_cve_2019_2195()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListenerQuery.java35 private final StringQueryHelper<NotificationListenerQuery> mPackageName = field in NotificationListenerQuery
53 return mPackageName; in wherePackageName()
106 return StringQueryHelper.matches(mPackageName, sbn.getPackageName()) in matches()
113 mPackageName.describeQuery("packageName"), in describeQuery()
/cts/libs/install/src/com/android/cts/install/lib/
DTestApp.java79 private final String mPackageName; field in TestApp
88 mPackageName = packageName; in TestApp()
98 mPackageName = packageName; in TestApp()
123 return mPackageName; in getPackageName()
131 return new VersionedPackage(mPackageName, mVersionCode); in getVersionedPackage()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/
DAssertionsByIntentResolution.java43 private final String mPackageName; field in AssertionsByIntentResolution
47 mPackageName = packageName; in AssertionsByIntentResolution()
53 .assertMatched(mPackageName, activity(mimeGroup)); in assertMatchedByMimeGroup()
59 .assertNotMatched(mPackageName, activity(mimeGroup)); in assertNotMatchedByMimeGroup()
148 return mPackageName + ".FILTER_INFO_HOOK_"+ mimeGroup; in action()
/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/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEventLogsQuery.java37 private final String mPackageName; field in EventLogsQuery
47 mPackageName = packageName; in EventLogsQuery()
52 return mPackageName; in getPackageName()
116 mFields.add("packageName=" + query.mPackageName); in ToStringBuilder()
DRemoteEventQuerier.java58 private final String mPackageName; field in RemoteEventQuerier
63 mPackageName = packageName; in RemoteEventQuerier()
170 intent.setPackage(mPackageName); in blockingConnectOrFail()
171 intent.setClassName(mPackageName, "com.android.eventlib.QueryService"); in blockingConnectOrFail()
204 Package pkg = TestApis.packages().find(mPackageName); in blockingConnectOrFail()
206 …throw new AssertionError("Tried to bind to package " + mPackageName + " but it is not installed on… in blockingConnectOrFail()
DEvent.java37 protected String mPackageName; field in Event
42 return mPackageName; in packageName()
DEventLogger.java50 mEvent.mPackageName = mContext.getPackageName(); in log()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppQueryBuilder.java39 StringQueryHelper<TestAppQueryBuilder> mPackageName = new StringQueryHelper<>(this); field in TestAppQueryBuilder
68 return mPackageName; in wherePackageName()
158 if (!StringQueryHelper.matches(mPackageName, details.mApp.getPackageName())) { in matches()
209 if (!mPackageName.isQueryingForExactMatch()) { in matches()
220 mPackageName.describeQuery("packageName"), in describeQuery()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAlwaysOnVpnTest.java53 private String mPackageName; field in AlwaysOnVpnTest
60 mPackageName = mContext.getPackageName(); in setUp()
95 restrictions.putStringArray(RESTRICTION_ALLOWED, new String[] {mPackageName}); in testAllowedApps()
105 restrictions.putStringArray(RESTRICTION_DISALLOWED, new String[] {mPackageName}); in testDisallowedApps()
190 ADMIN_RECEIVER_COMPONENT, mPackageName, true); in testSetNonVpnAlwaysOn()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java120 private final String mPackageName; field in AccessibilityEndToEndActivity.PackageNameInjector
123 mPackageName = packageName; in PackageNameInjector()
129 event.setPackageName(mPackageName); in onInitializeAccessibilityEvent()
135 info.setPackageName(mPackageName); in onInitializeAccessibilityNodeInfo()
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfoTest.java72 private String mPackageName; field in ApplicationInfoTest
76 mPackageName = getContext().getPackageName(); in setUp()
88 info.packageName = mPackageName; in testConstructor()
95 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcel()
126 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testDescribeContents()
147 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testLoadDescription()
158 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in verifyOwnInfo()
241 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcelDontSquash()
273 mApplicationInfo = getContext().getPackageManager().getApplicationInfo(mPackageName, 0); in testWriteToParcelSquash()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DSoParser.java39 private String mPackageName; field in SoParser
54 mPackageName = getFileName().split("\\.")[0]; in SoParser()
103 mPackageName = subStr[subStr.length - 1]; in setPackageName()
113 mAppInfoBuilder.setPackageName(mPackageName); in getAppInfo()
163 mInternalApiClassBuilder.setName(mPackageName); in parseApi()
DDexParser.java55 private String mPackageName; field in DexParser
61 mPackageName = getFileName().split("\\.")[0]; in DexParser()
70 mPackageName = name; in setPackageName()
93 mExternalApiPackageBuilder.setName(mPackageName); in parse()
96 mInternalApiPackageBuilder.setName(mPackageName); in parse()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java48 private final String mPackageName; field in TestUtils
57 mPackageName = mContext.getPackageName(); in TestUtils()
174 return mDevice.wait(Until.findObject(By.text(text).pkg(mPackageName)), 1000); in getTextObject()
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/
DTapjackingTest.java67 private String mPackageName; field in TapjackingTest
76 mPackageName = mContext.getPackageName(); in setUp()
111 waitForView(mPackageName, OVERLAY_ACTIVITY_TEXT_VIEW_ID)); in testTapsDroppedWhenObscured()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java72 private String mPackageName; field in InputMethodInfoTest
93 mPackageName = mContext.getPackageName(); in setup()
97 mInputMethodInfo = new InputMethodInfo(mPackageName, mClassName, mLabel, mSettingsActivity); in setup()
160 assertEquals(mPackageName, info.getPackageName()); in assertInfo()
185 InputMethodInfo inputMethodInfo = new InputMethodInfo(mPackageName, mClassName, mLabel, in testEquals()
/cts/tests/signature/lib/common/src/android/signature/cts/
DJDiffClassDescription.java34 private final String mPackageName; field in JDiffClassDescription
60 mPackageName = pkg; in JDiffClassDescription()
62 mAbsoluteClassName = mPackageName + "." + mShortClassName; in JDiffClassDescription()
76 return mPackageName; in getPackageName()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java158 private final String mPackageName; field in UiBot
173 mPackageName = mContext.getPackageName(); in UiBot()
489 UiObject2 object = waitForObject(By.res(mPackageName, id)); in selectByRelativeId()
511 final UiObject2 obj = waitForObject(By.res(mPackageName, id), timeout); in assertShownByRelativeId()
542 final SearchCondition<Boolean> condition = Until.gone(By.res(mPackageName, id)); in assertGoneByRelativeId()
582 return waitForObject(By.res(mPackageName, id)).getText(); in getTextByRelativeId()
589 waitForObject(By.res(mPackageName, id)).click(); in focusByRelativeId()
596 waitForObject(By.res(mPackageName, id)).setText(newText); in setTextByRelativeId()
867 final UiObject2 field = waitForObject(By.res(mPackageName, id)); in getAutofillMenuOption()
1002 final UiObject2 child = waitForObject(parent, By.res(mPackageName, resourceId), in assertChildText()
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityStoppedEvent.java106 + ", packageName='" + mPackageName + "'" in toString()
DActivityStartedEvent.java107 + ", packageName='" + mPackageName + "'" in toString()
DActivityRestartedEvent.java108 + ", packageName='" + mPackageName + "'" in toString()

123