/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageArchiverTest.java | 94 private static final String PACKAGE = "com.example"; field in PackageArchiverTest 161 when(mComputer.getPackageStateFiltered(eq(PACKAGE), anyInt(), anyInt())).thenReturn( in setUp() 170 when(mPackageState.getPackageName()).thenReturn(PACKAGE); in setUp() 173 when(rule.mocks().getSettings().getPackageLPr(eq(PACKAGE))).thenReturn( in setUp() 183 when(mLauncherApps.getActivityList(eq(PACKAGE), eq(UserHandle.CURRENT))).thenReturn( in setUp() 199 anyInt(), eq(PACKAGE))).thenReturn(MODE_ALLOWED); in setUp() 205 when(mPackageManager.getResourcesForApplication(eq(PACKAGE))).thenReturn( in setUp() 223 doReturn(ICON_PATH).when(mArchiveManager).storeIcon(eq(PACKAGE), in setUp() 237 () -> mArchiveManager.requestArchive(PACKAGE, "different", mIntentSender, in archiveApp_callerPackageNameIncorrect() 249 when(mComputer.getPackageStateFiltered(eq(PACKAGE), anyInt(), anyInt())).thenReturn( in archiveApp_packageNotInstalled() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsPermissionsTest.java | 44 private static final String PACKAGE = "com.example.package"; field in SmsPermissionsTest 105 true /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, MESSAGE)); in testCheckCallingSendTextPermissions_persist_grant() 114 true /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, in testCheckCallingSendTextPermissions_persist_noGrant() 125 mMockAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE, in testCheckCallingSendTextPermissions_persist_noAppOps() 129 true /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, MESSAGE)); in testCheckCallingSendTextPermissions_persist_noAppOps() 141 mMockAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE, in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp() 146 false /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, MESSAGE)); in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp() 152 false /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, MESSAGE)); in testCheckCallingSendTextPermissions_noPersist_grantViaModifyAndSend() 161 false /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, in testCheckCallingSendTextPermissions_noPersist_noModify() 175 false /* persistMessageForNonDefaultSmsApp */, PACKAGE, ATTRIBUTION_TAG, in testCheckCallingSendTextPermissions_noPersist_noSendSmsPermission() [all …]
|
D | TelephonyPermissionsTest.java | 70 private static final String PACKAGE = "com.example"; field in TelephonyPermissionsTest 125 when(mMockAppOps.noteOp(anyString(), eq(UID), eq(PACKAGE), eq(FEATURE), in setUp() 127 when(mMockAppOps.noteOpNoThrow(anyString(), eq(UID), eq(PACKAGE), eq(FEATURE), in setUp() 150 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG); in testCheckReadPhoneState_noPermissions() 162 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPrivilegedPermission() 170 .noteOpNoThrow(eq(AppOpsManager.OPSTR_READ_PHONE_STATE), eq(UID), eq(PACKAGE), in testCheckReadPhoneState_hasPermissionAndAppOp() 174 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionAndAppOp() 182 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionWithoutAppOp() 192 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasCarrierPrivileges() 198 mMockContext, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneStateOnAnyActiveSub_noPermissions() [all …]
|
/frameworks/compile/libbcc/tests/debuginfo/ |
D | build_test_apk.sh | 26 PACKAGE="" 90 PACKAGE="$2" 163 if [ -z "$PACKAGE" ]; then 164 PACKAGE=com.android.test.rsdebug.$TESTCASE 168 …reate project --target $TARGET --name $NAME --path $OUT_DIR --activity $ACTIVITY --package $PACKAGE 177 DEST_SRC_DIR=$OUT_DIR/src/`echo $PACKAGE | sed 's/\./\//g'` 196 echo " %PACKAGE% ==> $PACKAGE" 199 SUBST_PARAMS="$ACTIVITY $PACKAGE $TESTCASE $MINSDK"
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | RecursiveStringArrayResourceResolverTest.kt | 40 const val PACKAGE = "com.android.test" constant 72 …val mockId = mResources.mockStringArrayResource(pkg = PACKAGE, name = ROOT_RESOURCE, values = valu… in testCanResolveTheArrayWithoutImports() 74 val actual = mTarget.resolve(/* pkg= */ PACKAGE, /* rootId = */ mockId) in testCanResolveTheArrayWithoutImports() 82 val externalValues = arrayOf("ext.a", "ext.b", "#import:$PACKAGE/$SUB_RESOURCE") in testCanResolveTheArrayWithImports() 85 mResources.mockStringArrayResource(pkg = PACKAGE, name = SUB_RESOURCE, values = subValues) in testCanResolveTheArrayWithImports() 87 …val mockId = mResources.mockStringArrayResource(pkg = PACKAGE, name = ROOT_RESOURCE, values = valu… in testCanResolveTheArrayWithImports() 89 val actual = mTarget.resolve(/* pkg= */ PACKAGE, /* rootId= */ mockId) in testCanResolveTheArrayWithImports()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | PackageUpdateMonitorTest.kt | 59 underTest = PackageUpdateMonitor(USER, PACKAGE, {}, bgHandler, context) in startMonitoring_registerOnlyOnce() 77 underTest = PackageUpdateMonitor(USER, PACKAGE, {}, bgHandler, context) in stopMonitoring_unregistersOnlyOnce() 101 underTest = PackageUpdateMonitor(USER, PACKAGE, callback, bgHandler, context) in onPackageUpdated_correctPackageAndUser_callbackRuns() 103 underTest.onPackageUpdateFinished(PACKAGE, UserHandle.getUid(USER.identifier, 10000)) in onPackageUpdated_correctPackageAndUser_callbackRuns() 111 underTest = PackageUpdateMonitor(USER, PACKAGE, callback, bgHandler, context) in onPackageUpdated_correctPackage_wrongUser_callbackDoesntRun() 113 underTest.onPackageUpdateFinished(PACKAGE, UserHandle.getUid(USER.identifier + 1, 10000)) in onPackageUpdated_correctPackage_wrongUser_callbackDoesntRun() 121 underTest = PackageUpdateMonitor(USER, PACKAGE, callback, bgHandler, context) in onPackageUpdated_wrongPackage_correctUser_callbackDoesntRun() 129 private val PACKAGE = "pkg" constant
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccConnector.java | 20 import static com.android.internal.annotations.VisibleForTesting.Visibility.PACKAGE; 200 @VisibleForTesting(visibility = PACKAGE) 207 @VisibleForTesting(visibility = PACKAGE) 214 @VisibleForTesting(visibility = PACKAGE) 226 @VisibleForTesting(visibility = PACKAGE) 233 @VisibleForTesting(visibility = PACKAGE) 249 @VisibleForTesting(visibility = PACKAGE) 265 @VisibleForTesting(visibility = PACKAGE) 282 @VisibleForTesting(visibility = PACKAGE) 290 @VisibleForTesting(visibility = PACKAGE) [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractE2ETest.java | 51 private static final String PACKAGE = "com.android.frameworks.coretests"; field in FontsContractE2ETest 122 AUTHORITY, PACKAGE, "singleFontFamily", SIGNATURE); in typefaceCacheTest() 133 AUTHORITY, PACKAGE, "singleFontFamily", SIGNATURE); in typefaceCacheTest() 144 AUTHORITY, PACKAGE, "singleFontFamily2", SIGNATURE); in typefaceCacheTest() 159 AUTHORITY, PACKAGE, "singleFontFamily", SIGNATURE); in typefaceNotCacheTest() 182 AUTHORITY, PACKAGE, MockFontProvider.NULL_FD_QUERY, SIGNATURE); in typefaceNullFdTest() 191 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, "singleFontFamily", SIGNATURE); in getFontSyncTest() 198 AUTHORITY, PACKAGE, MockFontProvider.BLOCKING_QUERY, SIGNATURE); in getFontSyncTest_timeout()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileRequestDialogTest.kt | 58 private const val PACKAGE = "package" constant 87 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_hasCorrectViews() 102 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_hasCorrectAppName() 115 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_hasCorrectLabel() 130 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_hasIcon() 144 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, null, PACKAGE) in setTileData_nullIcon_hasIcon() 159 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_hasNoStateDescription() 175 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_tileNotClickable() 192 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in setTileData_tileHasCorrectContentDescription() 222 val tileData = TileRequestDialog.TileData(UID, APP_NAME, LABEL, icon, PACKAGE) in uriIconLoadSuccess_correctIcon() [all …]
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodDialogWindowContext.java | 19 import static com.android.internal.annotations.VisibleForTesting.Visibility.PACKAGE; 33 @VisibleForTesting(visibility = PACKAGE) 46 @VisibleForTesting(visibility = PACKAGE)
|
/frameworks/base/core/java/android/view/ |
D | CutoutSpecification.java | 24 import static com.android.internal.annotations.VisibleForTesting.Visibility.PACKAGE; 72 @VisibleForTesting(visibility = PACKAGE) 151 @VisibleForTesting(visibility = PACKAGE) 157 @VisibleForTesting(visibility = PACKAGE) 163 @VisibleForTesting(visibility = PACKAGE) 169 @VisibleForTesting(visibility = PACKAGE) 175 @VisibleForTesting(visibility = PACKAGE) 186 @VisibleForTesting(visibility = PACKAGE) 202 @VisibleForTesting(visibility = PACKAGE) 240 @VisibleForTesting(visibility = PACKAGE) [all …]
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | Utils.java | 32 protected final static String PACKAGE = "android.windowanimationjank"; field in Utils 34 protected final static String ELEMENT_LAYOUT_CLASS = PACKAGE + "." + ELEMENT_LAYOUT_ACTIVITY; 36 private static final BySelector ROOT_ELEMENT_LAYOUT = By.res(PACKAGE, "root_flow_layout"); 67 intent.setComponent(new ComponentName(PACKAGE, ELEMENT_LAYOUT_CLASS)); in startElementLayout()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_soundtrigger_middleware_AudioSessionProviderImpl.cpp | 26 #define PACKAGE "com/android/server/soundtrigger_middleware" macro 27 #define CLASSNAME PACKAGE "/AudioSessionProviderImpl" 28 #define SESSION_CLASSNAME PACKAGE "/SoundTriggerMiddlewareImpl$AudioSessionProvider$AudioSession"
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/ |
D | MediaControlPanelTest.kt | 128 private const val PACKAGE = "PKG" in <lambda>() constant 249 whenever(packageManager.getApplicationInfo(eq(PACKAGE), anyInt())) in <lambda>() 251 whenever(packageManager.getApplicationLabel(any())).thenReturn(PACKAGE) in <lambda>() 307 packageName = PACKAGE, in <lambda>() 354 packageName = PACKAGE, in <lambda>() 510 player.bindPlayer(state, PACKAGE) in <lambda>() 527 player.bindPlayer(state, PACKAGE) in <lambda>() 582 player.bindPlayer(state, PACKAGE) in <lambda>() 614 player.bindPlayer(state, PACKAGE) in <lambda>() 640 player.bindPlayer(state, PACKAGE) in <lambda>() [all …]
|
/frameworks/base/services/flags/java/com/android/server/flags/ |
D | FeatureFlagsService.java | 86 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 94 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 106 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE)
|
/frameworks/base/core/java/android/text/format/ |
D | DateIntervalFormat.java | 22 import static com.android.internal.annotations.VisibleForTesting.Visibility.PACKAGE; 38 @VisibleForTesting(visibility = PACKAGE) 50 @VisibleForTesting(visibility = PACKAGE) 67 @VisibleForTesting(visibility = PACKAGE)
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioVolumeGroupHelperBase.java | 19 import static com.android.internal.annotations.VisibleForTesting.Visibility.PACKAGE; 29 @VisibleForTesting(visibility = PACKAGE)
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | TargetSdkResolverTest.kt | 47 private const val PACKAGE = "pkg" constant 96 verify(packageManager).getApplicationInfo(eq(PACKAGE), anyInt()) in resolveFromPackageManager() 109 verify(packageManager).getApplicationInfo(eq(PACKAGE), anyInt()) in resolveFromPackageManager_andPackageManagerCrashes() 113 PACKAGE, "opPkg", 0, "tag", 0, 0, in createSbn()
|
/frameworks/libs/modules-utils/java/android/annotation/ |
D | UserHandleAware.java | 20 import static java.lang.annotation.ElementType.PACKAGE; 47 @Target({TYPE, METHOD, CONSTRUCTOR, PACKAGE})
|
D | TestApi.java | 23 import static java.lang.annotation.ElementType.PACKAGE; 39 @Target({TYPE, FIELD, METHOD, CONSTRUCTOR, ANNOTATION_TYPE, PACKAGE})
|
D | Hide.java | 23 import static java.lang.annotation.ElementType.PACKAGE; 38 @Target({TYPE, FIELD, METHOD, CONSTRUCTOR, ANNOTATION_TYPE, PACKAGE})
|
D | RequiresApi.java | 21 import static java.lang.annotation.ElementType.PACKAGE; 40 @Target({TYPE, METHOD, CONSTRUCTOR, FIELD, PACKAGE})
|
D | Condemned.java | 23 import static java.lang.annotation.ElementType.PACKAGE; 42 @Target(value={CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE})
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | SelectionEvent.java | 383 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 450 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 469 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 533 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 548 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 563 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 578 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 593 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE) 608 @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE)
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ProcessObserverTest.java | 76 private static final String PACKAGE = "com.foo"; field in ProcessObserverTest 245 app.getPid(), app.uid, app.info.uid, PACKAGE, PACKAGE); in testNormal() local 249 final ProcessRecord app = makeActiveProcessRecord(PACKAGE); in startProcess() 250 final ApplicationInfo appInfo = makeApplicationInfo(PACKAGE); in startProcess() 253 app.getThread().bindApplication(PACKAGE, appInfo, in startProcess()
|