/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUidStateTrackerTest.java | 71 private static final int UID = 10001; field in AppOpsUidStateTrackerTest 125 procStateBuilder(UID) in testNoCapability() 129 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testNoCapability() 130 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testNoCapability() 131 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testNoCapability() 132 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testNoCapability() 134 mIntf.evalMode(UID, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO, MODE_FOREGROUND)); in testNoCapability() 139 procStateBuilder(UID) in testForegroundWithMicrophoneCapability() 144 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() 146 mIntf.evalMode(UID, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() [all …]
|
/frameworks/av/media/module/libmediatranscoding/tests/ |
D | TranscodingSessionController_tests.cpp | 53 #define UID(n) (kClientUid + (n)) macro 321 CLIENT(0), UID(0)); in SetUp() 323 CLIENT(1), UID(1)); in SetUp() 325 CLIENT(2), UID(2)); in SetUp() 327 CLIENT(3), UID(3)); in SetUp() 430 mUidPolicy->setTop(UID(1)); in TEST_F() 434 mController->submit(CLIENT(0), SESSION(0), UID(0), UID(0), mOfflineRequest, mClientCallback0); in TEST_F() 439 mController->submit(CLIENT(0), SESSION(1), UID(0), UID(0), mRealtimeRequest, mClientCallback0); in TEST_F() 444 mController->submit(CLIENT(0), SESSION(2), UID(0), UID(0), mRealtimeRequest, mClientCallback0); in TEST_F() 449 mController->submit(CLIENT(1), SESSION(0), UID(1), UID(0), mRealtimeRequest, mClientCallback1); in TEST_F() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | PowerAllowlistBackendTest.java | 55 private static final int UID = 12345; field in PowerAllowlistBackendTest 82 AppOpsManager.OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS, UID, PACKAGE_ONE); in setUp() 84 AppOpsManager.OP_SYSTEM_EXEMPT_FROM_POWER_RESTRICTIONS, UID, PACKAGE_TWO); in setUp() 94 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted() 95 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isFalse(); in testIsAllowlisted() 96 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_ONE}, UID)).isTrue(); in testIsAllowlisted() 97 assertThat(mPowerAllowlistBackend.isAllowlisted(new String[] {PACKAGE_TWO}, UID)).isFalse(); in testIsAllowlisted() 99 mPowerAllowlistBackend.addApp(PACKAGE_TWO, UID); in testIsAllowlisted() 102 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_ONE, UID)).isTrue(); in testIsAllowlisted() 103 assertThat(mPowerAllowlistBackend.isAllowlisted(PACKAGE_TWO, UID)).isTrue(); in testIsAllowlisted() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderWorkSourceTest.java | 52 private static final int UID = 100; field in BinderWorkSourceTest 111 Binder.setCallingWorkSourceUid(UID); in setWorkSource() 112 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource() 113 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource() 118 Binder.setCallingWorkSourceUid(UID); in clearWorkSource() 126 Binder.setCallingWorkSourceUid(UID); in setWorkSource_propagatedForMultipleCalls() 127 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 128 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 129 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 130 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() [all …]
|
D | BinderTest.java | 40 private static final int UID = 100; field in BinderTest 48 Binder.setCallingWorkSourceUid(UID); in testSetWorkSource() 49 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testSetWorkSource() 55 Binder.setCallingWorkSourceUid(UID); in testClearWorkSource() 63 Binder.setCallingWorkSourceUid(UID); in testRestoreWorkSource() 66 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testRestoreWorkSource()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsSensorTest.java | 44 private static final int UID = 10500; field in BatteryStatsSensorTest 56 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_CACHED_EMPTY); in testSensorStartStop() 57 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testSensorStartStop() 58 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 61 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 63 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); in testSensorStartStop() 64 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 65 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 68 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 69 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() [all …]
|
D | BatteryStatsBackgroundStatsTest.java | 47 private static final int UID = 10500; field in BatteryStatsBackgroundStatsTest 57 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryBackgroundTimeBase(UID); in testBgTimeBase() 69 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase() 76 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testBgTimeBase() 98 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); // background too in testBgTimeBase() 106 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase() 113 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_NONEXISTENT); in testBgTimeBase() 126 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryScreenOffBackgroundTimeBase(UID); in testScreenOffBgTimeBase() 130 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testScreenOffBgTimeBase() 147 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testScreenOffBgTimeBase() [all …]
|
D | BatteryStatsNoteTest.java | 95 private static final int UID = 10500; field in BatteryStatsNoteTest 98 private static final WorkSource WS = new WorkSource(UID); 114 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked() 119 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked() 121 BatteryStats.Counter bgCntr = bi.getUidStats().get(UID).getBluetoothScanResultBgCounter(); in testNoteBluetoothScanResultLocked() 126 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked() 129 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked() 132 bi.getUidStats().get(UID).getBluetoothScanResultBgCounter() in testNoteBluetoothScanResultLocked() 148 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteStartWakeLocked() 149 bi.getUidStatsLocked(UID) in testNoteStartWakeLocked() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | GlobalSortKeyComparatorTest.java | 43 private final int UID = 1111111; field in GlobalSortKeyComparatorTest 52 PKG, 1, "media", UID, UID, n, in testComparator() 59 PKG, 1, "media", UID, UID, n, in testComparator() 66 PKG, 1, "media", UID, UID, n, in testComparator() 91 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull() 97 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull() 121 PKG, 1, "media", UID, UID, n, in testNoCrash_rightNull() 128 PKG, 1, "media", UID, UID, n, in testNoCrash_rightNull()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 65 private static final int UID = 10100; field in AppTimeLimitControllerTests 180 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_AddObserver() 182 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID2)); in testAppUsageObserver_AddObserver() 183 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_AddObserver() 190 assertTrue("Observer wasn't added", hasUsageSessionObserver(UID, OBS_ID1)); in testUsageSessionObserver_AddObserver() 192 assertTrue("Observer wasn't added", hasUsageSessionObserver(UID, OBS_ID2)); in testUsageSessionObserver_AddObserver() 199 assertTrue("Observer wasn't added", hasAppUsageLimitObserver(UID, OBS_ID1)); in testAppUsageLimitObserver_AddObserver() 201 assertTrue("Observer wasn't added", hasAppUsageLimitObserver(UID, OBS_ID2)); in testAppUsageLimitObserver_AddObserver() 202 assertTrue("Observer wasn't added", hasAppUsageLimitObserver(UID, OBS_ID1)); in testAppUsageLimitObserver_AddObserver() 209 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_RemoveObserver() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyPermissionsTest.java | 69 private static final int UID = Binder.getCallingUid(); field in TelephonyPermissionsTest 122 .enforcePermission(anyString(), eq(PID), eq(UID), eq(MSG)); in setUp() 124 .enforcePermission(anyString(), eq(PID), eq(UID), eq(MSG)); in setUp() 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() 129 when(mMockTelephony.getCarrierPrivilegeStatusForUid(eq(SUB_ID), eq(UID))) in setUp() 131 when(mMockTelephony.getCarrierPrivilegeStatusForUid(eq(SUB_ID_2), eq(UID))) in setUp() 134 PID, UID)).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 150 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG); in testCheckReadPhoneState_noPermissions() 160 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, PID, UID, MSG); in testCheckReadPhoneState_hasPrivilegedPermission() [all …]
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerGroupTest.java | 71 private static final int UID = 11; field in PowerGroupTest 100 mPowerGroup.sleepLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_APPLICATION); in testWakePowerGroup() 103 eq(UID), /* opUid= */anyInt(), /* opPackageName= */ isNull(), /* details= */ in testWakePowerGroup() 108 mPowerGroup.wakeUpLocked(TIMESTAMP2, WAKE_REASON_PLUGGED_IN, details, UID, in testWakePowerGroup() 111 eq(WAKEFULNESS_AWAKE), eq(TIMESTAMP2), eq(WAKE_REASON_PLUGGED_IN), eq(UID), in testWakePowerGroup() 118 mPowerGroup.dreamLocked(TIMESTAMP1, UID, /* allowWake= */ false); in testDreamPowerGroup() 123 eq(UID), /* opUid= */anyInt(), /* opPackageName= */ isNull(), /* details= */ in testDreamPowerGroup() 130 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDozePowerGroup() 135 eq(UID), /* opUid= */ anyInt(), /* opPackageName= */ isNull(), in testDozePowerGroup() 141 mPowerGroup.sleepLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDozePowerGroupWhenNonInteractiveHasNoEffect() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | EventLogTags.logtags | 25 30014 am_proc_start (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3),(Type|3),(Component|3) 27 30015 am_proc_bad (User|1|5),(UID|1|5),(Process Name|3) 29 30016 am_proc_good (User|1|5),(UID|1|5),(Process Name|3) 39 30030 am_create_service (User|1|5),(Service Record|1|5),(Name|3),(UID|1|5),(PID|1|5) 51 30036 am_provider_lost_process (User|1|5),(Package Name|3),(UID|1|5),(Name|3) 53 30037 am_process_start_timeout (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3) 69 30047 am_pss (Pid|1|5),(UID|1|5),(Process Name|3),(Pss|2|2),(Uss|2|2),(SwapPss|2|2),(Rss|2|2),(Stat… 78 30052 am_uid_running (UID|1|5) 80 30053 am_uid_stopped (UID|1|5) 82 30054 am_uid_active (UID|1|5) [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopModeUiEventLoggerTest.kt | 59 logger.log(UID, "", DESKTOP_WINDOW_EDGE_DRAG_RESIZE) in log_emptyPackageName_eventNotLogged() 67 logger.log(UID, PACKAGE_NAME, event) in log_eventLogged() 71 assertThat(uiEventLoggerFake[0].uid).isEqualTo(UID) in log_eventLogged() 89 logger.logWithInstanceId(INSTANCE_ID, UID, "", DESKTOP_WINDOW_EDGE_DRAG_RESIZE) in logWithInstanceId_emptyPackageName_eventNotLogged() 97 logger.logWithInstanceId(INSTANCE_ID, UID, PACKAGE_NAME, event) in logWithInstanceId_eventLogged() 101 assertThat(uiEventLoggerFake[0].uid).isEqualTo(UID) in logWithInstanceId_eventLogged() 108 private const val UID = 10 constant
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | CleanupManagerTest.java | 46 private static final int UID = 1234; field in CleanupManagerTest 72 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_unknownUser_storesInDb() 73 mManager.registerRecoveryAgent(USER_ID_2, UID); in registerRecoveryAgent_unknownUser_storesInDb() 86 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_registersSameUser_doesntChangeDb() 87 mManager.registerRecoveryAgent(USER_ID, UID); // ignored. in registerRecoveryAgent_registersSameUser_doesntChangeDb() 98 recoveryAgents.add(UID); in verifyKnownUsers_newSerialNumber_deletesData() 109 verify(mRecoverySnapshotStorage).remove(UID); in verifyKnownUsers_newSerialNumber_deletesData()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/ |
D | HintManagerServiceTest.java | 116 private static final int UID = Process.myUid(); field in HintManagerServiceTest 179 when(mNativeWrapperMock.halCreateHintSession(eq(TGID), eq(UID), eq(SESSION_TIDS_A), 181 when(mNativeWrapperMock.halCreateHintSession(eq(TGID), eq(UID), eq(SESSION_TIDS_B), 183 when(mNativeWrapperMock.halCreateHintSession(eq(TGID), eq(UID), eq(SESSION_TIDS_C), 185 when(mNativeWrapperMock.halCreateHintSessionWithConfig(eq(TGID), eq(UID), 189 when(mNativeWrapperMock.halCreateHintSessionWithConfig(eq(TGID), eq(UID), 193 when(mNativeWrapperMock.halCreateHintSessionWithConfig(eq(TGID), eq(UID), 211 when(mNativeWrapperMock.halCreateHintSession(eq(TGID), eq(UID), eq(SESSION_TIDS_A), 213 when(mNativeWrapperMock.halCreateHintSession(eq(TGID), eq(UID), eq(SESSION_TIDS_B), 215 when(mNativeWrapperMock.halCreateHintSession(eq(TGID), eq(UID), eq(SESSION_TIDS_C), [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileRequestDialogTest.kt | 59 private const val UID = 12345 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/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppOpsRepositoryTest.kt | 49 checkOpNoThrow(AppOpsManager.OP_MANAGE_MEDIA, UID, PACKAGE_NAME) in <lambda>() 85 on { checkOpNoThrow(AppOpsManager.OP_MANAGE_MEDIA, UID, PACKAGE_NAME) } doReturn in <lambda>() 88 listener?.onOpChanged("", "", UserHandle.getUserId(UID)) in <lambda>() 94 const val UID = 110000 constant 98 uid = UID in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | ArtStatsLogUtilsTest.java | 63 private static final int UID = 111; field in ArtStatsLogUtilsTest 109 UID, in testProfileAndVdexDexMetadata() 141 UID, in testProfileOnlyDexMetadata() 173 UID, in testVdexOnlyDexMetadata() 203 UID, in testNoneDexMetadata() 234 UID, in testUnKnownDexMetadata() 270 SESSION_ID, UID, in verifyWrites() 280 UID, in verifyWrites() 290 UID, in verifyWrites()
|
/frameworks/proto_logging/stats/express/catalog/ |
D | accessibility.cfg | 28 # UID indicates the location where the shortcut was enabled, NOT the UID of 40 # UID indicates the location where the shortcut was disabled, NOT the UID of
|
D | tex_test.cfg | 54 display_name: "Test express fixed_range counter histogram with UID metric" 55 description: "Longer test express counter histogram with UID metric description" 81 display_name: "Test express scaled_range counter histogram with UID metric" 82 description: "Longer test express counter histogram with UID metric description"
|
/frameworks/proto_logging/stats/atoms/agif/ |
D | agif_atoms.proto | 37 // UID of the game package. 40 // UID the caller package who made the game mode change. 56 // UID of the game package. 59 // UID the caller package who made the game mode config change. 84 // UID of the game package. 100 // UID of the game package.
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationThreadTest.java | 98 private static final int UID = Process.ROOT_UID; field in VibrationThreadTest 198 verify(mManagerHooks).noteVibratorOn(eq(UID), eq(10L)); in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude() 199 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude() 215 verify(mManagerHooks).noteVibratorOn(eq(UID), eq(10L)); in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude() 216 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude() 235 verify(mManagerHooks).noteVibratorOn(eq(UID), eq(15L)); in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes() 236 verify(mManagerHooks).noteVibratorOff(eq(UID)); in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes() 261 verify(mStatsLoggerMock, never()).logVibrationParamRequestTimeout(UID); in vibrate_singleWaveformWithAdaptiveHapticsScaling_scalesAmplitudesProperly() 281 verify(mStatsLoggerMock).logVibrationParamRequestTimeout(UID); 315 verify(mManagerHooks).noteVibratorOn(eq(UID), anyLong()); [all …]
|
D | VibratorManagerServiceTest.java | 132 private static final int UID = Process.ROOT_UID; field in VibratorManagerServiceTest 391 assertTrue(service.setAlwaysOnEffect(UID, PACKAGE_NAME, 1, effect, ALARM_ATTRS)); in createService_doNotCrashIfUsedBeforeSystemReady() 502 .noteVibratorOn(UID, oneShotDuration + mVibrationConfig.getRampDownDurationMs()); in registerVibratorStateListener_callbacksAreTriggered() 504 .verify(mBatteryStatsMock, timeout(TEST_TIMEOUT_MILLIS)).noteVibratorOff(UID); in registerVibratorStateListener_callbacksAreTriggered() 563 UID, PACKAGE_NAME, 1, effect, ALARM_ATTRS)); in setAlwaysOnEffect_withMono_enablesAlwaysOnEffectToAllVibratorsWithCapability() 587 UID, PACKAGE_NAME, 1, effect, ALARM_ATTRS)); in setAlwaysOnEffect_withStereo_enablesAlwaysOnEffectToAllVibratorsWithCapability() 611 UID, PACKAGE_NAME, 1, effect, ALARM_ATTRS)); in setAlwaysOnEffect_withNullEffect_disablesAlwaysOnEffects() 614 UID, PACKAGE_NAME, 1, null, ALARM_ATTRS)); in setAlwaysOnEffect_withNullEffect_disablesAlwaysOnEffects() 629 UID, PACKAGE_NAME, 1, effect, ALARM_ATTRS)); in setAlwaysOnEffect_withNonPrebakedEffect_ignoresEffect() 643 UID, PACKAGE_NAME, 1, effect, ALARM_ATTRS)); in setAlwaysOnEffect_withNonSyncedEffect_ignoresEffect() [all …]
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 62 private static final int UID = 9583; field in StatusBarNotificationTest 216 pkg, pkg, ID, TAG, uid, uid, notification, UserHandle.ALL, null, UID); in testGetPackageContext_worksWithUserAll() 227 assertEquals(UID, StatusBarNotification.getUidFromKey(sbn.getKey())); in testGetUidFromKey() 230 assertEquals(UID, StatusBarNotification.getUidFromKey(sbn.getKey())); in testGetUidFromKey() 261 pkg, pkg, ID, TAG, UID, UID, builder.build(), USER, null, UID); in getNotification()
|