Home
last modified time | relevance | path

Searched refs:TEST_UID (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java56 private static final int TEST_UID = UserHandle.getUid(0, 0); field in AppOpsControllerTest
99 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
100 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
104 TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
111 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notIncludedCode()
122 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in removeCallback_sameCode()
133 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notSameCode()
136 TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notSameCode()
142 TEST_UID, TEST_PACKAGE_NAME, true); in getActiveItems_sameDetails()
144 TEST_UID, TEST_PACKAGE_NAME, true); in getActiveItems_sameDetails()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelSingleUidTimeReaderTest.java46 private final static int TEST_UID = 2222; field in KernelSingleUidTimeReaderTest
73 long[] deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
75 assertCpuTimesEqual(latestCpuTimes, allLastCpuTimes.get(TEST_UID)); in readDelta()
82 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
84 assertCpuTimesEqual(latestCpuTimes, allLastCpuTimes.get(TEST_UID)); in readDelta()
87 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
89 assertCpuTimesEqual(latestCpuTimes, allLastCpuTimes.get(TEST_UID)); in readDelta()
101 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
103 assertCpuTimesEqual(latestCpuTimes, allLastCpuTimes.get(TEST_UID)); in readDelta()
115 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java60 private static final int TEST_UID = 5; field in ScanRequestProxyTest
175 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner()
184 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess()
189 new WorkSource(TEST_UID, TEST_PACKAGE_NAME_1))); in testStartScanSuccess()
200 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings()
201 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings()
206 new WorkSource(TEST_UID, TEST_PACKAGE_NAME_1))); in testStartScanSuccessFromAppWithNetworkSettings()
215 when(mWifiPermissionsUtil.checkNetworkSetupWizardPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSetupWizard()
216 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
221 new WorkSource(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
[all …]
DNetworkSuggestionEvaluatorTest.java54 private static final int TEST_UID = 3555; field in NetworkSuggestionEvaluatorTest
129 int[] uids = {TEST_UID}; in testSelectNetworkSuggestionForOneMatch()
174 int[] uids = {TEST_UID, TEST_UID}; in testSelectNetworkSuggestionForMultipleMatch()
221 int[] uids = {TEST_UID, TEST_UID}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
271 int[] uids = {TEST_UID, TEST_UID, TEST_UID_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
329 int[] uids = {TEST_UID, TEST_UID, TEST_UID_OTHER, TEST_UID_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestionsHighPriorityWins()
378 int[] uids = {TEST_UID}; in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
429 int[] uids = {TEST_UID}; in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
481 int[] uids = {TEST_UID}; in testSelectNetworkSuggestionForOneMatchButUserForgotTheNetwork()
531 int[] uids = {TEST_UID}; in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
[all …]
DWifiConfigurationTestUtil.java67 public static final int TEST_UID = 5; field in WifiConfigurationTestUtil
252 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork()
261 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenNetwork()
279 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createSaeNetwork()
290 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createPskNetwork()
298 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createPskNetwork()
306 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createSaeNetwork()
319 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetwork()
334 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null, in createWepNetworkWithSingleKey()
344 generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, in createEapNetwork()
[all …]
DWifiConfigurationUtilTest.java50 static final int TEST_UID = 10000; field in WifiConfigurationUtilTest
598 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierPositiveCases_SsidPattern()
612 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierPositiveCases_BssidPattern()
626 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern()
640 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_NoSsidBssid()
654 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_MatchNoneSsidPattern()
668 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_MatchNoneBssidPattern()
682 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_InvalidBssidPattern()
696 TEST_UID, TEST_PACKAGE); in testValidateNetworkSpecifierNegativeCases_NoSsidPatternForHiddenNetwork()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt76 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())) in setup()
79 `when`(mockNoMan.areNotificationsEnabledForPackage(eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in setup()
86 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noExtraChannels()
96 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_onlyDefaultChannel()
107 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noProvidedChannels_noException()
118 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_retrievesUpTo4Channels()
128 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteChannel()
147 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteApp()
154 eq(TEST_PACKAGE_NAME), eq(TEST_UID), eq(false)) in testApply_demoteApp()
160 `when`(mockNoMan.areNotificationsEnabledForPackage(eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in testApply_promoteApp()
[all …]
DNotificationInfoTest.java97 private static final int TEST_UID = 1; field in NotificationInfoTest
143 applicationInfo.uid = TEST_UID; // non-zero in setUp()
155 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())).thenReturn(1); in setUp()
165 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
268 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
325 eq("test_group_id"), eq(TEST_PACKAGE_NAME), eq(TEST_UID))) in testBindNotification_SetsGroupNameIfNonNull()
394 eq(TEST_PACKAGE_NAME), eq(TEST_UID), anyBoolean())).thenReturn(10); in testBindNotification_DefaultChannelUsesChannelNameIfMoreChannelsExist()
759 anyString(), eq(TEST_UID), any()); in testBindNotification_DoesNotUpdateNotificationChannel()
784 anyString(), eq(TEST_UID), any()); in testDoesNotUpdateNotificationChannelAfterImportanceChanged()
810 anyString(), eq(TEST_UID), any()); in testDoesNotUpdateNotificationChannelAfterImportanceChangedSilenced()
[all …]
DAppOpsInfoTest.java66 private static final int TEST_UID = 1; field in AppOpsInfoTest
86 applicationInfo.uid = TEST_UID; // non-zero in setUp()
90 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
121 assertEquals(TEST_UID, uid); in testBindNotification_SetsOnClickListenerForSettings()
140 assertEquals(TEST_UID, uid); in testOk()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java59 private static final int TEST_UID = 1000; field in RecoverySnapshotStorageTest
89 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in get_returnsSetSnapshot()
91 assertEquals(MINIMAL_KEYCHAIN_SNAPSHOT, mRecoverySnapshotStorage.get(TEST_UID)); in get_returnsSetSnapshot()
96 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in get_readsFromDiskIfNoneInMemory()
99 assertKeyChainSnapshotsAreEqual(MINIMAL_KEYCHAIN_SNAPSHOT, storage.get(TEST_UID)); in get_readsFromDiskIfNoneInMemory()
112 assertNull(mRecoverySnapshotStorage.get(TEST_UID)); in get_deletesFileIfItIsInvalidSnapshot()
120 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in put_overwritesOldFiles()
122 mRecoverySnapshotStorage.put(TEST_UID, createTestKeyChainSnapshot(snapshotVersion)); in put_overwritesOldFiles()
125 .get(TEST_UID); in put_overwritesOldFiles()
134 mRecoverySnapshotStorage.put(TEST_UID, MINIMAL_KEYCHAIN_SNAPSHOT); in put_doesNotThrowIfCannotCreateFiles()
[all …]
DRecoverableKeyStoreDbHelperTest.java46 private static final long TEST_UID = 60001L; field in RecoverableKeyStoreDbHelperTest
164 values.put(RootOfTrustEntry.COLUMN_NAME_UID, TEST_UID); in isRootOfTrustTableAvailable()
176 values.put(KeysEntry.COLUMN_NAME_UID, TEST_UID); in checkAllColumns_v4()
198 values.put(RecoveryServiceMetadataEntry.COLUMN_NAME_UID, TEST_UID); in checkAllColumns_v4()
225 values.put(KeysEntry.COLUMN_NAME_UID, TEST_UID); in checkAllColumns_latest()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkManagementInternalTest.java61 private static final int TEST_UID = 111; field in NetworkManagementInternalTest
76 assertFalse(mNmi.isNetworkRestrictedForUid(TEST_UID)); in testIsNetworkRestrictedForUid()
79 mInjector.setUidOnMeteredNetworkList(true, TEST_UID, true); in testIsNetworkRestrictedForUid()
81 mNmi.isNetworkRestrictedForUid(TEST_UID)); in testIsNetworkRestrictedForUid()
86 mInjector.setUidOnMeteredNetworkList(false, TEST_UID, false); in testIsNetworkRestrictedForUid()
88 mNmi.isNetworkRestrictedForUid(TEST_UID)); in testIsNetworkRestrictedForUid()
93 mInjector.setUidOnMeteredNetworkList(false, TEST_UID, true); in testIsNetworkRestrictedForUid()
95 mNmi.isNetworkRestrictedForUid(TEST_UID)); in testIsNetworkRestrictedForUid()
137 mInjector.setFirewallRule(chain, TEST_UID, state); in testIsNetworkRestrictedForUid()
139 expectedValues.get(state), mNmi.isNetworkRestrictedForUid(TEST_UID)); in testIsNetworkRestrictedForUid()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkAgentSpecifierTest.java38 private static final int TEST_UID = 5; field in WifiNetworkAgentSpecifierTest
98 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
105 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
122 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent()
129 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent()
146 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
153 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
208 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
237 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
266 TEST_UID, TEST_PACKAGE); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
[all …]
DWifiNetworkSuggestionTest.java34 private static final int TEST_UID = 45677; field in WifiNetworkSuggestionTest
323 new WifiNetworkSuggestion(configuration, false, true, TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSuggestionParcel()
357 new WifiNetworkSuggestion(configuration, true, false, TEST_UID, in testWifiNetworkSuggestionEqualsSame()
365 new WifiNetworkSuggestion(configuration1, false, true, TEST_UID, in testWifiNetworkSuggestionEqualsSame()
381 new WifiNetworkSuggestion(configuration, false, false, TEST_UID, in testWifiNetworkSuggestionEqualsFailsWhenSsidIsDifferent()
388 new WifiNetworkSuggestion(configuration1, false, false, TEST_UID, in testWifiNetworkSuggestionEqualsFailsWhenSsidIsDifferent()
405 new WifiNetworkSuggestion(configuration, false, false, TEST_UID, in testWifiNetworkSuggestionEqualsFailsWhenBssidIsDifferent()
412 new WifiNetworkSuggestion(configuration1, false, false, TEST_UID, in testWifiNetworkSuggestionEqualsFailsWhenBssidIsDifferent()
428 new WifiNetworkSuggestion(configuration, false, false, TEST_UID, in testWifiNetworkSuggestionEqualsFailsWhenKeyMgmtIsDifferent()
435 new WifiNetworkSuggestion(configuration1, false, false, TEST_UID, in testWifiNetworkSuggestionEqualsFailsWhenKeyMgmtIsDifferent()
[all …]
DWifiNetworkSpecifierTest.java44 private static final int TEST_UID = 5; field in WifiNetworkSpecifierTest
368 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierParcel()
400 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierSatisfiesNullAndAllMatch()
423 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierSatisfiesSame()
430 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierSatisfiesSame()
452 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
461 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
483 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
490 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
512 TEST_UID, TEST_PACKAGE_NAME); in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java47 private static final int TEST_UID = 12345; field in NetworkStatsAccessTest
83 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasCarrierPrivileges()
94 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_isDeviceOwner()
105 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_isProfileOwner()
116 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasAppOpsBitAllowed()
127 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasAppOpsBitDefault_grantedPermission()
138 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasReadHistoryPermission()
149 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_deniedAppOpsBit()
160 NetworkStatsAccess.checkAccessLevel(mContext, TEST_UID, TEST_PKG)); in testCheckAccessLevel_deniedAppOpsBit_deniedPermission()
170 when(mDpmi.isActiveAdminWithPolicy(TEST_UID, DeviceAdminInfo.USES_POLICY_DEVICE_OWNER)) in setIsDeviceOwner()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java101 private static final int TEST_UID = 10467; field in LockTaskControllerTest
171 mLockTaskController.startLockTaskMode(tr, false, TEST_UID); in testStartLockTaskMode_once()
189 mLockTaskController.startLockTaskMode(tr1, false, TEST_UID); in testStartLockTaskMode_twice()
190 mLockTaskController.startLockTaskMode(tr2, false, TEST_UID); in testStartLockTaskMode_twice()
208 mLockTaskController.startLockTaskMode(tr, false, TEST_UID); in testStartLockTaskMode_pinningRequest()
237 mLockTaskController.startLockTaskMode(tr, false, TEST_UID); in testLockTaskViolation()
263 mLockTaskController.startLockTaskMode(tr, false, TEST_UID); in testLockTaskViolation_emergencyCall()
295 mLockTaskController.startLockTaskMode(tr, false, TEST_UID); in testStopLockTaskMode()
298 mLockTaskController.stopLockTaskMode(tr, false, TEST_UID); in testStopLockTaskMode()
312 mLockTaskController.startLockTaskMode(tr, false, TEST_UID); in testStopLockTaskMode_differentCaller()
[all …]
DAssistDataRequesterTest.java86 private static final int TEST_UID = 0; field in AssistDataRequesterTest
160 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testRequestData()
170 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testEmptyActivities_expectNoCallbacks()
180 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testCurrentAppDisallow_expectNullCallbacks()
191 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testProcessPendingData()
226 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testNoFetchData_expectNoDataCallbacks()
236 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testDisallowAssistStructure_expectNullDataCallbacks()
249 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testDisallowAssistContextExtras_expectNullDataCallbacks()
261 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testNoFetchScreenshots_expectNoScreenshotCallbacks()
272 ALLOW_FETCH_DATA, ALLOW_FETCH_SCREENSHOTS, TEST_UID, TEST_PACKAGE); in testDisallowAssistScreenshot_expectNullScreenshotCallback()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java61 private static final int TEST_UID = 1001; field in NetworkStatsTest
146 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
148 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
150 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_YES, in testAddEntryGrow()
152 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testAddEntryGrow()
158 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
160 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
162 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testAddEntryGrow()
164 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_YES, in testAddEntryGrow()
166 stats.insertEntry(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testAddEntryGrow()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerServiceTest.java104 private static final int TEST_UID = 11111; field in ActivityManagerServiceTest
150 final UidRecord uidRec = addUidRecord(TEST_UID); in incrementProcStateSeqAndNotifyAppsLocked()
151 addUidRecord(TEST_UID + 1); in incrementProcStateSeqAndNotifyAppsLocked()
423 final UidRecord uidRec = new UidRecord(TEST_UID); in testBlockStateForUid()
621 changeItem.uid = TEST_UID; in testDispatchUidChanges_procStateCutpoint()
629 verify(observer).onUidStateChanged(TEST_UID, in testDispatchUidChanges_procStateCutpoint()
646 verify(observer).onUidStateChanged(TEST_UID, in testDispatchUidChanges_procStateCutpoint()
663 verify(observer).onUidStateChanged(TEST_UID, in testDispatchUidChanges_procStateCutpoint()
750 final UidRecord uidRecord = new UidRecord(TEST_UID); in testEnqueueUidChangeLocked_procStateSeqUpdated()
767 mAms.enqueueUidChangeLocked(null, TEST_UID, UidRecord.CHANGE_ACTIVE); in testEnqueueUidChangeLocked_nullUidRecord()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAccessesTest.java39 private static final int TEST_UID = 1234; field in RecentLocationAccessesTest
72 mTestUserId = UserHandle.getUserId(TEST_UID); in setUp()
143 TEST_UID, in createTestPackageOpsList()
DRecentLocationAppsTest.java36 private static final int TEST_UID = 1234; field in RecentLocationAppsTest
72 mTestUserId = UserHandle.getUserId(TEST_UID); in setUp()
141 TEST_UID, in createTestPackageOpsList()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java54 private static final int TEST_UID = 0; field in NotificationListenerTest
81 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
DSmartReplyControllerTest.java57 private static final int TEST_UID = 0; field in SmartReplyControllerTest
98 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
DAlertingNotificationManagerTest.java61 private static final int TEST_UID = 0; field in AlertingNotificationManagerTest
120 TEST_UID, in createNewNotification()

12