/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayPowerControllerTest.java | 137 private DisplayPowerControllerHolder mHolder; field in DisplayPowerControllerTest 211 mHolder = createDisplayPowerController(DISPLAY_ID, UNIQUE_ID); in setUp() 222 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testReleaseProxSuspendBlockersOnExit() 227 mHolder.dpc.requestPowerState(dpr, false /* waitForNegativeProximity */); in testReleaseProxSuspendBlockersOnExit() 239 verify(mHolder.wakelockController).acquireWakelock( in testReleaseProxSuspendBlockersOnExit() 241 verify(mHolder.wakelockController).acquireWakelock( in testReleaseProxSuspendBlockersOnExit() 244 mHolder.dpc.stop(); in testReleaseProxSuspendBlockersOnExit() 246 verify(mHolder.wakelockController).releaseAll(); in testReleaseProxSuspendBlockersOnExit() 251 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testScreenOffBecauseOfProximity() 256 mHolder.dpc.requestPowerState(dpr, false /* waitForNegativeProximity */); in testScreenOffBecauseOfProximity() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
D | TileAdapterDelegateTest.java | 52 private TileAdapter.Holder mHolder; field in TileAdapterDelegateTest 80 mView.setTag(mHolder); in testInfoNoSpecialActionsWhenCannotStartAccessibleAction() 81 when(mHolder.canTakeAccessibleAction()).thenReturn(false); in testInfoNoSpecialActionsWhenCannotStartAccessibleAction() 102 mView.setTag(mHolder); in testStateDescriptionHasPositionForCurrentTile() 104 when(mHolder.getLayoutPosition()).thenReturn(position); in testStateDescriptionHasPositionForCurrentTile() 105 when(mHolder.isCurrentTile()).thenReturn(true); in testStateDescriptionHasPositionForCurrentTile() 106 when(mHolder.canTakeAccessibleAction()).thenReturn(true); in testStateDescriptionHasPositionForCurrentTile() 116 mView.setTag(mHolder); in testStateDescriptionEmptyForNotCurrentTile() 118 when(mHolder.getLayoutPosition()).thenReturn(position); in testStateDescriptionEmptyForNotCurrentTile() 119 when(mHolder.isCurrentTile()).thenReturn(false); in testStateDescriptionEmptyForNotCurrentTile() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | PrimarySwitchPreferenceTest.java | 48 private PreferenceViewHolder mHolder; field in PrimarySwitchPreferenceTest 56 mHolder = PreferenceViewHolder.createInstanceForTests(inflater.inflate( in setUp() 59 mWidgetView = mHolder.itemView.findViewById(android.R.id.widget_frame); in setUp() 67 (CompoundButton) mHolder.findViewById(androidx.preference.R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState() 68 mPreference.onBindViewHolder(mHolder); in setChecked_shouldUpdateButtonCheckedState() 80 (CompoundButton) mHolder.findViewById(androidx.preference.R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState() 81 mPreference.onBindViewHolder(mHolder); in setSwitchEnabled_shouldUpdateButtonEnabledState() 93 (CompoundButton) mHolder.findViewById(androidx.preference.R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() 96 mPreference.onBindViewHolder(mHolder); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() 105 (CompoundButton) mHolder.findViewById(androidx.preference.R.id.switchWidget); in clickWidgetView_shouldToggleButton() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | BannerMessagePreferenceTest.java | 62 private PreferenceViewHolder mHolder; field in BannerMessagePreferenceTest 85 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenTitleSet_shouldSetTitle() 97 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize() 112 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenSummarySet_shouldSetSummary() 123 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenPreS_shouldBindView() 134 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenAtLeastS_whenSubtitleSetByString_shouldSetSubtitle() 146 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenAtLeastS_whenSubtitleSetByResId_shouldSetSubtitle() 161 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenAtLeastS_whenSubtitleXmlAttribute_shouldSetSubtitle() 171 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenAtLeastS_shouldNotShowSubtitleIfUnset() 182 mBannerPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenAtLeastS_whenIconSet_shouldSetIcon() [all …]
|
D | LayoutPreferenceTest.java | 42 private PreferenceViewHolder mHolder; field in LayoutPreferenceTest 48 mHolder = PreferenceViewHolder.createInstanceForTests(LayoutInflater.from(mContext) in setUp() 57 mPreference.onBindViewHolder(mHolder); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 59 mHolder.itemView.callOnClick(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 62 assertThat(mHolder.itemView.isFocusable()).isTrue(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 63 assertThat(mHolder.itemView.isClickable()).isTrue(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent() 69 mPreference.onBindViewHolder(mHolder); in setNonSelectable_viewShouldNotBeSelectable() 71 assertThat(mHolder.itemView.isFocusable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable() 72 assertThat(mHolder.itemView.isClickable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable() 80 mPreference.onBindViewHolder(mHolder); in disableSomeView_shouldMaintainStateAfterBind()
|
D | ButtonPreferenceTest.java | 45 private PreferenceViewHolder mHolder; field in ButtonPreferenceTest 62 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenTitleSet_shouldSetButtonText() 73 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_whenIconSet_shouldSetIcon() 85 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_setEnable_shouldSetButtonEnabled() 95 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_setDisable_shouldSetButtonDisabled() 103 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_default_shouldReturnButtonGravityStart() 114 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_setGravityStart_shouldReturnButtonGravityStart() 125 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_setGravityCenter_shouldReturnButtonGravityCenterHorizontal() 132 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_setGravityCenter_shouldReturnButtonGravityCenterHorizontal() 136 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_setGravityCenter_shouldReturnButtonGravityCenterHorizontal() [all …]
|
D | AppHeaderPreferenceTest.java | 41 private PreferenceViewHolder mHolder; field in AppHeaderPreferenceTest 47 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 53 mPreference.onBindViewHolder(mHolder); in setNonSelectable_viewShouldNotBeSelectable() 55 assertThat(mHolder.itemView.isClickable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable() 60 mPreference.onBindViewHolder(mHolder); in defaultInstallType_viewShouldNotBeVisible() 68 mPreference.onBindViewHolder(mHolder); in setIsInstantApp_shouldUpdateInstallType() 80 mPreference.onBindViewHolder(mHolder); in setSecondSummary_shouldUpdateSecondSummary()
|
D | BarChartPreferenceTest.java | 56 private PreferenceViewHolder mHolder; field in BarChartPreferenceTest 64 mHolder = PreferenceViewHolder.createInstanceForTests(mBarChartView); in setUp() 91 mPreference.onBindViewHolder(mHolder); in initializeBarChart_titleSet_shouldSetTitleInChartView() 106 mPreference.onBindViewHolder(mHolder); in initializeBarChart_noBarViewSet_shouldShowTitleAndEmptyView() 127 mPreference.onBindViewHolder(mHolder); in initializeBarChart_detailsSet_shouldShowBarChartDetailsView() 145 mPreference.onBindViewHolder(mHolder); in initializeBarChart_detailsNotSet_shouldHideBarChartDetailsView() 164 mPreference.onBindViewHolder(mHolder); in initializeBarChart_clickListenerSet_shouldSetClickListenerOnDetailsView() 178 mPreference.onBindViewHolder(mHolder); in setBarViewInfos_oneBarViewInfoSet_shouldShowOneBarView() 197 mPreference.onBindViewHolder(mHolder); in setBarViewInfos_twoBarViewInfosSet_shouldShowTwoBarViews() 218 mPreference.onBindViewHolder(mHolder); in setBarViewInfos_threeBarViewInfosSet_shouldShowThreeBarViews() [all …]
|
D | MainSwitchPreferenceTest.java | 40 private PreferenceViewHolder mHolder; field in MainSwitchPreferenceTest 48 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 56 mPreference.onBindViewHolder(mHolder); in setTitle_shouldUpdateTitle() 66 mPreference.onBindViewHolder(mHolder); in updateStatus_shouldMatchTheStatus()
|
D | AppPreferenceTest.java | 40 private PreferenceViewHolder mHolder; field in AppPreferenceTest 46 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 53 mPref.onBindViewHolder(mHolder); in setProgress_showProgress() 55 assertThat(mHolder.findViewById(android.R.id.progress).getVisibility()) in setProgress_showProgress()
|
D | ActionButtonsPreferenceTest.java | 48 private PreferenceViewHolder mHolder; field in ActionButtonsPreferenceTest 54 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 65 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 84 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setIcon_shouldShowButtonByDefault() 98 mPref.onBindViewHolder(mHolder); in onBindViewHolder_notSetTitleOrIcon_shouldNotShowButtonByDefault() 117 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton() 136 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton() 155 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility() 171 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility() 190 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setEnabled_shouldEnableButton() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ui/ |
D | StatusBarIconList.java | 138 private StatusBarIconHolder mHolder; field in StatusBarIconList.Slot 154 mHolder = iconHolder; in Slot() 164 return mHolder; in getHolderForTag() 181 mHolder = holder; in addHolder() 189 mHolder = null; in removeForTag() 200 mHolder = null; in clear() 234 if (mHolder != null) return true; in hasIconsInSlot() 241 int num = mHolder == null ? 0 : 1; in numberOfIcons() 279 if (mHolder != null) { in getHolderListInViewOrder() 280 holders.add(mHolder); in getHolderListInViewOrder() [all …]
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 196 private SurfaceHolder mHolder; field in LocalRenderer 654 mHolder = holder; in isHolderReady() 704 SurfaceHolder holder = mHolder; in cleanUpPlayer() 705 mHolder = null; in cleanUpPlayer()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | SurfaceAndTextureViews.java | 123 SurfaceHolder mHolder = null; field in SurfaceAndTextureViews.SimpleSurfaceView
|
/frameworks/base/core/java/android/app/ |
D | ActivityThread.java | 511 ContentProviderHolder mHolder; // Temp holder to be used between notifier and waiter field in ActivityThread.ProviderKey 849 final ContentProviderHolder mHolder; field in ActivityThread.ProviderClientRecord 856 mHolder = holder; in ProviderClientRecord() 2156 key.mHolder = holder; in notifyContentProviderPublishStatus() 7847 if (key.mHolder != null) { in acquireProvider() 7854 holder = key.mHolder; in acquireProvider() 7869 key.mHolder = null; in acquireProvider() 8204 Slog.w(TAG, "Content provider " + pcr.mHolder.info.name in installProviderAuthoritiesLocked() 8330 retHolder = pr.mHolder; in installProvider()
|