/cts/tests/tests/widget/src/android/widget/cts/ |
D | LinearLayoutTest.java | 105 LinearLayout parent = (LinearLayout) mActivity.findViewById(R.id.linear_empty); in testAccessBaselineAligned() local 106 parent.setBaselineAligned(true); in testAccessBaselineAligned() 107 assertTrue(parent.isBaselineAligned()); in testAccessBaselineAligned() 109 parent.setBaselineAligned(false); in testAccessBaselineAligned() 110 assertFalse(parent.isBaselineAligned()); in testAccessBaselineAligned() 113 parent = (LinearLayout) mActivity.findViewById(R.id.linear_weightsum); in testAccessBaselineAligned() 114 assertFalse(parent.isBaselineAligned()); in testAccessBaselineAligned() 117 parent = (LinearLayout) mActivity.findViewById(R.id.linear_horizontal); in testAccessBaselineAligned() 118 assertTrue(parent.isBaselineAligned()); in testAccessBaselineAligned() 122 parent = (LinearLayout) mActivity.findViewById(R.id.linear_vertical); in testAccessBaselineAligned() [all …]
|
D | ViewAnimatorTest.java | 97 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testShowNext() local 99 parent.removeView(v1); in testShowNext() 100 parent.removeView(v2); in testShowNext() 101 parent.removeView(v3); in testShowNext() 102 parent.removeView(v4); in testShowNext() 142 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChild() local 144 parent.removeView(v1); in testAccessDisplayedChild() 145 parent.removeView(v2); in testAccessDisplayedChild() 177 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChildBoundary() local 179 parent.removeView(v1); in testAccessDisplayedChildBoundary() [all …]
|
D | RemoteViewsActivityTest.java | 64 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testGood() local 66 View result = r.apply(mActivity, parent); in testGood() 90 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testDerivedClass() local 96 result = r.apply(mActivity, parent); in testDerivedClass() 119 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testWebView() local 125 result = r.apply(mActivity, parent); in testWebView()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTests.java | 94 WindowState parent = getSingleWindow(getWindowName(activityName())); in doSingleTest() local 96 t.doTest(parent, dialog); in doSingleTest() 103 doParentChildTest(TEST_MATCH_PARENT, (parent, dialog) -> { ; in testMatchParentDialog() 104 assertEquals(getParentFrameWithInsets(parent), dialog.getFrame()); in testMatchParentDialog() 113 doParentChildTest(TEST_EXPLICIT_SIZE, (parent, dialog) -> { in testExplicitSizeDefaultGravity() 114 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeDefaultGravity() 126 doParentChildTest(TEST_EXPLICIT_SIZE_TOP_LEFT_GRAVITY, (parent, dialog) -> { in testExplicitSizeTopLeftGravity() 127 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeTopLeftGravity() 139 doParentChildTest(TEST_EXPLICIT_SIZE_BOTTOM_RIGHT_GRAVITY, (parent, dialog) -> { in testExplicitSizeBottomRightGravity() 140 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeBottomRightGravity() [all …]
|
D | SurfaceControlTest.java | 111 private SurfaceControl buildDefaultSurface(SurfaceControl parent) { in buildDefaultSurface() argument 115 .setParent(parent) in buildDefaultSurface() 128 private SurfaceControl buildDefaultSurface(SurfaceControl parent, int color) { in buildDefaultSurface() argument 129 final SurfaceControl sc = buildDefaultSurface(parent); in buildDefaultSurface() 134 private SurfaceControl buildDefaultRedSurface(SurfaceControl parent) { in buildDefaultRedSurface() argument 135 return buildDefaultSurface(parent, Color.RED); in buildDefaultRedSurface() 146 public void addChildren(SurfaceControl parent) { in testShow() 147 final SurfaceControl sc = buildDefaultRedSurface(parent); in testShow() 165 public void addChildren(SurfaceControl parent) { in testHide() 166 final SurfaceControl sc = buildDefaultRedSurface(parent); in testHide() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | TileServiceVerifierActivity.java | 52 protected View inflate(ViewGroup parent) { in inflate() argument 53 return createAutoItem(parent, R.string.tiles_adding_tile); in inflate() 70 protected View inflate(ViewGroup parent) { in inflate() argument 71 return createUserPassFail(parent, R.string.tiles_not_added); in inflate() 85 protected View inflate(ViewGroup parent) { in inflate() argument 86 return createUserPassFail(parent, R.string.tiles_in_customizer); in inflate() 100 protected View inflate(ViewGroup parent) { in inflate() argument 101 return createAutoItem(parent, R.string.tiles_removing_tile); in inflate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 97 protected View inflate(ViewGroup parent) { in inflate() argument 98 return createSettingsItem(parent, R.string.cp_enable_service); in inflate() 136 protected View inflate(ViewGroup parent) { in inflate() argument 137 return createAutoItem(parent, R.string.cp_service_started); in inflate() 162 protected View inflate(ViewGroup parent) { in inflate() argument 163 return createAutoItem(parent, R.string.nls_snooze); in inflate() 198 protected View inflate(ViewGroup parent) { in inflate() argument 199 return createAutoItem(parent, R.string.nls_unsnooze); in inflate() 231 protected View inflate(ViewGroup parent) { in inflate() argument 232 return createAutoItem(parent, R.string.cp_create_rule); in inflate() [all …]
|
D | NotificationListenerVerifierActivity.java | 246 protected View inflate(ViewGroup parent) { in inflate() argument 247 return createAutoItem(parent, R.string.nls_note_received); in inflate() 279 protected View inflate(ViewGroup parent) { in inflate() argument 280 mParent = createAutoItem(parent, R.string.nls_anr); in inflate() 324 ViewGroup parent = mParent.findViewById(R.id.feedback); in test() local 325 parent.setVisibility(View.VISIBLE); in test() 330 View v = rv.apply(NotificationListenerVerifierActivity.this, parent); in test() 331 parent.addView(v); in test() 352 protected View inflate(ViewGroup parent) { in inflate() argument 353 mView = createNlsSettingsItem(parent, R.string.nls_block_channel); in inflate() [all …]
|
D | ShortcutThrottlingResetActivity.java | 111 protected View inflate(ViewGroup parent) { in inflate() argument 112 return createAutoItem(parent, R.string.shortcut_reset_bot); in inflate() 134 protected View inflate(ViewGroup parent) { in inflate() argument 135 return createAutoItem(parent, R.string.shortcut_reset_start); in inflate() 160 protected View inflate(ViewGroup parent) { in inflate() argument 161 return createAutoItem(parent, R.string.shortcut_reset_prompt_inline_reply); in inflate() 183 protected View inflate(ViewGroup parent) { in inflate() argument 184 return createAutoItem(parent, R.string.shortcut_reset_check_result); in inflate()
|
D | InteractiveVerifierActivity.java | 104 protected abstract View inflate(ViewGroup parent); in inflate() argument 105 View getView(ViewGroup parent) { in getView() argument 107 view = inflate(parent); in getView() 241 protected View createNlsSettingsItem(ViewGroup parent, int messageId) { in createNlsSettingsItem() argument 242 return createUserItem(parent, R.string.nls_start_settings, messageId); in createNlsSettingsItem() 245 protected View createRetryItem(ViewGroup parent, int messageId, Object... messageFormatArgs) { in createRetryItem() argument 246 return createUserItem(parent, R.string.attention_ready, messageId, messageFormatArgs); in createRetryItem() 249 protected View createUserItem(ViewGroup parent, int actionId, int messageId, in createUserItem() argument 251 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem() 260 protected ViewGroup createAutoItem(ViewGroup parent, int stringId) { in createAutoItem() argument [all …]
|
D | AttentionManagementVerifierActivity.java | 156 protected View inflate(ViewGroup parent) { in inflate() argument 157 return createAutoItem(parent, R.string.nls_service_stopped); in inflate() 178 protected View inflate(ViewGroup parent) { in inflate() argument 179 return createAutoItem(parent, R.string.attention_create_contacts); in inflate() 215 protected View inflate(ViewGroup parent) { in inflate() argument 216 return createAutoItem(parent, R.string.attention_delete_contacts); in inflate() 241 protected View inflate(ViewGroup parent) { in inflate() argument 242 return createAutoItem(parent, R.string.attention_all_are_filtered); in inflate() 301 protected View inflate(ViewGroup parent) { in inflate() argument 302 return createAutoItem(parent, R.string.attention_all_are_filtered); in inflate() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 185 protected View inflate(ViewGroup parent) { in inflate() argument 186 return createRetryItem(parent, R.string.ringer_mode_pass_test); in inflate() 198 protected View inflate(ViewGroup parent) { in inflate() argument 199 return createRetryItem(parent, R.string.attention_filter_all); in inflate() 220 protected View inflate(ViewGroup parent) { in inflate() argument 221 return createRetryItem(parent, R.string.attention_filter_priority_mimic_alarms_only); in inflate() 243 protected View inflate(ViewGroup parent) { in inflate() argument 244 return createRetryItem(parent, R.string.enable_sound_effects); in inflate() 273 protected View inflate(ViewGroup parent) { in inflate() argument 274 return createAutoItem(parent, R.string.test_sound_effects); in inflate() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | SensorOperation.java | 65 public abstract void execute(ISensorTestNode parent) throws Exception; in execute() argument 92 protected ISensorTestNode asTestNode(ISensorTestNode parent) { in asTestNode() argument 93 return new SensorTestNode(parent, this); in asTestNode() 100 public SensorTestNode(ISensorTestNode parent, SensorOperation operation) { in SensorTestNode() argument 101 mParent = parent; in SensorTestNode()
|
D | RepeatingSensorOperation.java | 52 public void execute(ISensorTestNode parent) throws Exception { in execute() argument 53 ISensorTestNode currentNode = asTestNode(parent); in execute() 80 public TestNode(ISensorTestNode parent, int iteration) { in TestNode() argument 81 mTestNode = asTestNode(parent); in TestNode()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TouchDelegateTestActivity.java | 66 final View parent = findViewById(R.id.layout); in onCreate() local 68 parent.getViewTreeObserver().addOnGlobalLayoutListener( in onCreate() 73 parent.getLocationOnScreen(parentLocation); in onCreate() 76 x = parentLocation[0] + parent.getWidth() / 2; in onCreate() 82 parent.setTouchDelegate(new TouchDelegate(rect, button)); in onCreate() 88 parent.setOnClickListener(v -> mParentClickCount++); in onCreate()
|
D | ViewGroupTest.java | 204 ViewGroup parent = new MockViewGroup(mContext); in testAddKeyboardNavigationClusters() local 205 parent.addView(mMockViewGroup); in testAddKeyboardNavigationClusters() 207 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 221 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 1185 MockViewGroup parent = mMockViewGroup; in testOnDescendantInvalidated() local 1187 parent.addView(child); in testOnDescendantInvalidated() 1188 grandParent.addView(parent); in testOnDescendantInvalidated() 1191 parent.isOnDescendantInvalidatedCalled = false; in testOnDescendantInvalidated() 1194 parent.invalidateChild(child, new Rect(0, 0, 1, 1)); in testOnDescendantInvalidated() 1196 assertTrue(parent.isOnDescendantInvalidatedCalled); in testOnDescendantInvalidated() [all …]
|
D | View_UsingViewsTest.java | 192 RelativeLayout parent = (RelativeLayout) mEditText.getParent(); in testSetProperties() local 193 parent.addView(v); in testSetProperties() 195 assertFalse(parent.getDrawableState().length == v.getDrawableState().length); in testSetProperties() 196 parent.removeView(v); in testSetProperties() 201 parent.addView(v); in testSetProperties() 204 assertArrayEquals(parent.getDrawableState(), v.getDrawableState()); in testSetProperties() 205 parent.removeView(v); in testSetProperties() 247 assertFalse(parent.isHorizontalScrollBarEnabled()); in testSetProperties() 248 assertFalse(parent.isVerticalScrollBarEnabled()); in testSetProperties() 250 parent.setHorizontalScrollBarEnabled(true); in testSetProperties() [all …]
|
D | View_LayoutPositionTest.java | 56 View parent = mActivity.findViewById(R.id.testparent); in testPositionInParent() local 66 parent.getLocationOnScreen(pLocation); in testPositionInParent() 69 parent.getDrawingRect(pRect); in testPositionInParent() 94 parent.getLocationOnScreen(pLocation); in testPositionInParent() 96 parent.getDrawingRect(pRect); in testPositionInParent()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | CardPresenter.java | 44 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() argument 45 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null); in onCreateViewHolder() 47 parent.getResources().getColor(R.color.selected_background, null); in onCreateViewHolder() 48 mDefaultCardImage = parent.getResources().getDrawable(R.drawable.movie, null); in onCreateViewHolder() 50 ImageCardView cardView = new ImageCardView(parent.getContext()) { in onCreateViewHolder()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | WebViewTestActivity.java | 48 ViewParent parent = mWebView.getParent(); in onDestroy() local 49 if (parent instanceof ViewGroup) { in onDestroy() 50 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiCtsActivity.java | 48 ViewParent parent = mWebView.getParent(); in onDestroy() local 49 if (parent instanceof ViewGroup) { in onDestroy() 50 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewCtsActivity.java | 48 ViewParent parent = mWebView.getParent(); in onDestroy() local 49 if (parent instanceof ViewGroup) { in onDestroy() 50 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
|
D | CookieSyncManagerCtsActivity.java | 54 ViewParent parent = mWebView.getParent(); in onDestroy() local 55 if (parent instanceof ViewGroup) { in onDestroy() 56 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/ |
D | VrListenerVerifierActivity.java | 269 protected View createUserInteractionTestView(ViewGroup parent, int stringId, int messageId) { in createUserInteractionTestView() argument 270 View v = mInflater.inflate(R.layout.vr_item, parent, false); in createUserInteractionTestView() 279 protected View createAutoTestView(ViewGroup parent, int messageId) { in createAutoTestView() argument 280 View v = mInflater.inflate(R.layout.vr_item, parent, false); in createAutoTestView() 293 abstract View inflate(ViewGroup parent); in inflate() argument 295 View getView(ViewGroup parent) { in getView() argument 297 view = inflate(parent); in getView() 453 View inflate(ViewGroup parent) { in inflate() argument 454 return createAutoTestView(parent, R.string.vr_check_disabled); in inflate() 472 View inflate(ViewGroup parent) { in inflate() argument [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ExpandableListScenario.java | 229 private View getView(long packedPosition, View convertView, ViewGroup parent) { in getView() argument 244 return createView(packedPosition, flPos, parent, desiredHeight); in getView() 256 protected View createView(long packedPosition, int flPos, ViewGroup parent, int desiredHeight) { in createView() argument 257 TextView result = new TextView(parent.getContext()); in createView() 320 View convertView, ViewGroup parent) { in getChildView() argument 322 childPosition), convertView, parent); in getChildView() 338 ViewGroup parent) { in getGroupView() argument 340 convertView, parent); in getGroupView()
|