/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 | 92 WindowState parent = getSingleWindow(getWindowName(activityName())); in doSingleTest() local 94 t.doTest(parent, dialog); in doSingleTest() 101 doParentChildTest(TEST_MATCH_PARENT, (parent, dialog) -> in testMatchParentDialog() 102 assertEquals(parent.getContentFrame(), dialog.getFrame()) in testMatchParentDialog() 115 doParentChildTest(TEST_MATCH_PARENT_LAYOUT_IN_OVERSCAN, (parent, dialog) -> in testMatchParentDialogLayoutInOverscan() 116 assertEquals(parent.getFrame(), dialog.getFrame()) in testMatchParentDialogLayoutInOverscan() 125 doParentChildTest(TEST_EXPLICIT_SIZE, (parent, dialog) -> { in testExplicitSizeDefaultGravity() 126 Rect contentFrame = parent.getContentFrame(); in testExplicitSizeDefaultGravity() 138 doParentChildTest(TEST_EXPLICIT_SIZE_TOP_LEFT_GRAVITY, (parent, dialog) -> { in testExplicitSizeTopLeftGravity() 139 Rect contentFrame = parent.getContentFrame(); in testExplicitSizeTopLeftGravity() [all …]
|
D | SurfaceControlTest.java | 100 private SurfaceControl buildDefaultSurface(SurfaceControl parent) { in buildDefaultSurface() argument 104 .setParent(parent) in buildDefaultSurface() 117 private SurfaceControl buildDefaultSurface(SurfaceControl parent, int color) { in buildDefaultSurface() argument 118 final SurfaceControl sc = buildDefaultSurface(parent); in buildDefaultSurface() 123 private SurfaceControl buildDefaultRedSurface(SurfaceControl parent) { in buildDefaultRedSurface() argument 124 return buildDefaultSurface(parent, Color.RED); in buildDefaultRedSurface() 135 public void addChildren(SurfaceControl parent) { in testShow() 136 final SurfaceControl sc = buildDefaultRedSurface(parent); in testShow() 154 public void addChildren(SurfaceControl parent) { in testHide() 155 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 | 89 protected View inflate(ViewGroup parent) { in inflate() argument 90 return createSettingsItem(parent, R.string.cp_enable_service); in inflate() 127 protected View inflate(ViewGroup parent) { in inflate() argument 128 return createNlsSettingsItem(parent, R.string.cp_cannot_enable_service); in inflate() 167 protected View inflate(ViewGroup parent) { in inflate() argument 168 return createAutoItem(parent, R.string.cp_service_started); in inflate() 193 protected View inflate(ViewGroup parent) { in inflate() argument 194 return createAutoItem(parent, R.string.nls_snooze); in inflate() 229 protected View inflate(ViewGroup parent) { in inflate() argument 230 return createAutoItem(parent, R.string.nls_unsnooze); 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 | NotificationListenerVerifierActivity.java | 240 protected View inflate(ViewGroup parent) { in inflate() argument 241 return createAutoItem(parent, R.string.nls_note_received); in inflate() 281 protected View inflate(ViewGroup parent) { in inflate() argument 282 mView = createNlsSettingsItem(parent, R.string.nls_block_channel); in inflate() 356 protected View inflate(ViewGroup parent) { in inflate() argument 357 mView = createNlsSettingsItem(parent, R.string.nls_block_group); in inflate() 433 protected View inflate(ViewGroup parent) { in inflate() argument 434 mView = createNlsSettingsItem(parent, R.string.nls_block_app); in inflate() 505 protected View inflate(ViewGroup parent) { in inflate() argument 506 mView = createNlsSettingsItem(parent, R.string.nls_unblock_app); in inflate() [all …]
|
D | InteractiveVerifierActivity.java | 102 protected abstract View inflate(ViewGroup parent); in inflate() argument 103 View getView(ViewGroup parent) { in getView() argument 105 view = inflate(parent); in getView() 239 protected View createNlsSettingsItem(ViewGroup parent, int messageId) { in createNlsSettingsItem() argument 240 return createUserItem(parent, R.string.nls_start_settings, messageId); in createNlsSettingsItem() 243 protected View createRetryItem(ViewGroup parent, int messageId, Object... messageFormatArgs) { in createRetryItem() argument 244 return createUserItem(parent, R.string.attention_ready, messageId, messageFormatArgs); in createRetryItem() 247 protected View createUserItem(ViewGroup parent, int actionId, int messageId, in createUserItem() argument 249 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem() 258 protected View createAutoItem(ViewGroup parent, int stringId) { in createAutoItem() argument [all …]
|
D | AttentionManagementVerifierActivity.java | 165 protected View inflate(ViewGroup parent) { in inflate() argument 166 return createAutoItem(parent, R.string.nls_service_stopped); in inflate() 187 protected View inflate(ViewGroup parent) { in inflate() argument 188 return createAutoItem(parent, R.string.attention_create_contacts); in inflate() 224 protected View inflate(ViewGroup parent) { in inflate() argument 225 return createAutoItem(parent, R.string.attention_delete_contacts); in inflate() 250 protected View inflate(ViewGroup parent) { in inflate() argument 251 return createAutoItem(parent, R.string.attention_all_are_filtered); in inflate() 310 protected View inflate(ViewGroup parent) { in inflate() argument 311 return createAutoItem(parent, R.string.attention_all_are_filtered); in inflate() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 195 protected View inflate(ViewGroup parent) { in inflate() argument 196 return createRetryItem(parent, R.string.ringer_mode_pass_test); in inflate() 208 protected View inflate(ViewGroup parent) { in inflate() argument 209 return createRetryItem(parent, R.string.attention_filter_all); in inflate() 230 protected View inflate(ViewGroup parent) { in inflate() argument 231 return createRetryItem(parent, R.string.attention_filter_priority_mimic_alarms_only); in inflate() 253 protected View inflate(ViewGroup parent) { in inflate() argument 254 return createRetryItem(parent, R.string.enable_sound_effects); in inflate() 274 protected View inflate(ViewGroup parent) { in inflate() argument 275 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 | 203 ViewGroup parent = new MockViewGroup(mContext); in testAddKeyboardNavigationClusters() local 204 parent.addView(mMockViewGroup); in testAddKeyboardNavigationClusters() 206 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 220 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 1184 MockViewGroup parent = mMockViewGroup; in testOnDescendantInvalidated() local 1186 parent.addView(child); in testOnDescendantInvalidated() 1187 grandParent.addView(parent); in testOnDescendantInvalidated() 1190 parent.isOnDescendantInvalidatedCalled = false; in testOnDescendantInvalidated() 1193 parent.invalidateChild(child, new Rect(0, 0, 1, 1)); in testOnDescendantInvalidated() 1195 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/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()
|
D | ListScenario.java | 334 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onCreate() 338 public void onNothingSelected(AdapterView parent) { in onCreate() 345 public void onItemClick(AdapterView parent, View v, int position, long id) { in onCreate() 513 protected View createView(int position, ViewGroup parent, int desiredHeight) { in createView() argument 514 return ListItemFactory.text(position, parent.getContext(), getValueAtPosition(position), in createView() 521 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument 604 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 611 result = convertView(position, convertView, parent); in getView() 619 result = createView(position, parent, desiredHeight); in getView()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | CookieSyncManagerCtsActivity.java | 58 ViewParent parent = mWebView.getParent(); in onDestroy() local 59 if (parent instanceof ViewGroup) { in onDestroy() 60 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationTest.java | 241 public void addChild(ViewGroup parent, View child) { in addChild() argument 242 super.addChild(parent, child); in addChild() 247 public void hideChild(ViewGroup parent, View child) { in hideChild() argument 248 super.hideChild(parent, child); in hideChild() 264 public void removeChild(ViewGroup parent, View child) { in removeChild() argument 265 super.removeChild(parent, child); in removeChild() 282 public void showChild(ViewGroup parent, View child) { in showChild() argument 283 super.showChild(parent, child); in showChild()
|