/cts/tests/credentials/src/android/credentials/cts/unittests/service/ |
D | CallingAppInfoTest.java | 43 final String mPackageName = mContext.getOpPackageName(); field in CallingAppInfoTest 44 final SigningInfo mSigningInfo = mContext.getPackageManager().getPackageInfo(mPackageName, 63 assertThrows(NullPointerException.class, () -> new CallingAppInfo(mPackageName, null)); in testConstructor_nullSigningInfo_throwsNPE() 68 final CallingAppInfo info = new CallingAppInfo(mPackageName, mSigningInfo); in testConstructor_success() 69 assertThat(info.getPackageName()).isEqualTo(mPackageName); in testConstructor_success() 75 final CallingAppInfo info1 = new CallingAppInfo(mPackageName, mSigningInfo); in testWriteToParcel_success()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Package.java | 108 private final String mPackageName; field in Package 118 mPackageName = packageName; in Package() 123 return mPackageName; in packageName() 140 .addOperand(mPackageName) in installExisting() 256 .addOperand(mPackageName) in uninstall() 312 .addOperand(mPackageName) in enable() 339 .addOperand(mPackageName) in disable() 491 .filter(p -> p.mPackageName.equals(mPackageName)) in runningProcesses() 554 .checkPermission(permission, mPackageName) == PERMISSION_GRANTED; in hasPermission() 571 + mPackageName + " but can't on instant apps"); in requestedPermissions() [all …]
|
D | AdbPackage.java | 41 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/gameservice/src/android/service/games/ |
D | TestGameSessionService.java | 88 private final String mPackageName; field in TestGameSessionService.TestGameSession 96 mPackageName = packageName; in TestGameSession() 103 return mPackageName; in getPackageName() 121 sActiveSessions.add(mPackageName); in onCreate() 124 mPackageName, in onCreate() 130 textView.setText("Overlay was rendered on: " + mPackageName); in onCreate() 194 sActiveSessions.remove(mPackageName); in onDestroy() 197 mPackageName, in onDestroy()
|
/cts/tests/framework/base/locale/src/android/localemanager/cts/ |
D | BlockingBroadcastReceiver.java | 42 private String mPackageName; field in BlockingBroadcastReceiver 50 mPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in onReceive() 63 return mPackageName; in getPackageName() 81 mPackageName = null; in reset()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | SQLiteTest.java | 49 private String mPackageName; field in SQLiteTest 58 mPackageName = mContext.getPackageName(); in setUp() 74 uri = uri.buildUpon().appendQueryParameter("source_package", mPackageName).build(); in test_android_cve_2019_2195() 77 mContext.grantUriPermission(mPackageName, uri, in test_android_cve_2019_2195() 94 + fileToDump + "'',?,?,''" + mPackageName + "'',4);',0,'','Z')") in test_android_cve_2019_2195()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstallDontKillTest.java | 65 private String mPackageName; field in InstallDontKillTest 80 mPackageName = mContext.getPackageName(); in setup() 87 mPackageName, ApplicationInfoFlags.of(0)).getCodePath(); in setup() 131 "pm install -p %s --dont-kill %s", mPackageName, SPLIT_APK_1)) in installSplitsWithDontKill() 134 mPackageName, ApplicationInfoFlags.of(0)).getCodePath(); in installSplitsWithDontKill() 138 "pm install -p %s --dont-kill %s", mPackageName, SPLIT_APK_2)) in installSplitsWithDontKill() 141 mPackageName, ApplicationInfoFlags.of(0)).getCodePath(); in installSplitsWithDontKill()
|
D | UninstallCallbackTest.java | 47 private String mPackageName; field in UninstallCallbackTest.PackageDeleteObserver 62 mPackageName = packageName; in onPackageDeleted() 70 return mPackageName; in getPackageName()
|
/cts/tests/tests/security/src/android/security/cts/AutomaticZenRuleTests/ |
D | AutomaticZenRuleTests.java | 49 private String mPackageName = null; field in AutomaticZenRuleTests 60 mPackageName = context.getPackageName(); in setUp() 62 mUiautomation.executeShellCommand("cmd notification allow_dnd " + mPackageName); in setUp() 81 mUiautomation.executeShellCommand("cmd notification disallow_dnd " + mPackageName); in tearDown() 152 new ComponentName(mPackageName, PocActivity.class.getCanonicalName()); in testPocCVE_2022_20143() 173 new ComponentName(mPackageName, PocActivity.class.getCanonicalName()); in testPocCVE_2022_20425() 175 new ComponentName(mPackageName, SecondPocActivity.class.getCanonicalName()); in testPocCVE_2022_20425()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | TestApp.java | 91 private final String mPackageName; field in TestApp 100 mPackageName = packageName; in TestApp() 110 mPackageName = packageName; in TestApp() 135 return mPackageName; in getPackageName() 143 return new VersionedPackage(mPackageName, mVersionCode); in getVersionedPackage()
|
D | Install.java | 46 private String mPackageName = null; field in Install 113 mPackageName = packageName; in setPackageName() 287 if (!TextUtils.isEmpty(mPackageName)) { in createEmptyInstallSession() 288 params.setAppPackageName(mPackageName); in createEmptyInstallSession()
|
/cts/tests/tests/telecom-apps/TransactionalVoipAppMain/src/android/telecom/cts/apps/transactionalvoipappmain/ |
D | TransactionalVoipAppControlMain.java | 75 private String mPackageName = TransactionalVoipAppControlMain.class.getPackageName(); field in TransactionalVoipAppControlMain 83 private final String NOTIFICATION_CHANNEL_NAME = mPackageName + " Notification Channel"; 132 throw new TestAppException(mPackageName, stackTrace, 140 mPackageName, 155 throw new TestAppException(mPackageName, stackTrace, 178 throw new TestAppException(mPackageName, stackTrace, 199 assertCountDownLatchWasCalled(mPackageName, stackTrace, 229 throw new TestAppException(mPackageName, stackTrace, 261 mPackageName, 276 mPackageName, [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/ |
D | TestResult.java | 31 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/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/ |
D | AssertionsByIntentResolution.java | 43 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/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
D | EventLogsQuery.java | 37 private final String mPackageName; field in EventLogsQuery 47 mPackageName = packageName; in EventLogsQuery() 52 return mPackageName; in getPackageName() 122 mFields.add("packageName=" + query.mPackageName); in ToStringBuilder()
|
D | RemoteEventQuerier.java | 58 private final String mPackageName; field in RemoteEventQuerier 63 mPackageName = packageName; in RemoteEventQuerier() 171 intent.setPackage(mPackageName); in blockingConnectOrFail() 172 intent.setClassName(mPackageName, "com.android.eventlib.QueryService"); in blockingConnectOrFail() 205 Package pkg = TestApis.packages().find(mPackageName); in blockingConnectOrFail() 207 …throw new AssertionError("Tried to bind to package " + mPackageName + " but it is not installed on… in blockingConnectOrFail()
|
D | Event.java | 37 protected String mPackageName; field in Event 42 return mPackageName; in packageName()
|
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppProviderTest.java | 101 private StringQuery mPackageName = null; field in TestAppProviderTest.QueryBuilder 109 mPackageName = packageName; in packageName() 140 mPackageName != null ? mPackageName : stringQueryBuilder().build(), in build() 564 assertThat(queryBuilder.mPackageName.matches(STRING_VALUE)).isTrue(); in query_queryAnnotationSpecifiesPackageName_matches() 565 assertThat(queryBuilder.mPackageName.matches(DIFFERENT_STRING_VALUE)).isFalse(); in query_queryAnnotationSpecifiesPackageName_matches() 612 assertThat(queryBuilder.mPackageName.matches(STRING_VALUE)).isTrue(); in query_stringQueryAnnotationSpecifiesIsEqualTo_matches() 613 assertThat(queryBuilder.mPackageName.matches(DIFFERENT_STRING_VALUE)).isFalse(); in query_stringQueryAnnotationSpecifiesIsEqualTo_matches() 624 assertThat(queryBuilder.mPackageName.matches(STRING_VALUE)).isFalse(); in query_stringQueryAnnotationSpecifiesIsNotEqualTo_matches() 625 assertThat(queryBuilder.mPackageName.matches(DIFFERENT_STRING_VALUE)).isTrue(); in query_stringQueryAnnotationSpecifiesIsNotEqualTo_matches() 636 assertThat(queryBuilder.mPackageName.matches(STRING_VALUE + "A")).isTrue(); in query_stringQueryAnnotationSpecifiesStartsWith_matches() [all …]
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | TestAppException.java | 29 private String mPackageName; field in TestAppException 40 dest.writeString(mPackageName); in writeToParcel() 66 mPackageName = packageName; in TestAppException()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AlwaysOnVpnTest.java | 53 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/tests/car/src/android/car/cts/ |
D | CarWatchdogManagerTest.java | 122 private String mPackageName; field in CarWatchdogManagerTest 133 mPackageName = mContext.getPackageName(); in setUp() 301 "Either" + mPackageName + " stats not found or less than 2 stats found.", in testGetAllResourceOveruseStats() 307 return statsList.get().size() > 1 && containsPackage(mPackageName, in testGetAllResourceOveruseStats() 314 containsPackageWithStatsDifferentThan(mPackageName, statsList.get())).isTrue(); in testGetAllResourceOveruseStats() 345 mResourceOveruseStatsForUserPackagePollingCheckCondition.setRequest(mPackageName, in testGetResourceOveruseStatsForUserPackage() 358 actualStats.getPackageName()).isEqualTo(mPackageName); in testGetResourceOveruseStatsForUserPackage() 377 mPackageName, /* userHandle= */ null, in testThrowsExceptionOnGetResourceOveruseStatsForUserPackageWithNullUserHandle() 387 mPackageName, mUserHandle, in testThrowsExceptionOnGetResourceOveruseStatsForUserPackageWithInvalidResourceType() 396 mPackageName, mUserHandle, in testThrowsExceptionOnGetResourceOveruseStatsForUserPackageWithInvalidStatsPeriod() [all …]
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppQueryBuilder.java | 42 StringQueryHelper<TestAppQueryBuilder> mPackageName = new StringQueryHelper<>(this); field in TestAppQueryBuilder 117 return mPackageName; in wherePackageName() 265 return Queryable.isEmptyQuery(mPackageName) in isEmptyQuery() 283 if (!StringQueryHelper.matches(mPackageName, details.mApp.getPackageName())) { in matches() 365 if (!mPackageName.isQueryingForExactMatch()) { in matches() 376 mPackageName.describeQuery("packageName"), in describeQuery() 400 return query(mPackageName.toAnnotation(), in toAnnotation()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 121 private final String mPackageName; field in AccessibilityEndToEndActivity.PackageNameInjector 124 mPackageName = packageName; in PackageNameInjector() 130 event.setPackageName(mPackageName); in onInitializeAccessibilityEvent() 136 info.setPackageName(mPackageName); in onInitializeAccessibilityNodeInfo()
|
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/ |
D | TapjackingTest.java | 62 private String mPackageName; field in TapjackingTest 69 mPackageName = mContext.getPackageName(); in setUp() 119 waitForView(mPackageName, OVERLAY_ACTIVITY_TEXT_VIEW_ID)); in testTapsDroppedWhenObscured() 144 waitForView(mPackageName, OVERLAY_ACTIVITY_TEXT_VIEW_ID)); in testTapsWhenNotObscured()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | SoParser.java | 39 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()
|