Home
last modified time | relevance | path

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

12345

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java51 protected final View mView; field in DragPreviewProvider
66 mView = view; in DragPreviewProvider()
70 if (mView instanceof BubbleTextView) { in DragPreviewProvider()
71 Drawable d = ((BubbleTextView) mView).getIcon(); in DragPreviewProvider()
86 if (mView instanceof BubbleTextView) { in drawDragView()
87 Drawable d = ((BubbleTextView) mView).getIcon(); in drawDragView()
97 mView.getDrawingRect(clipRect); in drawDragView()
100 if (mView instanceof FolderIcon) { in drawDragView()
103 if (((FolderIcon) mView).getTextVisible()) { in drawDragView()
104 ((FolderIcon) mView).setTextVisible(false); in drawDragView()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java70 private View mView; field in WifiConfigControllerTest
92 mView = LayoutInflater.from(mContext).inflate(R.layout.wifi_dialog, null); in setUp()
93 final Spinner ipSettingsSpinner = mView.findViewById(R.id.ip_settings); in setUp()
94 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in setUp()
97 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in setUp()
103 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
105 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
110 assertThat(mView.findViewById(R.id.ssid_too_long_warning).getVisibility()) in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
116 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
119 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiConfigController.java90 private final View mView; field in WifiConfigController
190 mView = view; in WifiConfigController()
204 mView = view; in WifiConfigController()
245 mSsidScanButton = (ImageButton) mView.findViewById(R.id.ssid_scanner_button); in initWifiConfigController()
246 mPasswordScanButton = (ImageButton) mView.findViewById(R.id.password_scanner_button); in initWifiConfigController()
247 mDialogContainer = mView.findViewById(R.id.dialog_scrollview); in initWifiConfigController()
248 mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); in initWifiConfigController()
250 mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); in initWifiConfigController()
252 mSharedCheckBox = (CheckBox) mView.findViewById(R.id.shared); in initWifiConfigController()
253 mMeteredSettingsSpinner = mView.findViewById(R.id.metered_settings); in initWifiConfigController()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java91 private final View mView; field in WifiConfigController
205 mView = view; in WifiConfigController()
219 mView = view; in WifiConfigController()
260 mSsidScanButton = (ImageButton) mView.findViewById(R.id.ssid_scanner_button); in initWifiConfigController()
261 mPasswordScanButton = (ImageButton) mView.findViewById(R.id.password_scanner_button); in initWifiConfigController()
262 mDialogContainer = mView.findViewById(R.id.dialog_scrollview); in initWifiConfigController()
263 mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); in initWifiConfigController()
265 mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); in initWifiConfigController()
267 mSharedCheckBox = (CheckBox) mView.findViewById(R.id.shared); in initWifiConfigController()
268 mMeteredSettingsSpinner = mView.findViewById(R.id.metered_settings); in initWifiConfigController()
[all …]
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java68 private View mView; field in ConfigDialog
105 mView = getLayoutInflater().inflate(R.layout.vpn_dialog, null); in onCreate()
106 setView(mView); in onCreate()
111 mName = (TextView) mView.findViewById(R.id.name); in onCreate()
112 mType = (Spinner) mView.findViewById(R.id.type); in onCreate()
113 mServer = (TextView) mView.findViewById(R.id.server); in onCreate()
114 mUsername = (TextView) mView.findViewById(R.id.username); in onCreate()
115 mPassword = (TextView) mView.findViewById(R.id.password); in onCreate()
116 mSearchDomains = (TextView) mView.findViewById(R.id.search_domains); in onCreate()
117 mDnsServers = (TextView) mView.findViewById(R.id.dns_servers); in onCreate()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfigDialog.java62 private View mView; field in ConfigDialog
99 mView = getLayoutInflater().inflate(R.layout.vpn_dialog, null); in onCreate()
100 setView(mView); in onCreate()
105 mName = (TextView) mView.findViewById(R.id.name); in onCreate()
106 mType = (Spinner) mView.findViewById(R.id.type); in onCreate()
107 mServer = (TextView) mView.findViewById(R.id.server); in onCreate()
108 mUsername = (TextView) mView.findViewById(R.id.username); in onCreate()
109 mPassword = (TextView) mView.findViewById(R.id.password); in onCreate()
110 mSearchDomains = (TextView) mView.findViewById(R.id.search_domains); in onCreate()
111 mDnsServers = (TextView) mView.findViewById(R.id.dns_servers); in onCreate()
[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/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java80 private View mView = null; field in BluetoothOppTransferActivity
236 mView = getLayoutInflater().inflate(R.layout.file_transfer, null); in createView()
238 mProgressTransfer = (ProgressBar) mView.findViewById(R.id.progress_transfer); in createView()
239 mPercentView = (TextView) mView.findViewById(R.id.progress_percent); in createView()
247 return mView; in createView()
258 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent()
261 mLine2View = (TextView) mView.findViewById(R.id.line2_view); in customizeViewContent()
264 mLine3View = (TextView) mView.findViewById(R.id.line3_view); in customizeViewContent()
268 mLine5View = (TextView) mView.findViewById(R.id.line5_view); in customizeViewContent()
277 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPermissionActivity.java48 private View mView; field in BluetoothPermissionActivity
124 p.mView = createConnectionDialogView(); in showDialog()
127 p.mView = createPhonebookDialogView(); in showDialog()
130 p.mView = createMapDialogView(); in showDialog()
133 p.mView = createSapDialogView(); in showDialog()
157 mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null); in createConnectionDialogView()
158 messageView = (TextView)mView.findViewById(R.id.message); in createConnectionDialogView()
161 return mView; in createConnectionDialogView()
166 mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null); in createPhonebookDialogView()
167 messageView = (TextView)mView.findViewById(R.id.message); in createPhonebookDialogView()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPermissionActivity.java48 private View mView; field in BluetoothPermissionActivity
124 p.mView = createConnectionDialogView(); in showDialog()
127 p.mView = createPhonebookDialogView(); in showDialog()
130 p.mView = createMapDialogView(); in showDialog()
133 p.mView = createSapDialogView(); in showDialog()
157 mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null); in createConnectionDialogView()
158 messageView = (TextView)mView.findViewById(R.id.message); in createConnectionDialogView()
161 return mView; in createConnectionDialogView()
166 mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null); in createPhonebookDialogView()
167 messageView = (TextView)mView.findViewById(R.id.message); in createPhonebookDialogView()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DDragAndDropAccessibilityDelegate.java44 protected final CellLayout mView; field in DragAndDropAccessibilityDelegate
52 mView = forView; in DragAndDropAccessibilityDelegate()
53 mContext = mView.getContext(); in DragAndDropAccessibilityDelegate()
59 if (x < 0 || y < 0 || x > mView.getMeasuredWidth() || y > mView.getMeasuredHeight()) { in getVirtualViewAt()
62 mView.pointToCellExact((int) x, (int) y, sTempArray); in getVirtualViewAt()
65 int id = sTempArray[0] + sTempArray[1] * mView.getCountX(); in getVirtualViewAt()
79 int nCells = mView.getCountX() * mView.getCountY(); in getVisibleVirtualViews()
92 mDelegate.handleAccessibleDrop(mView, getItemBounds(viewId), confirmation); in onPerformActionForVirtualView()
131 int cellX = id % mView.getCountX(); in getItemBounds()
132 int cellY = id / mView.getCountX(); in getItemBounds()
[all …]
DWorkspaceAccessibilityHelper.java54 int mCountX = mView.getCountX(); in intersectsValidDropTarget()
55 int mCountY = mView.getCountY(); in intersectsValidDropTarget()
61 if (dragInfo.dragType == DragType.WIDGET && !mView.acceptsWidget()) { in intersectsValidDropTarget()
87 if (i >= mCountX || j >= mCountY || mView.isOccupied(i, j)) { in intersectsValidDropTarget()
101 View child = mView.getChildAt(x, y); in intersectsValidDropTarget()
119 int x = id % mView.getCountX(); in getConfirmationForIconDrop()
120 int y = id / mView.getCountX(); in getConfirmationForIconDrop()
123 View child = mView.getChildAt(x, y); in getConfirmationForIconDrop()
145 DragLayer dragLayer = Launcher.getLauncher(mView.getContext()).getDragLayer(); in onPopulateNodeForVirtualView()
147 float scale = dragLayer.getDescendantCoordRelativeToSelf(mView, mTempCords); in onPopulateNodeForVirtualView()
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java157 private final View mView; field in FilmstripView.ViewItem
181 mView = v; in ViewItem()
190 mView.setPivotX(0f); in ViewItem()
191 mView.setPivotY(0f); in ViewItem()
209 mData.renderTiny(mView); in renderTiny()
218 mData.renderThumbnail(mView); in renderThumbnail()
227 mData.renderFullRes(mView); in renderFullRes()
234 mView.setAlpha(1.0f); in lockAtFullOpacity()
270 return mView.getTranslationY() / mFilmstrip.mScale; in getTranslationY()
275 return mView.getTranslationX() / mFilmstrip.mScale; in getTranslationX()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DMenuItemRenderer.java62 private View mView; field in MenuItemRenderer
99 mView = view; in createView()
102 requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_icon_container); in createView()
103 mIconView = requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_icon); in createView()
104 mSwitch = requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_switch); in createView()
105 mTextView = requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_text); in createView()
107 requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_text_with_icon); in createView()
109 callback.accept(mView); in createView()
114 if (mView == null) { in updateView()
118 mView.setId(mMenuItem.getId()); in updateView()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DCheckLongPressHelper.java28 @Thunk View mView; field in CheckLongPressHelper
36 if ((mView.getParent() != null) && mView.hasWindowFocus() in run()
40 handled = mListener.onLongClick(mView); in run()
42 handled = mView.performLongClick(); in run()
45 mView.setPressed(false); in run()
53 mView = v; in CheckLongPressHelper()
57 mView = v; in CheckLongPressHelper()
74 mView.postDelayed(mPendingCheckForLongPress, in postCheckForLongPress()
81 mView.removeCallbacks(mPendingCheckForLongPress); in cancelLongPress()
/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/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/Settings/tests/robotests/src/com/android/settings/widget/
DValidatedEditTextPreferenceTest.java48 private View mView; field in ValidatedEditTextPreferenceTest
66 when(mView.findViewById(android.R.id.edit)).thenReturn(null); in bindDialogView_nullEditText_shouldNotCrash()
68 mPreference.onBindDialogView(mView); in bindDialogView_nullEditText_shouldNotCrash()
76 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_emptyEditText_shouldNotSetSelection()
78 mPreference.onBindDialogView(mView); in bindDialogView_emptyEditText_shouldNotSetSelection()
89 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_nonemptyEditText_shouldSetSelection()
91 mPreference.onBindDialogView(mView); in bindDialogView_nonemptyEditText_shouldSetSelection()
100 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_hasValidator_shouldBindToEditText()
103 mPreference.onBindDialogView(mView); in bindDialogView_hasValidator_shouldBindToEditText()
111 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_isPassword_shouldSetInputType()
[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()
/packages/apps/LegacyCamera/src/com/android/camera/
DOnScreenHint.java49 View mView; field in OnScreenHint
140 if (mView != mNextView) { in handleShow()
143 mView = mNextView; in handleShow()
158 if (mView.getParent() != null) { in handleShow()
159 mWM.removeView(mView); in handleShow()
161 mWM.addView(mView, mParams); in handleShow()
166 if (mView != null) { in handleHide()
170 if (mView.getParent() != null) { in handleHide()
171 mWM.removeView(mView); in handleHide()
173 mView = null; in handleHide()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutDragPreviewProvider.java43 Drawable d = mView.getBackground(); in createDragBitmap()
46 int size = Launcher.getLauncher(mView.getContext()).getDeviceProfile().iconSizePx; in createDragBitmap()
62 Launcher launcher = Launcher.getLauncher(mView.getContext()); in getScaleAndPosition()
63 int iconSize = getDrawableBounds(mView.getBackground()).width(); in getScaleAndPosition()
64 float scale = launcher.getDragLayer().getLocationInDragLayer(mView, outPos); in getScaleAndPosition()
66 int iconLeft = mView.getPaddingStart(); in getScaleAndPosition()
67 if (Utilities.isRtl(mView.getResources())) { in getScaleAndPosition()
68 iconLeft = mView.getWidth() - iconSize - iconLeft; in getScaleAndPosition()
73 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2 in getScaleAndPosition()
/packages/apps/Settings/src/com/android/settings/development/
DAdbWirelessDialogController.java34 private final View mView; field in AdbWirelessDialogController
51 mView = view; in AdbWirelessDialogController()
57 mSixDigitCode = mView.findViewById(R.id.pairing_code); in AdbWirelessDialogController()
58 mIpAddr = mView.findViewById(R.id.ip_addr); in AdbWirelessDialogController()
64 mView.findViewById(R.id.l_pairing_six_digit).setVisibility(View.VISIBLE); in AdbWirelessDialogController()
71 mView.findViewById(R.id.l_pairing_failed).setVisibility(View.VISIBLE); in AdbWirelessDialogController()
72 mFailedMsg = (TextView) mView.findViewById(R.id.pairing_failed_label); in AdbWirelessDialogController()
78 mView.findViewById(R.id.l_qrcode_pairing_failed).setVisibility(View.VISIBLE); in AdbWirelessDialogController()
84 mView.findViewById(R.id.l_adbwirelessdialog).requestFocus(); in AdbWirelessDialogController()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DFocusManagerTest.java43 private TestRecyclerView mView; field in FocusManagerTest
50 mView = TestRecyclerView.create(ITEMS); in setUp()
52 mView.setLayoutManager(mTestGridLayoutManager); in setUp()
57 .reset(mView, new TestModel(TEST_AUTHORITY, mFeatures)); in setUp()
62 mView.assertItemViewFocused(3); in testFocus()
68 mView.setItems(mutableItems); in testPendingFocus()
71 mView.assertItemViewFocused(10); in testPendingFocus()
75 mView = TestRecyclerView.create(new ArrayList<>()); in testFocusDirectoryList_noItemsToFocus()
78 .reset(mView, new TestModel(TEST_AUTHORITY, mFeatures)); in testFocusDirectoryList_noItemsToFocus()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsUnavailableFragment.java47 private View mView; field in ContactsUnavailableFragment
60 mView = inflater.inflate(R.layout.contacts_unavailable_fragment, null); in onCreateView()
62 mImageView = (ImageView) mView.findViewById(R.id.empty_image); in onCreateView()
75 mMessageView = (TextView) mView.findViewById(R.id.message); in onCreateView()
76 mAddAccountButton = (Button) mView.findViewById(R.id.add_account_button); in onCreateView()
80 mImportContactsButton = (Button) mView.findViewById(R.id.import_contacts_button); in onCreateView()
84 mProgress = (ProgressBar) mView.findViewById(R.id.progress); in onCreateView()
87 mButtonsContainer = mView.findViewById(R.id.buttons_container); in onCreateView()
94 return mView; in onCreateView()
99 if (mView == null) { in updateStatus()
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java45 private View mView; field in CarUiRecyclerViewTest
57 mView = LayoutInflater.from(mContext) in onHeightChanged_shouldAddTheValueToInitialTopValue()
60 mCarUiRecyclerView = mView.findViewById(R.id.test_prv); in onHeightChanged_shouldAddTheValueToInitialTopValue()
77 mView = LayoutInflater.from(mContext) in setAdapter_shouldInitializeLinearLayoutManager()
80 mCarUiRecyclerView = mView.findViewById(R.id.test_prv); in setAdapter_shouldInitializeLinearLayoutManager()
88 mView = LayoutInflater.from(mContext) in setAdapter_shouldInitializeGridLayoutManager()
91 mCarUiRecyclerView = mView.findViewById(R.id.test_prv); in setAdapter_shouldInitializeGridLayoutManager()
99 mView = LayoutInflater.from(mContext) in init_shouldContainRecyclerView()
102 mCarUiRecyclerView = mView.findViewById(R.id.test_prv); in init_shouldContainRecyclerView()

12345