Home
last modified time | relevance | path

Searched refs:mView (Results 1 – 25 of 119) sorted by relevance

12345

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java43 protected final View mView; field in DragPreviewProvider
55 mView = view; in DragPreviewProvider()
68 if (mView instanceof DraggableView) { in drawDragView()
69 DraggableView dv = (DraggableView) mView; in drawDragView()
74 mView.draw(destCanvas); in drawDragView()
85 if (mView instanceof LauncherAppWidgetHostView) { in createDrawable()
92 float scale = mView.getScaleX(); in createDrawable()
93 if (mView instanceof DraggableView) { in createDrawable()
94 ((DraggableView) mView).getSourceVisualDragBounds(mTempRect); in createDrawable()
98 width = mView.getWidth(); in createDrawable()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigController2Test.java93 private View mView; field in WifiConfigController2Test
137 mView = LayoutInflater.from(mContext).inflate(R.layout.wifi_dialog, null); in setUp()
138 final Spinner ipSettingsSpinner = mView.findViewById(R.id.ip_settings); in setUp()
139 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in setUp()
140 mEapCaCertSpinner = mView.findViewById(R.id.ca_cert); in setUp()
141 mEapUserCertSpinner = mView.findViewById(R.id.user_cert); in setUp()
150 mController = new TestWifiConfigController2(mConfigUiBase, mView, mWifiEntry, in setUp()
156 mController = new TestWifiConfigController2(mConfigUiBase, mView, null /* wifiEntry */, in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
158 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
163 assertThat(mView.findViewById(R.id.ssid_too_long_warning).getVisibility()) in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
[all …]
DWifiConfigControllerTest.java79 private View mView; field in WifiConfigControllerTest
103 mView = LayoutInflater.from(mContext).inflate(R.layout.wifi_dialog, null); in setUp()
104 final Spinner ipSettingsSpinner = mView.findViewById(R.id.ip_settings); in setUp()
105 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in setUp()
109 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in setUp()
115 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
117 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
122 assertThat(mView.findViewById(R.id.ssid_too_long_warning).getVisibility()) in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
128 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
131 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
[all …]
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/view/
DQCViewTest.java44 private QCView mView; field in QCViewTest
48 mView = new QCView(mContext); in setUp()
53 mView.onChanged(null); in onChanged_null_noViews()
54 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews()
61 () -> mView.onChanged(row)); in onChanged_invalidType_throwsIllegalArgumentException()
67 mView.onChanged(list); in onChanged_list_createsListView()
68 assertThat(mView.getChildCount()).isEqualTo(1); in onChanged_list_createsListView()
69 assertThat(mView.getChildAt(0) instanceof QCListView).isTrue(); in onChanged_list_createsListView()
76 mView.onChanged(tile); in onChanged_tile_createsTileView()
77 assertThat(mView.getChildCount()).isEqualTo(1); in onChanged_tile_createsTileView()
[all …]
DQCListViewTest.java41 private QCListView mView; field in QCListViewTest
45 mView = new QCListView(mContext); in setUp()
50 mView.onChanged(null); in onChanged_null_noViews()
51 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews()
58 () -> mView.onChanged(row)); in onChanged_invalidType_throwsIllegalArgumentException()
67 mView.onChanged(list); in onChanged_createsRows()
68 assertThat(mView.getChildCount()).isEqualTo(2); in onChanged_createsRows()
69 assertThat(mView.getChildAt(0) instanceof QCRowView).isTrue(); in onChanged_createsRows()
70 assertThat(mView.getChildAt(1) instanceof QCRowView).isTrue(); in onChanged_createsRows()
79 mView.onChanged(list); in onChanged_decreasedRowCount_removesExtraRows()
[all …]
DQCRowViewTest.java59 private QCRowView mView; field in QCRowViewTest
63 mView = new QCRowView(mContext); in setUp()
68 mView.setRow(null); in setRow_null_notVisible()
69 assertThat(mView.getVisibility()).isEqualTo(View.GONE); in setRow_null_notVisible()
75 mView.setRow(row); in setRow_notNull_visible()
76 assertThat(mView.getVisibility()).isEqualTo(View.VISIBLE); in setRow_notNull_visible()
83 mView.setRow(row); in setRow_setsTitle()
84 TextView titleView = mView.findViewById(R.id.qc_title); in setRow_setsTitle()
93 mView.setRow(row); in setRow_setsSubtitle()
94 TextView subtitleView = mView.findViewById(R.id.qc_summary); in setRow_setsSubtitle()
[all …]
DQCSeekBarViewTest.java42 private final QCSeekBarView mView = new QCSeekBarView(mContext); field in QCSeekBarViewTest
55 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in enabled_standardTouchEvent()
60 mView.setEnabled(false); in disabled_standardTouchEvent()
62 assertThat(mView.onTouchEvent(mMotionEvent)).isFalse(); in disabled_standardTouchEvent()
67 mView.setEnabled(false); in clickableWhileDisabled_customTouchEvent()
68 mView.setClickableWhileDisabled(true); in clickableWhileDisabled_customTouchEvent()
70 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in clickableWhileDisabled_customTouchEvent()
77 mView.setEnabled(false); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener()
78 mView.setClickableWhileDisabled(true); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener()
79 mView.setDisabledClickListener(disabledClickListener); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener()
[all …]
DQCTileViewTest.java52 private QCTileView mView; field in QCTileViewTest
56 mView = new QCTileView(mContext); in setUp()
61 mView.onChanged(null); in onChanged_null_noViews()
62 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews()
69 () -> mView.onChanged(row)); in onChanged_invalidType_throwsIllegalArgumentException()
77 mView.onChanged(tile); in onChanged_setsSubtitleView()
78 TextView subtitleView = mView.findViewById(android.R.id.summary); in onChanged_setsSubtitleView()
86 mView.onChanged(tile); in onChanged_setsButtonState()
87 DrawableStateToggleButton button = mView.findViewById(R.id.qc_tile_toggle_button); in onChanged_setsButtonState()
97 mView.onChanged(tile); in onChanged_setsIcon()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DBasePagerViewHolder.java33 protected View mView; field in BasePagerViewHolder
62 if (mView != null && (mView instanceof PersistentInstanceState)) { in resetState()
63 ((PersistentInstanceState) mView).resetState(); in resetState()
75 final View retView = mView; in destroyView()
76 mView = null; in destroyView()
82 if (mView == null) { in getView()
83 mView = createView(container); in getView()
87 return mView; in getView()
91 if (mView != null && (mView instanceof PersistentInstanceState)) { in savePendingState()
92 mSavedState = ((PersistentInstanceState) mView).saveState(); in savePendingState()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DFullScreenAnimation.java49 private final View mView; field in FullScreenAnimation
102 mView = view; in FullScreenAnimation()
155 final TypedArray attributes = mView.getContext().getTheme().obtainStyledAttributes( in getAttributeDimension()
175 mView.findViewById(viewId).setLayoutParams(layoutParams); in setViewMargins()
217 (float) getStatusBarHeight() + mView.findViewById( in placeViews()
220 + mView.getResources().getDimension(R.dimen.bottom_actions_height) in placeViews()
221 + mView.getResources().getDimension(R.dimen.separated_tabs_height), in placeViews()
231 + mView.getResources().getDimension(R.dimen.bottom_actions_height), in placeViews()
244 mView.findViewById(R.id.bottom_actionbar).setTranslationY(targetTranslation); in ensureBottomActionBarIsCorrectlyLocated()
260 mView.findViewById(R.id.section_header_container).setLayoutParams(layoutParams); in ensureToolbarIsCorrectlyLocated()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DKeyboardInsetAnimationCallback.java34 private final View mView; field in KeyboardInsetAnimationCallback
41 mView = view; in KeyboardInsetAnimationCallback()
46 mInitialTranslation = mView.getTranslationY(); in onPrepare()
53 mView.setTranslationY(mInitialTranslation); in onProgress()
60 mView.setTranslationY( in onProgress()
65 if (mView.getParent() instanceof View) { in onProgress()
67 translationY -= ((View) mView.getParent()).getTranslationY(); in onProgress()
69 mView.setTranslationY(translationY); in onProgress()
78 mTerminalTranslation = mView.getTranslationY(); in onStart()
79 if (mView instanceof KeyboardInsetListener) { in onStart()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java104 private final View mView; field in WifiConfigController
229 mView = view; in WifiConfigController()
244 mView = view; in WifiConfigController()
276 mSsidScanButton = (ImageButton) mView.findViewById(R.id.ssid_scanner_button); in initWifiConfigController()
277 mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); in initWifiConfigController()
279 mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); in initWifiConfigController()
281 mSharedCheckBox = (CheckBox) mView.findViewById(R.id.shared); in initWifiConfigController()
282 mMeteredSettingsSpinner = mView.findViewById(R.id.metered_settings); in initWifiConfigController()
283 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in initWifiConfigController()
284 mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings); in initWifiConfigController()
[all …]
DWifiConfigController2.java104 private final View mView; field in WifiConfigController2
231 mView = view; in WifiConfigController2()
245 mView = view; in WifiConfigController2()
280 mSsidScanButton = (ImageButton) mView.findViewById(R.id.ssid_scanner_button); in initWifiConfigController2()
281 mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); in initWifiConfigController2()
283 mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); in initWifiConfigController2()
285 mSharedCheckBox = (CheckBox) mView.findViewById(R.id.shared); in initWifiConfigController2()
286 mMeteredSettingsSpinner = mView.findViewById(R.id.metered_settings); in initWifiConfigController2()
287 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in initWifiConfigController2()
288 mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings); in initWifiConfigController2()
[all …]
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java71 private View mView; field in ConfigDialog
108 mView = getLayoutInflater().inflate(R.layout.vpn_dialog, null); in onCreate()
109 setView(mView); in onCreate()
114 mName = (TextView) mView.findViewById(R.id.name); in onCreate()
115 mType = (Spinner) mView.findViewById(R.id.type); in onCreate()
116 mServer = (TextView) mView.findViewById(R.id.server); in onCreate()
117 mUsername = (TextView) mView.findViewById(R.id.username); in onCreate()
118 mPassword = (TextView) mView.findViewById(R.id.password); in onCreate()
119 mSearchDomains = (TextView) mView.findViewById(R.id.search_domains); in onCreate()
120 mDnsServers = (TextView) mView.findViewById(R.id.dns_servers); in onCreate()
[all …]
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DHomeAudioCardPresenterTest.java52 private HomeCardInterface.View mView; field in HomeAudioCardPresenterTest
64 mPresenter.setView(mView); in setUp()
72 verify(mView).updateHeaderView(CARD_HEADER); in onModelUpdated_updatesFragment()
73 verify(mView).updateContentView(CARD_CONTENT); in onModelUpdated_updatesFragment()
81 reset(mView); in onModelUpdated_nullDifferentModel_doesNotUpdate()
86 verify(mView, never()).hideCard(); in onModelUpdated_nullDifferentModel_doesNotUpdate()
87 verify(mView, never()).updateHeaderView(any()); in onModelUpdated_nullDifferentModel_doesNotUpdate()
88 verify(mView, never()).updateContentView(any()); in onModelUpdated_nullDifferentModel_doesNotUpdate()
108 verify(mView).updateHeaderView(callModelHeader); in onModelUpdated_activePhoneCall_doesNotUpdateFragment()
109 verify(mView).updateContentView(callModelContent); in onModelUpdated_activePhoneCall_doesNotUpdateFragment()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBaseBluetoothDialogPreferenceTest.java62 private View mView; field in BaseBluetoothDialogPreferenceTest
91 when(mView.findViewById(mPreference.getRadioButtonGroupId())).thenReturn(mRadioGroup); in setup()
99 mPreference.onBindDialogView(mView); in onBindDialogView_checkRadioButtonsSelection()
106 when(mView.findViewById(ID1)).thenReturn(mRadioButton1); in onBindDialogView_checkRadioButtonsText()
107 when(mView.findViewById(ID2)).thenReturn(mRadioButton2); in onBindDialogView_checkRadioButtonsText()
108 when(mView.findViewById(TEXT_VIEW_ID)).thenReturn(mTextView); in onBindDialogView_checkRadioButtonsText()
112 mPreference.onBindDialogView(mView); in onBindDialogView_checkRadioButtonsText()
120 when(mView.findViewById(ID1)).thenReturn(mRadioButton1); in onBindDialogView_checkRadioButtonsState()
121 when(mView.findViewById(ID2)).thenReturn(mRadioButton2); in onBindDialogView_checkRadioButtonsState()
122 when(mView.findViewById(TEXT_VIEW_ID)).thenReturn(mTextView); in onBindDialogView_checkRadioButtonsState()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DCheckLongPressHelper.java34 private final View mView; field in CheckLongPressHelper
50 mView = v; in CheckLongPressHelper()
52 mSlop = ViewConfiguration.get(mView.getContext()).getScaledTouchSlop(); in CheckLongPressHelper()
71 final Handler handler = mView.getHandler(); in onTouchEvent()
80 mView.getRootView().dispatchTouchEvent(actionUpEvent); in onTouchEvent()
99 || !Utilities.pointInView(mView, ev.getX(), ev.getY(), mSlop)) { in onTouchEvent()
122 mView.postDelayed(mPendingCheckForLongPress, in postCheckForLongPress()
143 if ((mView.getParent() != null) in triggerLongPress()
144 && mView.hasWindowFocus() in triggerLongPress()
145 && (!mView.isPressed() || mListener != null) in triggerLongPress()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DDragAndDropAccessibilityDelegate.java48 protected final CellLayout mView; field in DragAndDropAccessibilityDelegate
55 mView = forView; in DragAndDropAccessibilityDelegate()
56 mContext = mView.getContext(); in DragAndDropAccessibilityDelegate()
64 if (x < 0 || y < 0 || x > mView.getMeasuredWidth() || y > mView.getMeasuredHeight()) { in getVirtualViewAt()
67 mView.pointToCellExact((int) x, (int) y, mTempCords); in getVirtualViewAt()
70 int id = mTempCords[0] + mTempCords[1] * mView.getCountX(); in getVirtualViewAt()
84 int nCells = mView.getCountX() * mView.getCountY(); in getVisibleVirtualViews()
97 mDelegate.handleAccessibleDrop(mView, getItemBounds(viewId), confirmation); in onPerformActionForVirtualView()
131 float scale = mDragLayer.getDescendantCoordRelativeToSelf(mView, mTempCords); in onPopulateNodeForVirtualView()
152 return mView; in getHost()
[all …]
DWorkspaceAccessibilityHelper.java46 int mCountX = mView.getCountX(); in intersectsValidDropTarget()
47 int mCountY = mView.getCountY(); in intersectsValidDropTarget()
53 if (dragInfo.dragType == DragType.WIDGET && !mView.acceptsWidget()) { in intersectsValidDropTarget()
79 if (i >= mCountX || j >= mCountY || mView.isOccupied(i, j)) { in intersectsValidDropTarget()
93 View child = mView.getChildAt(x, y); in intersectsValidDropTarget()
111 int x = id % mView.getCountX(); in getConfirmationForIconDrop()
112 int y = id / mView.getCountX(); in getConfirmationForIconDrop()
115 View child = mView.getChildAt(x, y); in getConfirmationForIconDrop()
131 int x = id % mView.getCountX(); in getLocationDescriptionForIconDrop()
132 int y = id / mView.getCountX(); in getLocationDescriptionForIconDrop()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPermissionActivity.java52 private View mView; field in BluetoothPermissionActivity
125 p.mView = createConnectionDialogView(); in showDialog()
128 p.mView = createPhonebookDialogView(); in showDialog()
131 p.mView = createMapDialogView(); in showDialog()
134 p.mView = createSapDialogView(); in showDialog()
163 mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null); in createConnectionDialogView()
164 messageView = (TextView)mView.findViewById(R.id.message); in createConnectionDialogView()
167 return mView; in createConnectionDialogView()
172 mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null); in createPhonebookDialogView()
173 messageView = (TextView)mView.findViewById(R.id.message); in createPhonebookDialogView()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java84 private View mView = null; field in BluetoothOppTransferActivity
243 mView = getLayoutInflater().inflate(R.layout.file_transfer, null); in createView()
245 mProgressTransfer = (ProgressBar) mView.findViewById(R.id.progress_transfer); in createView()
246 mPercentView = (TextView) mView.findViewById(R.id.progress_percent); in createView()
254 return mView; in createView()
265 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent()
268 mLine2View = (TextView) mView.findViewById(R.id.line2_view); in customizeViewContent()
271 mLine3View = (TextView) mView.findViewById(R.id.line3_view); in customizeViewContent()
275 mLine5View = (TextView) mView.findViewById(R.id.line5_view); in customizeViewContent()
284 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DTouchTargetEnforcerTest.java51 private View mView; field in TouchTargetEnforcerTest
60 mView = new View(getTargetContext()); in setUp()
95 mEnforcer.enforce(mView, mViewAncestor); in assertExpansionNeeded()
96 mView.getViewTreeObserver().dispatchOnGlobalLayout(); // force try register Touch Delegate in assertExpansionNeeded()
115 assertThat(mView.getWidth(), greaterThanOrEqualTo(mEdgeValue)); in expansionNotNeeded()
116 assertThat(mView.getHeight(), greaterThanOrEqualTo(mEdgeValue)); in expansionNotNeeded()
119 mEnforcer.enforce(mView, mViewAncestor); in expansionNotNeeded()
120 mView.getViewTreeObserver().dispatchOnGlobalLayout(); // force UI queue to add a Runnable in expansionNotNeeded()
146 mView.setLeft(offset); in setViewDimen()
147 mView.setRight(offset + width); in setViewDimen()
[all …]
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/assistive/
DAssistiveCardPresenterTest.java51 private HomeCardInterface.View mView; field in AssistiveCardPresenterTest
63 mPresenter.setView(mView); in setUp()
71 verify(mView).updateHeaderView(CARD_HEADER); in onModelUpdated_updatesFragment()
72 verify(mView).updateContentView(CARD_CONTENT); in onModelUpdated_updatesFragment()
80 reset(mView); in onModelUpdated_nullDifferentModel_doesNotUpdate()
85 verify(mView, never()).hideCard(); in onModelUpdated_nullDifferentModel_doesNotUpdate()
86 verify(mView, never()).updateHeaderView(any()); in onModelUpdated_nullDifferentModel_doesNotUpdate()
87 verify(mView, never()).updateContentView(any()); in onModelUpdated_nullDifferentModel_doesNotUpdate()
95 reset(mView); in onModelUpdated_nullSameModel_updatesFragment()
100 verify(mView).hideCard(); in onModelUpdated_nullSameModel_updatesFragment()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DHeadsUpNotificationOnTouchListener.java50 private final View mView; field in HeadsUpNotificationOnTouchListener
69 mView = view; in HeadsUpNotificationOnTouchListener()
77 int viewWidth = mView.getWidth(); in onTouch()
114 mView.animate() in onTouch()
120 mView.setAlpha(1f); in onTouch()
121 mView.setTranslationX(0); in onTouch()
150 mView.getParent().requestDisallowInterceptTouchEvent(true); in onTouch()
157 mView.onTouchEvent(cancelEvent); in onTouch()
163 mView.setTranslationX(deltaX - mSwipingSlop); in onTouch()
167 mView.setAlpha(Math.max(0f, Math.min(1f, in onTouch()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DOnScreenHint.java47 View mView; field in OnScreenHint
138 if (mView != mNextView) { in handleShow()
141 mView = mNextView; in handleShow()
142 if (mView.getParent() != null) { in handleShow()
143 mWM.removeView(mView); in handleShow()
146 mWM.addView(mView, mParams); in handleShow()
151 if (mView != null) { in handleHide()
155 if (mView.getParent() != null) { in handleHide()
156 mWM.removeView(mView); in handleHide()
158 mView = null; in handleHide()

12345