/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PreferencesHelperTest.java | 222 private PreferencesHelper mHelper; field in PreferencesHelperTest 360 mHelper = new PreferencesHelper(getContext(), mPm, mHandler, mMockZenModeHelper, in setUp() 392 mHelper.writeXml(serializer, forBackup, userId); in writeXmlAndPurge() 396 mHelper.permanentlyDeleteNotificationChannel(pkg, uid, channelId); in writeXmlAndPurge() 519 assertTrue(mHelper.createNotificationChannel(package0, uid0, channel0, true, false, in testWriteXml_onlyBackupsTargetUser() 526 assertTrue(mHelper.createNotificationChannel(package10, uid10, channel10, true, false, in testWriteXml_onlyBackupsTargetUser() 539 mHelper.onPackagesChanged(true, 0, new String[] {package0}, new int[] {uid0}); in testWriteXml_onlyBackupsTargetUser() 540 mHelper.onPackagesChanged(true, 10, new String[] {package10}, new int[] {uid10}); in testWriteXml_onlyBackupsTargetUser() 558 assertTrue(mHelper.createNotificationChannel(package0, uid0, channel0, true, false, in testReadXml_onlyRestoresTargetUser() 605 mHelper.createNotificationChannelGroup(PKG_N_MR1, UID_N_MR1, ncg, true, in testChannelXml() [all …]
|
D | TimeToLiveHelperTest.java | 55 TimeToLiveHelper mHelper; field in TimeToLiveHelperTest 65 mHelper = new TimeToLiveHelper(mNm, mContext); in setUp() 70 mHelper.destroy(); in tearDown() 88 mHelper.scheduleTimeoutLocked(getRecord("testTimeout", 1), 1); in testTimeout() 91 assertThat(mHelper.mKeys).hasSize(1); in testTimeout() 98 mHelper.scheduleTimeoutLocked(r, 1); in testTimeoutExpires() 102 mHelper.mNotificationTimeoutReceiver.onReceive(mContext, captor.getValue().getIntent()); in testTimeoutExpires() 104 assertThat(mHelper.mKeys).isEmpty(); in testTimeoutExpires() 112 mHelper.scheduleTimeoutLocked(first, 1); in testTimeoutExpires_twoEntries() 113 mHelper.scheduleTimeoutLocked(later, 1); in testTimeoutExpires_twoEntries() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedPreference.java | 38 RestrictedPreferenceHelper mHelper; field in RestrictedPreference 43 mHelper = new RestrictedPreferenceHelper(context, this, attrs, packageName, uid); in RestrictedPreference() 72 mHelper.onBindViewHolder(holder); in onBindViewHolder() 77 if (!mHelper.performClick()) { in performClick() 83 mHelper.useAdminDisabledSummary(useSummary); in useAdminDisabledSummary() 88 mHelper.onAttachedToHierarchy(); in onAttachedToHierarchy() 93 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled() 97 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled() 108 mHelper.checkEcmRestrictionAndSetDisabled(settingIdentifier, packageName); in checkEcmRestrictionAndSetDisabled() 114 mHelper.setDisabledByAdmin(null); in setEnabled() [all …]
|
D | RestrictedSelectorWithWidgetPreference.java | 36 private RestrictedPreferenceHelper mHelper; field in RestrictedSelectorWithWidgetPreference 50 mHelper = new RestrictedPreferenceHelper(context, /* preference= */ this, attrs); in RestrictedSelectorWithWidgetPreference() 63 mHelper = new RestrictedPreferenceHelper(context, /* preference= */ this, attrs); in RestrictedSelectorWithWidgetPreference() 74 mHelper = in RestrictedSelectorWithWidgetPreference() 85 mHelper = in RestrictedSelectorWithWidgetPreference() 92 mHelper.onBindViewHolder(holder); in onBindViewHolder() 97 if (!mHelper.performClick()) { in performClick() 104 mHelper.onAttachedToHierarchy(); in onAttachedToHierarchy() 114 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled() 124 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled() [all …]
|
D | RestrictedTopLevelPreference.java | 32 private RestrictedPreferenceHelper mHelper; field in RestrictedTopLevelPreference 37 mHelper = new RestrictedPreferenceHelper(context, /* preference= */ this, attrs); in RestrictedTopLevelPreference() 56 mHelper.onBindViewHolder(holder); in onBindViewHolder() 61 if (!mHelper.performClick()) { in performClick() 68 mHelper.onAttachedToHierarchy(); in onAttachedToHierarchy() 78 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled() 88 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled() 94 mHelper.setDisabledByAdmin(/* admin= */ null); in setEnabled() 106 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin() 116 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
|
D | RestrictedSwitchPreference.java | 50 RestrictedPreferenceHelper mHelper; field in RestrictedSwitchPreference 59 mHelper = new RestrictedPreferenceHelper(context, this, attrs); in RestrictedSwitchPreference() 120 mHelper.onBindViewHolder(holder); in onBindViewHolder() 177 if (!mHelper.performClick()) { in performClick() 183 mHelper.useAdminDisabledSummary(useSummary); in useAdminDisabledSummary() 188 mHelper.onAttachedToHierarchy(); in onAttachedToHierarchy() 193 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled() 197 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled() 208 mHelper.checkEcmRestrictionAndSetDisabled(settingIdentifier, packageName); in checkEcmRestrictionAndSetDisabled() 215 mHelper.setDisabledByAdmin(null); in setEnabled() [all …]
|
D | RestrictedDropDownPreference.java | 26 RestrictedPreferenceHelper mHelper; field in RestrictedDropDownPreference 30 mHelper = new RestrictedPreferenceHelper(context, this, null); in RestrictedDropDownPreference() 41 mHelper.checkEcmRestrictionAndSetDisabled(settingIdentifier, packageName); in checkEcmRestrictionAndSetDisabled() 47 mHelper.onBindViewHolder(holder); in onBindViewHolder() 53 mHelper.setDisabledByEcm(null); in setEnabled() 62 if (!mHelper.performClick()) { in performClick() 68 return mHelper.isDisabledByEcm(); in isDisabledByEcm()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | ContactsQueryHelperTest.java | 66 private ContactsQueryHelper mHelper; field in ContactsQueryHelperTest 90 mHelper = new ContactsQueryHelper(mContext); in setUp() 98 assertFalse(mHelper.query(contactUri.toString())); in testQuerySQLiteException_returnsFalse() 106 assertFalse(mHelper.query(contactUri.toString())); in testQueryIllegalArgumentException_returnsFalse() 116 assertTrue(mHelper.query(contactUri.toString())); in testQueryWithUri() 117 assertNotNull(mHelper.getContactUri()); in testQueryWithUri() 118 assertEquals(PHONE_NUMBER, mHelper.getPhoneNumber()); in testQueryWithUri() 119 assertEquals(100L, mHelper.getLastUpdatedTimestamp()); in testQueryWithUri() 120 assertTrue(mHelper.isStarred()); in testQueryWithUri() 129 assertTrue(mHelper.query(contactUri.toString())); in testQueryWithUriNotStarredNoPhoneNumber() [all …]
|
D | CallLogQueryHelperTest.java | 60 private CallLogQueryHelper mHelper; field in CallLogQueryHelperTest 73 mHelper = new CallLogQueryHelper(mContext, mEventConsumer); in setUp() 78 assertFalse(mHelper.querySince(50L)); in testQueryNoCalls() 88 assertTrue(mHelper.querySince(50L)); in testQueryIncomingCall() 91 assertEquals(100L, mHelper.getLastCallTimestamp()); in testQueryIncomingCall() 104 assertTrue(mHelper.querySince(50L)); in testQueryOutgoingCall() 107 assertEquals(100L, mHelper.getLastCallTimestamp()); in testQueryOutgoingCall() 120 assertTrue(mHelper.querySince(50L)); in testQueryMissedCall() 123 assertEquals(100L, mHelper.getLastCallTimestamp()); in testQueryMissedCall() 139 assertTrue(mHelper.querySince(50L)); in testQueryMultipleCalls() [all …]
|
D | SmsQueryHelperTest.java | 61 private SmsQueryHelper mHelper; field in SmsQueryHelperTest 74 mHelper = new SmsQueryHelper(mContext, mEventConsumer); in setUp() 79 assertFalse(mHelper.querySince(50_000L)); in testQueryNoMessages() 89 assertTrue(mHelper.querySince(50L)); in testQueryIncomingMessage() 92 assertEquals(100L, mHelper.getLastMessageTimestamp()); in testQueryIncomingMessage() 104 assertTrue(mHelper.querySince(50L)); in testQueryOutgoingMessage() 107 assertEquals(100L, mHelper.getLastMessageTimestamp()); in testQueryOutgoingMessage() 122 assertTrue(mHelper.querySince(50L)); in testQueryMultipleMessages() 125 assertEquals(110L, mHelper.getLastMessageTimestamp()); in testQueryMultipleMessages()
|
D | MmsQueryHelperTest.java | 65 private MmsQueryHelper mHelper; field in MmsQueryHelperTest 80 mHelper = new MmsQueryHelper(mContext, mEventConsumer); in setUp() 85 assertFalse(mHelper.querySince(50_000L)); in testQueryNoMessages() 98 assertTrue(mHelper.querySince(50_000L)); in testQueryIncomingMessage() 101 assertEquals(100_000L, mHelper.getLastMessageTimestamp()); in testQueryIncomingMessage() 116 assertTrue(mHelper.querySince(50_000L)); in testQueryOutgoingMessage() 119 assertEquals(100_000L, mHelper.getLastMessageTimestamp()); in testQueryOutgoingMessage() 140 assertTrue(mHelper.querySince(50_000L)); in testQueryMultipleMessages() 143 assertEquals(110_000L, mHelper.getLastMessageTimestamp()); in testQueryMultipleMessages()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | SystemUserInfoHelperTest.java | 59 private SystemUserInfoHelper mHelper; field in SystemUserInfoHelperTest 71 mHelper = new SystemUserInfoHelper(mContext); in setUp() 83 mHelper.addListener(listener); in testListener_SwitchUser() 85 mHelper.dispatchOnCurrentUserChanged(USER1_ID, USER2_ID); in testListener_SwitchUser() 93 mHelper.dispatchOnCurrentUserChanged(USER2_ID, USER1_ID); in testListener_SwitchUser() 104 mHelper.onSystemReady(); in testListener_UserVisibilityChanged() 108 mHelper.addListener(listener); in testListener_UserVisibilityChanged() 110 mHelper.dispatchOnVisibleUserChanged(USER1_ID, false); in testListener_UserVisibilityChanged() 111 mHelper.dispatchOnVisibleUserChanged(USER2_ID, true); in testListener_UserVisibilityChanged() 115 mHelper.dispatchOnVisibleUserChanged(USER2_ID, false); in testListener_UserVisibilityChanged() [all …]
|
D | SystemAppOpsHelperTest.java | 68 private SystemAppOpsHelper mHelper; field in SystemAppOpsHelperTest 82 mHelper = new SystemAppOpsHelper(mContext); in setUp() 83 mHelper.onSystemReady(); in setUp() 96 mHelper.addListener(listener); in testListener() 111 assertThat(mHelper.checkOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testCheckOp() 115 assertThat(mHelper.checkOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testCheckOp() 121 assertThat(mHelper.checkOpNoThrow(OP_COARSE_LOCATION, identity)).isTrue(); in testCheckOp() 125 assertThat(mHelper.checkOpNoThrow(OP_COARSE_LOCATION, identity)).isFalse(); in testCheckOp() 135 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isTrue(); in testNoteOpNoThrow() 140 assertThat(mHelper.noteOpNoThrow(OP_FINE_LOCATION, identity)).isFalse(); in testNoteOpNoThrow() [all …]
|
D | SystemLocationPowerSaveModeHelperTest.java | 71 private SystemLocationPowerSaveModeHelper mHelper; field in SystemLocationPowerSaveModeHelperTest 87 mHelper = new SystemLocationPowerSaveModeHelper(context); in setUp() 88 mHelper.onSystemReady(); in setUp() 106 mHelper.addListener(listener); in testListener() 112 assertThat(mHelper.getLocationPowerSaveMode()).isEqualTo(LOCATION_MODE_NO_CHANGE); in testListener() 117 assertThat(mHelper.getLocationPowerSaveMode()).isEqualTo(LOCATION_MODE_NO_CHANGE); in testListener() 122 assertThat(mHelper.getLocationPowerSaveMode()).isEqualTo(LOCATION_MODE_NO_CHANGE); in testListener() 127 assertThat(mHelper.getLocationPowerSaveMode()).isEqualTo(LOCATION_MODE_NO_CHANGE); in testListener() 133 assertThat(mHelper.getLocationPowerSaveMode()).isEqualTo(LOCATION_MODE_NO_CHANGE); in testListener() 139 assertThat(mHelper.getLocationPowerSaveMode()).isEqualTo(LOCATION_MODE_NO_CHANGE); in testListener() [all …]
|
D | SystemAppForegroundHelperTest.java | 61 private SystemAppForegroundHelper mHelper; field in SystemAppForegroundHelperTest 74 mHelper = new SystemAppForegroundHelper(mContext); in setUp() 75 mHelper.onSystemReady(); in setUp() 89 mHelper.addListener(listener); in testListeners() 104 assertThat(mHelper.isAppForeground(0)).isEqualTo(true); in testIsAppForeground() 107 assertThat(mHelper.isAppForeground(0)).isEqualTo(true); in testIsAppForeground() 110 assertThat(mHelper.isAppForeground(0)).isEqualTo(false); in testIsAppForeground()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | TestOnlyInsecureCertificateHelperTest.java | 24 private final TestOnlyInsecureCertificateHelper mHelper field in TestOnlyInsecureCertificateHelperTest 29 assertThat(mHelper.doesCredentialSupportInsecureMode( in testDoesCredentailSupportInsecureMode_forNonWhitelistedPassword() 31 assertThat(mHelper.doesCredentialSupportInsecureMode( in testDoesCredentailSupportInsecureMode_forNonWhitelistedPassword() 37 assertThat(mHelper.doesCredentialSupportInsecureMode( in testDoesCredentailSupportInsecureMode_forWhitelistedPassword() 41 assertThat(mHelper.doesCredentialSupportInsecureMode( in testDoesCredentailSupportInsecureMode_forWhitelistedPassword() 48 assertThat(mHelper.doesCredentialSupportInsecureMode( in testDoesCredentailSupportInsecureMode_Pattern() 51 assertThat(mHelper.doesCredentialSupportInsecureMode( in testDoesCredentailSupportInsecureMode_Pattern() 58 assertThat(mHelper.isTestOnlyCertificateAlias( in testIsTestOnlyCertificate() 60 assertThat(mHelper.isTestOnlyCertificateAlias( in testIsTestOnlyCertificate() 62 assertThat(mHelper.isTestOnlyCertificateAlias( in testIsTestOnlyCertificate() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedPreferenceHelperTest.java | 61 private RestrictedPreferenceHelper mHelper; field in RestrictedPreferenceHelperTest 71 mHelper = new RestrictedPreferenceHelper(mContext, mPreference, null); in setUp() 83 mHelper.useAdminDisabledSummary(true); in bindPreference_disabled_shouldDisplayDisabledSummary() 84 mHelper.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in bindPreference_disabled_shouldDisplayDisabledSummary() 85 mHelper.onBindViewHolder(mViewHolder); in bindPreference_disabled_shouldDisplayDisabledSummary() 97 mHelper.setDisabledByEcm(mock(Intent.class)); in bindPreference_disabledByEcm_shouldDisplayDisabledSummary() 98 mHelper.onBindViewHolder(mViewHolder); in bindPreference_disabledByEcm_shouldDisplayDisabledSummary() 114 mHelper.useAdminDisabledSummary(true); in bindPreference_notDisabled_shouldNotHideSummary() 115 mHelper.setDisabledByAdmin(null); in bindPreference_notDisabled_shouldNotHideSummary() 116 mHelper.onBindViewHolder(mViewHolder); in bindPreference_notDisabled_shouldNotHideSummary() [all …]
|
D | RestrictedTopLevelPreferenceTest.java | 40 private RestrictedPreferenceHelper mHelper; field in RestrictedTopLevelPreferenceTest 46 mHelper = spy(new RestrictedPreferenceHelper(mContext, mPreference, null)); in setUp() 47 ReflectionHelpers.setField(mPreference, "mHelper", mHelper); in setUp() 52 when(mHelper.isDisabledByAdmin()).thenReturn(true); in setEnabled_disabledByAdmin_shouldCallSetDisabledByAdmin() 56 verify(mHelper).setDisabledByAdmin(any()); in setEnabled_disabledByAdmin_shouldCallSetDisabledByAdmin() 61 when(mHelper.isDisabledByAdmin()).thenReturn(false); in setEnabled_notDisabledByAdmin_shouldNotCallSetDisabledByAdmin() 65 verify(mHelper, never()).setDisabledByAdmin(any()); in setEnabled_notDisabledByAdmin_shouldNotCallSetDisabledByAdmin()
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/ |
D | OverlayDisplayMonitorTest.java | 49 private CarServiceHelperInterface mHelper; field in OverlayDisplayMonitorTest 60 mDisplayManager, /* handler= */ null, mHelper); in setUp() 71 when(mHelper.isOverlayDisplay(mTestDisplayId)).thenReturn(true); in assignsOverlayDisplayToDriver() 75 verify(mHelper, times(1)).assignUserToExtraDisplay(mTestUserId, mTestDisplayId); in assignsOverlayDisplayToDriver() 80 when(mHelper.isOverlayDisplay(mTestDisplayId)).thenReturn(false); in doesNotAssignNonOverlayDisplayToDriver() 84 verify(mHelper, never()).assignUserToExtraDisplay(mTestUserId, mTestDisplayId); in doesNotAssignNonOverlayDisplayToDriver() 89 when(mHelper.isOverlayDisplay(mTestDisplayId)).thenReturn(true); in unassignsOverlayDisplayFromDriver() 90 when(mHelper.assignUserToExtraDisplay(mTestUserId, mTestDisplayId)).thenReturn(true); in unassignsOverlayDisplayFromDriver() 95 verify(mHelper, times(1)).unassignUserFromExtraDisplay(mTestUserId, mTestDisplayId); in unassignsOverlayDisplayFromDriver() 100 when(mHelper.isOverlayDisplay(mTestDisplayId)).thenReturn(false); in doesNotUnassignsNonOverlayDisplayFromDriver() [all …]
|
/frameworks/opt/car/services/builtInServices/tests/src/com/android/internal/car/ |
D | CarServiceHelperServiceTest.java | 67 private CarServiceHelperService mHelper; field in CarServiceHelperServiceTest 112 mHelper = new CarServiceHelperService( in setTestFixtures() 130 .that(mHelper.isUserSupported(newTargetUser(10, /* preCreated= */ true))) in testIsUserSupported_preCreatedUserIsNotSupported() 136 expectWithMessage("isUserSupported").that(mHelper.isUserSupported(newTargetUser(11))) in testIsUserSupported_nonPreCreatedUserIsSupported() 144 mHelper.onUserStarting(newTargetUser(userId)); in testOnUserStarting_notifiesICar() 154 mHelper.onUserSwitching(newTargetUser(currentUserId), in testOnUserSwitching_notifiesICar() 165 mHelper.onUserUnlocking(newTargetUser(userId)); in testOnUserUnlocking_notifiesICar() 174 mHelper.onUserStopping(newTargetUser(userId)); in testOnUserStopping_notifiesICar() 183 mHelper.onUserStopped(newTargetUser(userId)); in testOnUserStopped_notifiesICar() 192 mHelper.onUserCompletedEvent(newTargetUser(userId), newUserCompletedEventTypeForTest( in testOnUserCompletedEvent_notifiesPostUnlockedEvent() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | HearingAidAudioRoutingHelperTest.java | 76 private HearingAidAudioRoutingHelper mHelper; field in HearingAidAudioRoutingHelperTest 95 mHelper = spy(new HearingAidAudioRoutingHelper(mContext)); in setUp() 96 doReturn(List.of(mAudioStrategy)).when(mHelper).getAudioProductStrategies(); in setUp() 104 mHelper.setPreferredDeviceRoutingStrategies(List.of(mAudioStrategy), in setPreferredDeviceRoutingStrategies_hadValueThenValueAuto_callRemoveStrategy() 115 mHelper.setPreferredDeviceRoutingStrategies(List.of(mAudioStrategy), in setPreferredDeviceRoutingStrategies_NoValueThenValueAuto_notCallRemoveStrategy() 124 mHelper.setPreferredDeviceRoutingStrategies(List.of(mAudioStrategy), in setPreferredDeviceRoutingStrategies_valueHearingDevice_callSetStrategy() 136 mHelper.setPreferredDeviceRoutingStrategies(List.of(mAudioStrategy), in setPreferredDeviceRoutingStrategies_valueDeviceSpeaker_callSetStrategy() 149 final String targetAddress = mHelper.getMatchedHearingDeviceAttributes( in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress() 163 final String targetAddress = mHelper.getMatchedHearingDeviceAttributes( in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress() 179 final String targetAddress = mHelper.getMatchedHearingDeviceAttributes( in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress()
|
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/ |
D | OverlayDisplayMonitor.java | 40 private final CarServiceHelperInterface mHelper; field in OverlayDisplayMonitor 49 mHelper = helper; in OverlayDisplayMonitor() 65 if (mHelper.isOverlayDisplay(displayId)) { 66 if (!mHelper.assignUserToExtraDisplay(mCurrentUserId, displayId)) { 81 boolean success = mHelper.unassignUserFromExtraDisplay(userId, displayId);
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AppCopyingHelperTest.java | 64 private AppCopyHelper mHelper; field in AppCopyingHelperTest 73 mHelper = new AppCopyHelper(new TestInjector()); in setUp() 98 mHelper.fetchAndMergeApps(); in testFetchAndMergeApps() 110 for (AppCopyHelper.SelectableAppInfo info : mHelper.getVisibleApps()) { in testFetchAndMergeApps() 126 mHelper.setPackageSelected("app1", true); // Ultimately true in testInstallSelectedApps() 127 mHelper.setPackageSelected("app2", true); // Ultimately false in testInstallSelectedApps() 128 mHelper.setPackageSelected("app3", true); // Ultimately true in testInstallSelectedApps() 129 mHelper.setPackageSelected("app4", true); // Ultimately true in testInstallSelectedApps() 131 mHelper.setPackageSelected("app2", false); in testInstallSelectedApps() 132 mHelper.setPackageSelected("app1", false); in testInstallSelectedApps() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
D | AbsCaptureHelperTest.java | 94 private H mHelper; field in AbsCaptureHelperTest 170 ScrollResult result = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_up_fromTop() 179 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_down_fromTop() 193 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_up_fromMiddle() 207 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_down_fromMiddle() 221 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_up_fromBottom() 235 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_down_fromBottom() 252 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_offTopEdge() 270 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_offBottomEdge() 289 mHelper = createHelper(); in initHelper() [all …]
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 58 private TestPreOLinkAccessibilityHelper mHelper; field in LinkAccessibilityHelperTest 65 final int virtualViewId = mHelper.getVirtualViewAt(dp2Px(15), dp2Px(10)); in testGetVirtualViewAt() 72 final int virtualViewId = mHelper.getVirtualViewAt(dp2Px(100), dp2Px(100)); in testGetVirtualViewAtHost() 81 mHelper.getVisibleVirtualViews(virtualViewIds); in testGetVisibleVirtualViews() 90 mHelper.onPopulateEventForVirtualView(1, event); in testOnPopulateEventForVirtualView() 103 mHelper.onPopulateEventForVirtualView(ExploreByTouchHelper.INVALID_ID, event); in testOnPopulateEventForVirtualViewHost() 117 mHelper.onPopulateNodeForVirtualView(1, info); in testOnPopulateNodeForVirtualView() 140 mHelper.onPopulateNodeForVirtualView(0, info); in testNullLayout() 156 mHelper.onPopulateNodeForVirtualView(1, info); in testRtlLayout() 180 mHelper.onPopulateNodeForVirtualView(51, info); in testMultilineLink() [all …]
|