/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiConfigController2Test.java | 89 private View mView; field in WifiConfigController2Test 132 mView = LayoutInflater.from(mContext).inflate(R.layout.wifi_dialog, null); in setUp() 133 final Spinner ipSettingsSpinner = mView.findViewById(R.id.ip_settings); in setUp() 134 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in setUp() 135 mEapCaCertSpinner = mView.findViewById(R.id.ca_cert); in setUp() 136 mEapUserCertSpinner = mView.findViewById(R.id.user_cert); in setUp() 144 mController = new TestWifiConfigController2(mConfigUiBase, mView, mWifiEntry, in setUp() 150 mController = new TestWifiConfigController2(mConfigUiBase, mView, null /* wifiEntry */, in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 152 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 157 assertThat(mView.findViewById(R.id.ssid_too_long_warning).getVisibility()) in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() [all …]
|
D | WifiConfigControllerTest.java | 77 private View mView; field in WifiConfigControllerTest 100 mView = LayoutInflater.from(mContext).inflate(R.layout.wifi_dialog, null); in setUp() 101 final Spinner ipSettingsSpinner = mView.findViewById(R.id.ip_settings); in setUp() 102 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in setUp() 106 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in setUp() 112 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 114 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 119 assertThat(mView.findViewById(R.id.ssid_too_long_warning).getVisibility()) in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 125 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() 128 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 53 protected final View mView; field in DragPreviewProvider 68 mView = view; in DragPreviewProvider() 81 if (mView instanceof DraggableView) { in drawDragView() 82 DraggableView dv = (DraggableView) mView; in drawDragView() 87 mView.draw(destCanvas); in drawDragView() 98 if (mView instanceof LauncherAppWidgetHostView) { in createDrawable() 105 float scale = mView.getScaleX(); in createDrawable() 106 if (mView instanceof DraggableView) { in createDrawable() 107 ((DraggableView) mView).getSourceVisualDragBounds(mTempRect); in createDrawable() 111 width = mView.getWidth(); in createDrawable() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | FullScreenAnimation.java | 51 private final View mView; field in FullScreenAnimation 103 mView = view; in FullScreenAnimation() 140 final TypedArray attributes = mView.getContext().getTheme().obtainStyledAttributes( in getAttributeDimension() 160 mView.findViewById(viewId).setLayoutParams(layoutParams); in setViewMargins() 194 + mView.getResources().getDimension(R.dimen.bottom_actions_height) in placeViews() 195 + mView.getResources().getDimension(R.dimen.separated_tabs_height), in placeViews() 204 + mView.getResources().getDimension(R.dimen.bottom_actions_height), in placeViews() 217 mView.findViewById(R.id.bottom_actionbar).setTranslationY(targetTranslation); in ensureBottomActionBarIsCorrectlyLocated() 234 mView.findViewById(R.id.toolbar).setLayoutParams(layoutParams); in ensureToolbarIsCorrectlyLocated() 243 TextView textView = mView.findViewById(R.id.custom_toolbar_title); in ensureToolbarIsCorrectlyColored() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | BasePagerViewHolder.java | 33 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/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController2.java | 103 private final View mView; field in WifiConfigController2 228 mView = view; in WifiConfigController2() 242 mView = view; in WifiConfigController2() 275 mSsidScanButton = (ImageButton) mView.findViewById(R.id.ssid_scanner_button); in initWifiConfigController2() 276 mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); in initWifiConfigController2() 278 mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); in initWifiConfigController2() 280 mSharedCheckBox = (CheckBox) mView.findViewById(R.id.shared); in initWifiConfigController2() 281 mMeteredSettingsSpinner = mView.findViewById(R.id.metered_settings); in initWifiConfigController2() 282 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in initWifiConfigController2() 283 mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings); in initWifiConfigController2() [all …]
|
D | WifiConfigController.java | 104 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 …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ConfigDialog.java | 72 private View mView; field in ConfigDialog 109 mView = getLayoutInflater().inflate(R.layout.vpn_dialog, null); in onCreate() 110 setView(mView); in onCreate() 115 mName = (TextView) mView.findViewById(R.id.name); in onCreate() 116 mType = (Spinner) mView.findViewById(R.id.type); in onCreate() 117 mServer = (TextView) mView.findViewById(R.id.server); in onCreate() 118 mUsername = (TextView) mView.findViewById(R.id.username); in onCreate() 119 mPassword = (TextView) mView.findViewById(R.id.password); in onCreate() 120 mSearchDomains = (TextView) mView.findViewById(R.id.search_domains); in onCreate() 121 mDnsServers = (TextView) mView.findViewById(R.id.dns_servers); in onCreate() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/ |
D | MenuItemRenderer.java | 46 private View mView; field in MenuItemRenderer 85 mView = view; in createView() 88 requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_icon_container); in createView() 89 mIconView = requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_icon); in createView() 90 mSwitch = requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_switch); in createView() 91 mTextView = requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_text); in createView() 93 requireViewByRefId(mView, R.id.car_ui_toolbar_menu_item_text_with_icon); in createView() 94 mIndividualClickListeners = mView.getContext().getResources() in createView() 98 callback.accept(mView); in createView() 103 if (mView == null) { in updateView() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/ |
D | BaseBluetoothDialogPreferenceTest.java | 62 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/accessibility/ |
D | DragAndDropAccessibilityDelegate.java | 48 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 …]
|
D | WorkspaceAccessibilityHelper.java | 46 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/Launcher3/src/com/android/launcher3/ |
D | CheckLongPressHelper.java | 30 private final View mView; field in CheckLongPressHelper 45 mView = v; in CheckLongPressHelper() 47 mSlop = ViewConfiguration.get(mView.getContext()).getScaledTouchSlop(); in CheckLongPressHelper() 73 if (!Utilities.pointInView(mView, ev.getX(), ev.getY(), mSlop)) { in onTouchEvent() 96 mView.postDelayed(mPendingCheckForLongPress, in postCheckForLongPress() 116 if ((mView.getParent() != null) in triggerLongPress() 117 && mView.hasWindowFocus() in triggerLongPress() 118 && (!mView.isPressed() || mListener != null) in triggerLongPress() 122 handled = mListener.onLongClick(mView); in triggerLongPress() 124 handled = mView.performLongClick(); in triggerLongPress() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferActivity.java | 82 private View mView = null; field in BluetoothOppTransferActivity 240 mView = getLayoutInflater().inflate(R.layout.file_transfer, null); in createView() 242 mProgressTransfer = (ProgressBar) mView.findViewById(R.id.progress_transfer); in createView() 243 mPercentView = (TextView) mView.findViewById(R.id.progress_percent); in createView() 251 return mView; in createView() 262 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent() 265 mLine2View = (TextView) mView.findViewById(R.id.line2_view); in customizeViewContent() 268 mLine3View = (TextView) mView.findViewById(R.id.line3_view); in customizeViewContent() 272 mLine5View = (TextView) mView.findViewById(R.id.line5_view); in customizeViewContent() 281 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPermissionActivity.java | 52 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/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | TouchTargetEnforcerTest.java | 51 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/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 157 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/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/ |
D | HomeAudioCardPresenterTest.java | 53 private HomeCardInterface.View mView; field in HomeAudioCardPresenterTest 65 mPresenter.setView(mView); in setUp() 73 verify(mView).updateHeaderView(CARD_HEADER); in onModelUpdated_updatesFragment() 74 verify(mView).updateContentView(CARD_CONTENT); in onModelUpdated_updatesFragment() 82 reset(mView); in onModelUpdated_nullDifferentModel_doesNotUpdate() 87 verify(mView, never()).hideCard(); in onModelUpdated_nullDifferentModel_doesNotUpdate() 88 verify(mView, never()).updateHeaderView(any()); in onModelUpdated_nullDifferentModel_doesNotUpdate() 89 verify(mView, never()).updateContentView(any()); in onModelUpdated_nullDifferentModel_doesNotUpdate() 97 reset(mView); in onModelUpdated_nullSameModel_updatesFragment() 102 verify(mView).hideCard(); in onModelUpdated_nullSameModel_updatesFragment() [all …]
|
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/assistive/ |
D | AssistiveCardPresenterTest.java | 51 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/ |
D | HeadsUpNotificationOnTouchListener.java | 50 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/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | NotificationClickHandlerFactoryTest.java | 92 private View mView; field in NotificationClickHandlerFactoryTest 143 when(mView.getContext()).thenReturn(mContext); in setUp() 154 mNotificationClickHandlerFactory.getClickHandler(mAlertEntry1).onClick(mView); in onClickClickHandler_noIntent_returnsImmediately() 169 mNotificationClickHandlerFactory.getClickHandler(mAlertEntry1).onClick(mView); in onClickClickHandler_intentExists_callsBarServiceNotificationClicked() 183 mNotificationClickHandlerFactory.getClickHandler(mAlertEntry1).onClick(mView); in onClickClickHandler_intentExists_invokesRegisteredClickListeners() 194 mNotificationClickHandlerFactory.getClickHandler(mAlertEntry1).onClick(mView); in onClickClickHandler_shouldAutoCancel_callsBarServiceOnNotificationClear() 219 0).onClick(mView); in onClickActionClickHandler_isReplyAction_sendsPendingIntent() 236 0).onClick(mView); in onClickActionClickHandler_isReplyAction_doesNotInvokeRegisteredClickListeners() 256 0).onClick(mView); in onClickActionClickHandler_notCarCompatibleMessage_sendsPendingIntent() 281 0).onClick(mView); in onClickActionClickHandler_notCarCompatibleMessage_invokesRegisteredListeners() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutDragPreviewProvider.java | 48 int size = Launcher.getLauncher(mView.getContext()).getDeviceProfile().iconSizePx; in createDrawable() 60 Drawable d = mView.getBackground(); in createDragBitmapLegacy() 62 int size = Launcher.getLauncher(mView.getContext()).getDeviceProfile().iconSizePx; in createDragBitmapLegacy() 76 Drawable d = mView.getBackground(); in drawDragViewOnBackground() 87 Launcher launcher = Launcher.getLauncher(mView.getContext()); in getScaleAndPosition() 88 int iconSize = getDrawableBounds(mView.getBackground()).width(); in getScaleAndPosition() 89 float scale = launcher.getDragLayer().getLocationInDragLayer(mView, outPos); in getScaleAndPosition() 91 int iconLeft = mView.getPaddingStart(); in getScaleAndPosition() 92 if (Utilities.isRtl(mView.getResources())) { in getScaleAndPosition() 93 iconLeft = mView.getWidth() - iconSize - iconLeft; in getScaleAndPosition() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | OnScreenHint.java | 47 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/Settings/tests/robotests/src/com/android/settings/widget/ |
D | ValidatedEditTextPreferenceTest.java | 48 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/LegacyCamera/src/com/android/camera/ |
D | OnScreenHint.java | 49 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()
|