/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 50 protected final View mView; field in DragPreviewProvider 65 mView = view; in DragPreviewProvider() 69 if (mView instanceof BubbleTextView) { in DragPreviewProvider() 70 Drawable d = ((BubbleTextView) mView).getIcon(); in DragPreviewProvider() 85 if (mView instanceof BubbleTextView) { in drawDragView() 86 Drawable d = ((BubbleTextView) mView).getIcon(); in drawDragView() 93 mView.getDrawingRect(clipRect); in drawDragView() 96 if (mView instanceof FolderIcon) { in drawDragView() 99 if (((FolderIcon) mView).getTextVisible()) { in drawDragView() 100 ((FolderIcon) mView).setTextVisible(false); in drawDragView() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiConfigControllerTest.java | 67 private View mView; field in WifiConfigControllerTest 89 mView = LayoutInflater.from(mContext).inflate(R.layout.wifi_dialog, null); in setUp() 90 final Spinner ipSettingsSpinner = mView.findViewById(R.id.ip_settings); in setUp() 91 mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings); in setUp() 94 mController = new TestWifiConfigController(mConfigUiBase, mView, mAccessPoint, in setUp() 100 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 102 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 107 assertThat(mView.findViewById(R.id.ssid_too_long_warning).getVisibility()) in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 113 mController = new TestWifiConfigController(mConfigUiBase, mView, null /* accessPoint */, in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() 116 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiConfigController.java | 91 private final View mView; field in WifiConfigController 191 mView = view; in WifiConfigController() 205 mView = view; in WifiConfigController() 246 mSsidScanButton = (ImageButton) mView.findViewById(R.id.ssid_scanner_button); in initWifiConfigController() 247 mPasswordScanButton = (ImageButton) mView.findViewById(R.id.password_scanner_button); in initWifiConfigController() 248 mDialogContainer = mView.findViewById(R.id.dialog_scrollview); in initWifiConfigController() 249 mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); in initWifiConfigController() 251 mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); in initWifiConfigController() 253 mSharedCheckBox = (CheckBox) mView.findViewById(R.id.shared); in initWifiConfigController() 254 mMeteredSettingsSpinner = mView.findViewById(R.id.metered_settings); in initWifiConfigController() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 90 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/vpn2/ |
D | ConfigDialog.java | 62 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | ConfigDialog.java | 62 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/ |
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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferActivity.java | 84 private View mView = null; field in BluetoothOppTransferActivity 245 mPara.mView = createView(); in setUpDialog() 251 mView = getLayoutInflater().inflate(R.layout.file_transfer, null); in createView() 253 mProgressTransfer = (ProgressBar) mView.findViewById(R.id.progress_transfer); in createView() 254 mPercentView = (TextView) mView.findViewById(R.id.progress_percent); in createView() 262 return mView; in createView() 273 mLine1View = (TextView) mView.findViewById(R.id.line1_view); in customizeViewContent() 276 mLine2View = (TextView) mView.findViewById(R.id.line2_view); in customizeViewContent() 279 mLine3View = (TextView) mView.findViewById(R.id.line3_view); in customizeViewContent() 283 mLine5View = (TextView) mView.findViewById(R.id.line5_view); in customizeViewContent() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothPermissionActivity.java | 48 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/ |
D | BluetoothPermissionActivity.java | 48 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/ |
D | DragAndDropAccessibilityDelegate.java | 44 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 …]
|
D | WorkspaceAccessibilityHelper.java | 54 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/ |
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/Launcher3/src/com/android/launcher3/ |
D | CheckLongPressHelper.java | 28 @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/ |
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/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/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/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/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()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutDragPreviewProvider.java | 43 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/CertInstaller/src/com/android/certinstaller/ |
D | CertInstaller.java | 71 private final ViewHelper mView = new ViewHelper(); field in CertInstaller 308 mView.setText(R.id.credential_password, ""); in onExtractionDone() 309 mView.showError(R.string.password_error); in onExtractionDone() 315 mView.setView(view); in createPkcs12PasswordDialog() 316 if (mView.getHasEmptyError()) { in createPkcs12PasswordDialog() 317 mView.showError(R.string.password_empty_error); in createPkcs12PasswordDialog() 318 mView.setHasEmptyError(false); in createPkcs12PasswordDialog() 329 String password = mView.getText(R.id.credential_password); in createPkcs12PasswordDialog() 342 mView.setView(view); in createNameCredentialDialog() 343 if (mView.getHasEmptyError()) { in createNameCredentialDialog() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | FocusManagerTest.java | 43 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/ |
D | ContactsUnavailableFragment.java | 47 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/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | Editor.java | 50 protected View mView; field in Editor 151 if (mView == null) { in unpack() 152 mView = mFrameLayout.findViewById(viewid); in unpack() 153 if (mView == null) { in unpack() 156 mView = inflater.inflate(layoutid, mFrameLayout, false); in unpack() 157 mFrameLayout.addView(mView, mView.getLayoutParams()); in unpack() 160 mImageShow = findImageShow(mView); in unpack() 184 return mView; in getTopLevelView() 192 mView.setVisibility(visible); in setVisibility()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | HardwareLayerAnimatorListenerAdapter.java | 28 private final View mView; field in HardwareLayerAnimatorListenerAdapter 32 mView = view; in HardwareLayerAnimatorListenerAdapter() 37 if (mView.hasOverlappingRendering() && mView.getLayerType() == View.LAYER_TYPE_NONE) { in onAnimationStart() 39 mView.setLayerType(View.LAYER_TYPE_HARDWARE, null); in onAnimationStart() 47 mView.setLayerType(View.LAYER_TYPE_NONE, null); in onAnimationEnd()
|