Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 239) sorted by relevance

12345678910

/platform_testing/tests/automotive/functional/dialer/src/android/platform/tests/
DDialTest.java87 mVehicleHardKeysHelper.get().pressEndCallKey(); in endCall()
92 mDialerHelper.get().dialANumber(mSmallPhoneNumber.get()); in testDialSmallNumber()
93 mDialerHelper.get().makeCall(); in testDialSmallNumber()
94 String actualDialedNumber = mDialerHelper.get().getDialedNumber(); in testDialSmallNumber()
95 assertEquals(mSmallPhoneNumber.get(), actualDialedNumber.replaceAll("[-()\\s]", "")); in testDialSmallNumber()
96 mDialerHelper.get().endCall(); in testDialSmallNumber()
101 mDialerHelper.get().dialANumber(mLargePhoneNumber.get()); in testDialLargeNumber()
102 mDialerHelper.get().makeCall(); in testDialLargeNumber()
103 String actualDialedNumber = mDialerHelper.get().getDialedNumber(); in testDialLargeNumber()
104 assertEquals(mLargePhoneNumber.get(), actualDialedNumber.replaceAll("[-()\\s]", "")); in testDialLargeNumber()
[all …]
/platform_testing/tests/automotive/functional/uxrestriction/src/android/platform/tests/
DUxRestrictionTest.java60 mHardKeysHelper.get().setDrivingState(DrivingState.MOVING); in enableDrivingMode()
61 mHardKeysHelper.get().setSpeed(SPEED_TWENTY); in enableDrivingMode()
66 mSettingHelper.get().goBackToSettingsScreen(); in disableDrivingMode()
67 mHardKeysHelper.get().setSpeed(SPEED_ZERO); in disableDrivingMode()
68 mHardKeysHelper.get().setDrivingState(DrivingState.PARKED); in disableDrivingMode()
73 mSettingHelper.get().openSetting(AutoConfigConstants.SOUND_SETTINGS); in testRestrictedSoundSettings()
74 String currentTitle = mSettingHelper.get().getPageTitleText(); in testRestrictedSoundSettings()
75 mSettingHelper.get().openMenuWith("Phone ringtone"); in testRestrictedSoundSettings()
76 String newTitle = mSettingHelper.get().getPageTitleText(); in testRestrictedSoundSettings()
82 mSettingHelper.get().openSetting(AutoConfigConstants.NETWORK_AND_INTERNET_SETTINGS); in testRestrictedNetworkSettings()
[all …]
/platform_testing/tests/automotive/functional/appgrid/src/android/platform/tests/
DAppGridTest.java48 mAppGridHelper.get().exit(); in testOpen()
49 assertFalse(mAppGridHelper.get().isAppInForeground()); in testOpen()
51 mAppGridHelper.get().open(); in testOpen()
52 assertTrue(mAppGridHelper.get().isAppInForeground()); in testOpen()
58 mAppGridHelper.get().open(); in testExit()
59 assertTrue(mAppGridHelper.get().isAppInForeground()); in testExit()
61 mAppGridHelper.get().exit(); in testExit()
62 assertFalse(mAppGridHelper.get().isAppInForeground()); in testExit()
68 mAppGridHelper.get().exit(); in testScroll()
69 mAppGridHelper.get().open(); in testScroll()
[all …]
/platform_testing/tests/automotive/functional/notifications/src/android/platform/tests/
DNotificationTest.java53 mNotificationMockingHelper.get().clearAllNotification(); in clearAllNotification()
58 mNotificationHelper.get().exit(); in exit()
63 mNotificationHelper.get().open(); in testOpenCloseNotification()
64 assertTrue("Notification did not open.", mNotificationHelper.get().isAppInForeground()); in testOpenCloseNotification()
65 mNotificationHelper.get().exit(); in testOpenCloseNotification()
66 assertFalse("Notification did not close.", mNotificationHelper.get().isAppInForeground()); in testOpenCloseNotification()
71 mNotificationMockingHelper.get().postNotifications(1); in testClearAllNotification()
72 mNotificationHelper.get().tapClearAllBtn(); in testClearAllNotification()
73 mNotificationHelper.get().exit(); in testClearAllNotification()
76 mNotificationHelper.get().checkNotificationExists(NOTIFICATION_TITLE)); in testClearAllNotification()
[all …]
/platform_testing/tests/automotive/functional/mediacenter/src/android/platform/tests/
DMediaTestAppTest.java59 sAutoHomeHelper.get().openMediaWidget(); in exitSuw()
60 sMediaCenterHelper.get().openMediaAppMenuItems(); in exitSuw()
63 && mMediaTestApp.get() != null && !mMediaTestApp.get().isEmpty()) { in exitSuw()
64 mediaAppName = mMediaTestApp.get(); in exitSuw()
66 sMediaCenterHelper.get().openApp(mediaAppName); in exitSuw()
68 sMediaCenterHelper.get().getMediaAppTitle().equals(mediaAppName)); in exitSuw()
69 sMediaCenterHelper.get().openMediaAppSettingsPage(); in exitSuw()
70 sTestMediaAppHelper.get().loadMediaInLocalMediaTestApp(); in exitSuw()
75 sMediaCenterHelper.get().playMedia(); in testPlayPauseMedia()
76 assertTrue("Song not playing.", sMediaCenterHelper.get().isPlaying()); in testPlayPauseMedia()
[all …]
DBluetoothAudioTest.java49 mBluetoothAudioHelper.get().open(); in openMediaFacet()
54 mBluetoothAudioHelper.get().goBackToMediaHomePage(); in goBackToMediaFacet()
59 mBluetoothAudioHelper.get().pauseMedia(); in testPlayPauseMedia()
60 assertFalse("Song not paused.", mBluetoothAudioHelper.get().isPlaying()); in testPlayPauseMedia()
61 mBluetoothAudioHelper.get().playMedia(); in testPlayPauseMedia()
62 assertTrue("Song not playing.", mBluetoothAudioHelper.get().isPlaying()); in testPlayPauseMedia()
67 String currentSong = mBluetoothAudioHelper.get().getMediaTrackName(); in testNextTrack()
68 mBluetoothAudioHelper.get().clickNextTrack(); in testNextTrack()
72 mBluetoothAudioHelper.get().getMediaTrackName()); in testNextTrack()
DOpenAppFromMediaCenterTest.java69 mAutoHomeHelper.get().openMediaWidget(); in testOpenMediaAppFromMediaWidget()
71 mMediaCenterHelper.get().getMediaAppTitle().equals(getDefaultMediaAppName())); in testOpenMediaAppFromMediaWidget()
76 mAutoHomeHelper.get().openMediaWidget(); in testMediaAppPresentInMediaGrid()
77 mMediaCenterHelper.get().openMediaAppMenuItems(); in testMediaAppPresentInMediaGrid()
79 mMediaCenterHelper.get().areMediaAppsPresent(getExpectedMediaAppNames())); in testMediaAppPresentInMediaGrid()
85 && mMediaDefaultApp.get() != null && !mMediaDefaultApp.get().isEmpty()) { in getDefaultMediaAppName()
86 mediaAppName = mMediaDefaultApp.get(); in getDefaultMediaAppName()
93 if (mMediaApps != null && mMediaApps.get() != null && !mMediaApps.get().isEmpty()) { in getExpectedMediaAppNames()
95 mediaAppNames = mMediaApps.get(); in getExpectedMediaAppNames()
DNoUserLoggedInTest.java56 mAutoHomeHelper.get().openMediaWidget(); in testNoUserLogInMessage()
57 mMediaCenterHelper.get().openMediaAppMenuItems(); in testNoUserLogInMessage()
58 mMediaCenterHelper.get().openApp(mMediaApp.get()); in testNoUserLogInMessage()
61 mMediaCenterHelper.get().getMediaAppTitle().equals(mMediaApp.get())); in testNoUserLogInMessage()
63 String noUserLoginMsg = mMediaCenterHelper.get().getMediaAppUserNotLoggedInErrorMessage(); in testNoUserLogInMessage()
/platform_testing/tests/automotive/functional/settings/src/android/platform/tests/
DSettingTest.java55 mSettingHelper.get().goBackToSettingsScreen(); in goBackToSettingsScreen()
60 mSettingHelper.get().openSetting(AutoConfigConstants.DISPLAY_SETTINGS); in testDisplaySettings()
65 mSettingHelper.get().openSetting(AutoConfigConstants.SOUND_SETTINGS); in testSoundSettings()
70 mSettingHelper.get().openSetting(AutoConfigConstants.APPS_SETTINGS); in testAppinfoSettings()
71 mAppInfoSettingsHelper.get().showAllApps(); in testAppinfoSettings()
76 mSettingHelper.get().openSetting(AutoConfigConstants.PROFILE_ACCOUNT_SETTINGS); in testAccountsSettings()
81 mSettingHelper.get().openSetting(AutoConfigConstants.SYSTEM_SETTINGS); in testSystemSettings()
86 mSettingHelper.get().openSetting(AutoConfigConstants.BLUETOOTH_SETTINGS); in testBluetoothSettings()
87 mSettingHelper.get().turnOnOffBluetooth(false); in testBluetoothSettings()
88 assertFalse(mSettingHelper.get().isBluetoothOn()); in testBluetoothSettings()
[all …]
DSecuritySettingTest.java54 mSettingHelper.get().openSetting(AutoConfigConstants.SECURITY_SETTINGS); in openSecuritySettingFacet()
59 mSettingHelper.get().goBackToSettingsScreen(); in goBackToSettingsScreen()
64 mSecuritySettingsHelper.get().setLockByPassword(PASSWORD); in testLockUnlockDeviceByPassword()
65 assertTrue("Password has not been set", mSecuritySettingsHelper.get().isDeviceLocked()); in testLockUnlockDeviceByPassword()
66 mSecuritySettingsHelper.get().unlockByPassword(PASSWORD); in testLockUnlockDeviceByPassword()
67 mSecuritySettingsHelper.get().removeLock(); in testLockUnlockDeviceByPassword()
69 "Password has not been removed", !mSecuritySettingsHelper.get().isDeviceLocked()); in testLockUnlockDeviceByPassword()
74 mSecuritySettingsHelper.get().setLockByPin(PIN); in testLockUnlockDeviceByPIN()
75 assertTrue("PIN has not been set", mSecuritySettingsHelper.get().isDeviceLocked()); in testLockUnlockDeviceByPIN()
76 mSecuritySettingsHelper.get().unlockByPin(PIN); in testLockUnlockDeviceByPIN()
[all …]
DDateTimeSettingTest.java67 mSettingHelper.get().openSetting(AutoConfigConstants.DATE_AND_TIME_SETTINGS); in openDateTimeFacet()
72 mSettingHelper.get().goBackToSettingsScreen(); in goBackToSettingsScreen()
77 mDateTimeSettingsHelper.get().setDate(DATE); in testSetDate()
78 assertTrue(mDateTimeSettingsHelper.get().getDate().equals(DATE)); in testSetDate()
83 mDateTimeSettingsHelper.get().setTimeInTwelveHourFormat(HOUR, MINUTE, IS_AM); in testSetTimeTwelveHourFormat()
84 assertTrue(mDateTimeSettingsHelper.get().getTime().equals(FULL_TIME_TWELVE)); in testSetTimeTwelveHourFormat()
89 mDateTimeSettingsHelper.get().setTimeInTwentyFourHourFormat(HOUR, MINUTE); in testSetTimeTwentyFourHourFormat()
90 assertTrue(mDateTimeSettingsHelper.get().getTime().equals(FULL_TIME_TWENTYFOUR)); in testSetTimeTwentyFourHourFormat()
95 mDateTimeSettingsHelper.get().setTimeZone(TIME_ZONE); in testSetTimeZone()
96 assertTrue(mDateTimeSettingsHelper.get().getTimeZone().equals(TIME_ZONE_FULL)); in testSetTimeZone()
[all …]
DAppInfoSettingTest.java41 mSettingHelper.get().openSetting(AutoConfigConstants.APPS_SETTINGS); in openAppInfoFacet()
42 mAppInfoSettingsHelper.get().showAllApps(); in openAppInfoFacet()
47 mSettingHelper.get().goBackToSettingsScreen(); in goBackToSettingsScreen()
52 mAppInfoSettingsHelper.get().selectApp(CONTACTS_APP); in testDisableEnableApplication()
53 mAppInfoSettingsHelper.get().enableDisableApplication(State.DISABLE); in testDisableEnableApplication()
56 mAppInfoSettingsHelper.get().isApplicationDisabled(CONTACT_PACKAGE)); in testDisableEnableApplication()
57 mAppInfoSettingsHelper.get().enableDisableApplication(State.ENABLE); in testDisableEnableApplication()
60 !mAppInfoSettingsHelper.get().isApplicationDisabled(CONTACT_PACKAGE)); in testDisableEnableApplication()
65 mAppInfoSettingsHelper.get().selectApp(CONTACTS_APP); in testApplicationPermissions()
66 mAppInfoSettingsHelper.get().setAppPermission(PHONE_PERMISSION, State.DISABLE); in testApplicationPermissions()
[all …]
DSettingSearchTest.java61 mSettingHelper.get().openFullSettings(); in openSetting()
66 mSettingHelper.get().exit(); in exitSettings()
72 if (mSearchApp != null && mSearchApp.get() != null && !mSearchApp.get().isEmpty()) { in testSearchApplication()
73 searchApp = mSearchApp.get(); in testSearchApplication()
75 mSettingHelper.get().searchAndSelect(searchApp); in testSearchApplication()
78 mSettingHelper.get().isValidPageTitle(searchApp)); in testSearchApplication()
85 && mSearchSetting.get() != null in testSearchSetting()
86 && !mSearchSetting.get().isEmpty()) { in testSearchSetting()
87 searchSetting = mSearchSetting.get(); in testSearchSetting()
89 mSettingHelper.get().searchAndSelect(searchSetting); in testSearchSetting()
[all …]
DWifiSettingTest.java50 mSettingHelper.get().openSetting(AutoConfigConstants.NETWORK_AND_INTERNET_SETTINGS); in openNetworkSetting()
55 mSettingHelper.get().goBackToSettingsScreen(); in goBackToSettingsScreen()
60 mSettingHelper.get().turnOnOffWifi(false); in testWifiSettings()
61 assertFalse(mSettingHelper.get().isWifiOn()); in testWifiSettings()
62 mSettingHelper.get().turnOnOffWifi(true); in testWifiSettings()
63 assertTrue(mSettingHelper.get().isWifiOn()); in testWifiSettings()
68 mSettingHelper.get().turnOnOffHotspot(true); in testTurnOnOffHotspot()
69 assertTrue(mSettingHelper.get().isHotspotOn()); in testTurnOnOffHotspot()
70 mSettingHelper.get().turnOnOffHotspot(false); in testTurnOnOffHotspot()
DSoundSettingTest.java58 mSettingHelper.get().openSetting(AutoConfigConstants.SOUND_SETTINGS); in openSoundsSettingFacet()
63 mSettingHelper.get().goBackToSettingsScreen(); in goBackToSettingsScreen()
68 mSoundsSettingHelper.get().setVolume(VolumeType.MEDIA, INDEX); in testChangeMediaVolume()
69 int volume = mSoundsSettingHelper.get().getVolume(VolumeType.MEDIA); in testChangeMediaVolume()
75 mSoundsSettingHelper.get().setVolume(VolumeType.ALARM, INDEX); in testChangeAlarmVolume()
76 int volume = mSoundsSettingHelper.get().getVolume(VolumeType.ALARM); in testChangeAlarmVolume()
82 mSoundsSettingHelper.get().setVolume(VolumeType.NAVIGATION, INDEX); in testChangeNavigationVolume()
83 int volume = mSoundsSettingHelper.get().getVolume(VolumeType.NAVIGATION); in testChangeNavigationVolume()
89 mSoundsSettingHelper.get().setVolume(VolumeType.INCALL, INDEX); in testChangeInCallVolume()
90 int volume = mSoundsSettingHelper.get().getVolume(VolumeType.INCALL); in testChangeInCallVolume()
[all …]
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DBusinessLogicTest.java136 String description = bl.mRules.get("testCaseName1").get(0).getDescription(); in testCorrectLogic()
138 List<BusinessLogicRule> rulesList1 = bl.mRules.get("testCaseName1").get(0).getRules(); in testCorrectLogic()
140 BusinessLogicRule rule1 = rulesList1.get(0); in testCorrectLogic()
143 BusinessLogicRuleCondition rule1Condition = rule1Conditions.get(0); in testCorrectLogic()
151 rule1Condition.mMethodArgs.get(0)); in testCorrectLogic()
154 BusinessLogicRuleAction rule1Action = rule1Actions.get(0); in testCorrectLogic()
160 rule1Action.mMethodArgs.get(0)); in testCorrectLogic()
162 rule1Action.mMethodArgs.get(1)); in testCorrectLogic()
164 List<BusinessLogicRule> rulesList2 = bl.mRules.get("testCaseName2").get(0).getRules(); in testCorrectLogic()
166 BusinessLogicRule rule2 = rulesList2.get(0); in testCorrectLogic()
[all …]
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchActivityTransitionsAnimationMicrobenchmark.java43 sHelper.get().openActivityTransition(); in openApp()
49 sHelper.get().clickImage("ducky"); in testActivityTransitionsAnimation()
50 sHelper.get().clickImage("woot"); in testActivityTransitionsAnimation()
51 sHelper.get().clickImage("ball"); in testActivityTransitionsAnimation()
52 sHelper.get().clickImage("block"); in testActivityTransitionsAnimation()
53 sHelper.get().clickImage("jellies"); in testActivityTransitionsAnimation()
54 sHelper.get().clickImage("mug"); in testActivityTransitionsAnimation()
55 sHelper.get().clickImage("pencil"); in testActivityTransitionsAnimation()
56 sHelper.get().clickImage("scissors"); in testActivityTransitionsAnimation()
61 sHelper.get().exit(); in closeApp()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DPhotoUploadRule.java68 sPhotosHelper.get().open(); in starting()
69 sPhotosHelper.get().disableBackupMode(); in starting()
70 sGoogleCameraHelper.get().open(); in starting()
72 sGoogleCameraHelper.get().takeMultiplePhotos(photoCount, takePhotoDelay); in starting()
76 sGoogleCameraHelper.get().clickVideoTab(); in starting()
77 sGoogleCameraHelper.get().clickCameraVideoButton(); in starting()
79 sGoogleCameraHelper.get().clickCameraVideoButton(); in starting()
81 sPhotosHelper.get().open(); in starting()
82 sPhotosHelper.get().enableBackupMode(); in starting()
83 sPhotosHelper.get().verifyContentStartedUploading(); in starting()
[all …]
DMapsPipRule.java44 sMapsHelper.get().open(); in starting()
45 sMapsHelper.get().doSearch(mapsAddressOption); in starting()
46 sMapsHelper.get().getDirections(); in starting()
47 sMapsHelper.get().startNavigation(); in starting()
48 sMapsHelper.get().goToNavigatePip(); in starting()
54 executeShellCommand(String.format("am force-stop %s", sMapsHelper.get().getPackage())); in finished()
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DSfStatsCollectionHelperTest.java153 metrics.get( in testCollect_valuesMatch()
160 metrics.get( in testCollect_valuesMatch()
167 metrics.get( in testCollect_valuesMatch()
174 metrics.get( in testCollect_valuesMatch()
181 metrics.get( in testCollect_valuesMatch()
188 metrics.get( in testCollect_valuesMatch()
195 metrics.get( in testCollect_valuesMatch()
202 metrics.get( in testCollect_valuesMatch()
209 metrics.get( in testCollect_valuesMatch()
216 metrics.get( in testCollect_valuesMatch()
[all …]
/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/
DLyricCpuUtilizationHelperTest.java62 assertThat(metrics.get(String.format(METRIC_KEY, node, "number_of_invocations"))) in testProcessOutput()
65 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput()
68 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput()
71 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_max"))) in testProcessOutput()
74 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_min"))) in testProcessOutput()
77 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time"))) in testProcessOutput()
80 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_max"))) in testProcessOutput()
83 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_min"))) in testProcessOutput()
86 assertThat(metrics.get(String.format(METRIC_KEY, node, "wall_time"))) in testProcessOutput()
89 assertThat(metrics.get(String.format(METRIC_KEY, node, "wall_time_max"))) in testProcessOutput()
[all …]
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DCrashHelperTest.java103 assertEquals(0, crashMap.get(TOTAL_CRASHES_KEY).intValue()); in testEmptyCrashMetric()
104 assertEquals(0, crashMap.get(TOTAL_NATIVE_CRASHES_KEY).intValue()); in testEmptyCrashMetric()
105 assertEquals(0, crashMap.get(TOTAL_ANRS_KEY).intValue()); in testEmptyCrashMetric()
121 assertEquals(1, crashMap.get(TOTAL_CRASHES_KEY).intValue()); in testCrashMetric()
122 assertEquals(0, crashMap.get(TOTAL_NATIVE_CRASHES_KEY).intValue()); in testCrashMetric()
123 assertEquals(1, crashMap.get(CRASH_PKG_KEY).intValue()); in testCrashMetric()
124 assertEquals(0, crashMap.get(TOTAL_ANRS_KEY).intValue()); in testCrashMetric()
140 assertEquals(0, crashMap.get(TOTAL_CRASHES_KEY).intValue()); in testNativeCrashMetric()
141 assertEquals(1, crashMap.get(TOTAL_NATIVE_CRASHES_KEY).intValue()); in testNativeCrashMetric()
142 assertEquals(1, crashMap.get(NATIVE_CRASH_PKG_KEY).intValue()); in testNativeCrashMetric()
[all …]
DCpuUsageHelperTest.java79 mHelper.get().open(); in testCpuUsageMetrics()
84 mHelper.get().exit(); in testCpuUsageMetrics()
100 mHelper.get().open(); in testCpuUsageMetricsKey()
124 mHelper.get().exit(); in testCpuUsageMetricsKey()
135 mHelper.get().open(); in testCpuDisabledPerPkg()
140 mHelper.get().exit(); in testCpuDisabledPerPkg()
152 mHelper.get().open(); in testCpuUsageOnlyPerPkg()
159 mHelper.get().exit(); in testCpuUsageOnlyPerPkg()
169 mHelper.get().open(); in testCpuEnableCpuUtilization()
176 assertTrue(cpuUsage.get(TOTAL_CPU_TIME) >= cpuUsage.get(TOTAL_CPU_USAGE)); in testCpuEnableCpuUtilization()
[all …]
/platform_testing/tests/automotive/functional/navigationbar/src/android/platform/tests/
DNavigationBarTest.java73 mHomeHelper.get().open(); in testHomeButton()
74 assertTrue(mHomeHelper.get().hasMediaWidget()); in testHomeButton()
79 mDialerHelper.get().open(); in testDialButton()
80 assertFalse("Phone is paired.", mDialerHelper.get().isPhonePaired()); in testDialButton()
85 mAppGridHelper.get().open(); in testAppGridButton()
86 assertTrue("App Grid is not open.", mAppGridHelper.get().isAppInForeground()); in testAppGridButton()
91 mNotificationHelper.get().open(); in testNotificationButton()
92 assertTrue("Notification did not open.", mNotificationHelper.get().isAppInForeground()); in testNotificationButton()
97 mSettingHelper.get().openQuickSettings(); in testQuickSetting()
/platform_testing/tests/automotive/health/notification/tests/src/android/platform/scenario/notification/
DScrollMicrobenchmark.java29 sNotificationsMockingHelper.get().postNotifications(5); in openApp()
31 sHelper.get().open(); in openApp()
37 sNotificationsMockingHelper.get().clearAllNotification(); in closeApp()
39 sHelper.get().exit(); in closeApp()

12345678910