Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 90) sorted by relevance

1234

/cts/tests/tests/widget/src/android/widget/cts/
DViewAnimatorTest.java93 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testShowNext() local
95 parent.removeView(v1); in testShowNext()
96 parent.removeView(v2); in testShowNext()
97 parent.removeView(v3); in testShowNext()
98 parent.removeView(v4); in testShowNext()
136 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChild() local
138 parent.removeView(v1); in testAccessDisplayedChild()
139 parent.removeView(v2); in testAccessDisplayedChild()
170 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChildBoundary() local
172 parent.removeView(v1); in testAccessDisplayedChildBoundary()
[all …]
DLinearLayoutTest.java148 LinearLayout parent = (LinearLayout) mActivity.findViewById(R.id.weightsum); in testAccessWeightSum() local
153 assertNotNull(parent); in testAccessWeightSum()
165 assertEquals(LinearLayout.HORIZONTAL, parent.getOrientation()); in testAccessWeightSum()
166 assertEquals(1.0f, parent.getWeightSum()); in testAccessWeightSum()
168 int parentWidth = parent.getWidth(); in testAccessWeightSum()
233 LinearLayout parent = (LinearLayout) mActivity.findViewById(R.id.horizontal); in testLayoutHorizontal() local
238 assertNotNull(parent); in testLayoutHorizontal()
250 assertEquals(LinearLayout.HORIZONTAL, parent.getOrientation()); in testLayoutHorizontal()
252 ViewAsserts.assertTopAligned(parent, topView); in testLayoutHorizontal()
253 ViewAsserts.assertVerticalCenterAligned(parent, centerView); in testLayoutHorizontal()
[all …]
DRemoteViewsActivityTest.java55 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testGood() local
57 View result = r.apply(mActivity, parent); in testGood()
81 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testDerivedClass() local
87 result = r.apply(mActivity, parent); in testDerivedClass()
110 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testWebView() local
116 result = r.apply(mActivity, parent); in testWebView()
DLayoutDirectionTest.java74 private void checkDirectionInheritanceForOneLayoutWithCode(ViewGroup parent) { in checkDirectionInheritanceForOneLayoutWithCode() argument
77 parent.addView(child); in checkDirectionInheritanceForOneLayoutWithCode()
80 parent.setLayoutDirection(LAYOUT_DIRECTION_LTR); in checkDirectionInheritanceForOneLayoutWithCode()
82 assertEquals(LAYOUT_DIRECTION_LTR, parent.getLayoutDirection()); in checkDirectionInheritanceForOneLayoutWithCode()
86 parent.setLayoutDirection(LAYOUT_DIRECTION_RTL); in checkDirectionInheritanceForOneLayoutWithCode()
88 assertEquals(LAYOUT_DIRECTION_RTL, parent.getLayoutDirection()); in checkDirectionInheritanceForOneLayoutWithCode()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DSensorOperation.java65 public abstract void execute(ISensorTestNode parent) throws InterruptedException; 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()
DRepeatingSensorOperation.java52 public void execute(ISensorTestNode parent) throws InterruptedException { 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()
DDelaySensorOperation.java51 public void execute(ISensorTestNode parent) throws InterruptedException { in execute() argument
53 mOperation.execute(asTestNode(parent)); in execute()
DWakeLockOperation.java63 public void execute(ISensorTestNode parent) throws InterruptedException { in execute() argument
68 mOperation.execute(asTestNode(parent)); in execute()
DSequentialSensorOperation.java51 public void execute(ISensorTestNode parent) throws InterruptedException { in execute() argument
52 ISensorTestNode currentNode = asTestNode(parent); in execute()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DPackagePriorityVerifierActivity.java76 View inflate(ViewGroup parent) { in inflate() argument
77 return createAutoItem(parent, R.string.package_priority_bot); in inflate()
97 View inflate(ViewGroup parent) { in inflate() argument
98 return createRetryItem(parent, R.string.package_priority_default, mAppLabel); in inflate()
123 View inflate(ViewGroup parent) { in inflate() argument
124 return createRetryItem(parent, R.string.package_priority_high, mAppLabel); in inflate()
152 View inflate(ViewGroup parent) { in inflate() argument
153 return createAutoItem(parent, R.string.attention_default_order); in inflate()
197 View inflate(ViewGroup parent) { in inflate() argument
198 return createAutoItem(parent, R.string.package_priority_user_order); in inflate()
DInteractiveVerifierActivity.java96 abstract View inflate(ViewGroup parent); in inflate() argument
97 View getView(ViewGroup parent) { in getView() argument
99 view = inflate(parent); in getView()
217 protected View createNlsSettingsItem(ViewGroup parent, int messageId) { in createNlsSettingsItem() argument
218 return createUserItem(parent, R.string.nls_start_settings, messageId); in createNlsSettingsItem()
221 protected View createRetryItem(ViewGroup parent, int messageId, Object... messageFormatArgs) { in createRetryItem() argument
222 return createUserItem(parent, R.string.attention_ready, messageId, messageFormatArgs); in createRetryItem()
225 protected View createUserItem(ViewGroup parent, int actionId, int messageId, in createUserItem() argument
227 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem()
236 protected View createAutoItem(ViewGroup parent, int stringId) { in createAutoItem() argument
[all …]
DNotificationListenerVerifierActivity.java151 View inflate(ViewGroup parent) { in inflate() argument
152 return createAutoItem(parent, R.string.nls_note_received); in inflate()
185 View inflate(ViewGroup parent) { in inflate() argument
186 return createAutoItem(parent, R.string.nls_payload_intact); in inflate()
266 View inflate(ViewGroup parent) { in inflate() argument
267 return createAutoItem(parent, R.string.nls_clear_one); in inflate()
313 View inflate(ViewGroup parent) { in inflate() argument
314 return createAutoItem(parent, R.string.nls_clear_all); in inflate()
360 View inflate(ViewGroup parent) { in inflate() argument
361 return createNlsSettingsItem(parent, R.string.nls_disable_service); in inflate()
[all …]
DAttentionManagementVerifierActivity.java108 View inflate(ViewGroup parent) { in inflate() argument
109 return createAutoItem(parent, R.string.attention_create_contacts); in inflate()
138 View inflate(ViewGroup parent) { in inflate() argument
139 return createAutoItem(parent, R.string.attention_delete_contacts); in inflate()
164 View inflate(ViewGroup parent) { in inflate() argument
165 return createRetryItem(parent, R.string.attention_filter_none); in inflate()
195 View inflate(ViewGroup parent) { in inflate() argument
196 return createAutoItem(parent, R.string.attention_all_are_filtered); in inflate()
263 View inflate(ViewGroup parent) { in inflate() argument
264 return createRetryItem(parent, R.string.attention_filter_all); in inflate()
[all …]
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/presenter/
DCardPresenter.java40 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() argument
41 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null); in onCreateViewHolder()
43 parent.getResources().getColor(R.color.selected_background, null); in onCreateViewHolder()
44 mDefaultCardImage = parent.getResources().getDrawable(R.drawable.movie, null); in onCreateViewHolder()
46 ImageCardView cardView = new ImageCardView(parent.getContext()) { in onCreateViewHolder()
DGridItemPresenter.java39 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() argument
40 TextView view = new TextView(parent.getContext()); in onCreateViewHolder()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewCtsActivity.java49 ViewParent parent = mWebView.getParent(); in onDestroy() local
50 if (parent instanceof ViewGroup) { in onDestroy()
51 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
/cts/tests/tests/view/src/android/view/cts/
DView_LayoutPositionTest.java50 View parent = mActivity.findViewById(R.id.testparent); in testPositionInParent() local
60 parent.getLocationOnScreen(pLocation); in testPositionInParent()
63 parent.getDrawingRect(pRect); in testPositionInParent()
88 parent.getLocationOnScreen(pLocation); in testPositionInParent()
90 parent.getDrawingRect(pRect); in testPositionInParent()
DView_UsingViewsTest.java174 RelativeLayout parent = (RelativeLayout) mEditText.getParent(); in testSetProperties() local
175 parent.addView(v); in testSetProperties()
177 assertFalse(parent.getDrawableState().length == v.getDrawableState().length); in testSetProperties()
178 parent.removeView(v); in testSetProperties()
183 parent.addView(v); in testSetProperties()
186 assertEquals(parent.getDrawableState().length, v.getDrawableState().length); in testSetProperties()
187 assertEquals(parent.getDrawableState().toString(), v.getDrawableState().toString()); in testSetProperties()
188 parent.removeView(v); in testSetProperties()
238 assertFalse(parent.isHorizontalScrollBarEnabled()); in testSetProperties()
239 assertFalse(parent.isVerticalScrollBarEnabled()); in testSetProperties()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java212 public void addChild(ViewGroup parent, View child) { in addChild() argument
213 super.addChild(parent, child); in addChild()
218 public void hideChild(ViewGroup parent, View child) { in hideChild() argument
219 super.hideChild(parent, child); in hideChild()
235 public void removeChild(ViewGroup parent, View child) { in removeChild() argument
236 super.removeChild(parent, child); in removeChild()
253 public void showChild(ViewGroup parent, View child) { in showChild() argument
254 super.showChild(parent, child); in showChild()
/cts/tests/tests/widget/src/android/widget/cts/util/
DExpandableListScenario.java226 private View getView(long packedPosition, View convertView, ViewGroup parent) { in getView() argument
241 return createView(packedPosition, flPos, parent, desiredHeight); in getView()
253 protected View createView(long packedPosition, int flPos, ViewGroup parent, int desiredHeight) { in createView() argument
254 TextView result = new TextView(parent.getContext()); in createView()
317 View convertView, ViewGroup parent) { in getChildView() argument
319 childPosition), convertView, parent); in getChildView()
335 ViewGroup parent) { in getGroupView() argument
337 convertView, parent); in getGroupView()
DListScenario.java347 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onCreate()
351 public void onNothingSelected(AdapterView parent) { in onCreate()
357 public void onItemClick(AdapterView parent, View v, int position, long id) { in onCreate()
421 public boolean onItemLongClick(AdapterView parent, View v, int position, long id) { in enableLongPress()
537 protected View createView(int position, ViewGroup parent, int desiredHeight) { in createView() argument
538 return ListItemFactory.text(position, parent.getContext(), getValueAtPosition(position), in createView()
545 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument
628 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
635 result = convertView(position, convertView, parent); in getView()
643 result = createView(position, parent, desiredHeight); in getView()
/cts/tests/tests/text/src/android/text/method/cts/
DCharacterPickerDialogTest.java68 final Gallery parent = new Gallery(mActivity); in testOnItemClick() local
81 replacePickerDialog.onItemClick(parent, view, 0, 0); in testOnItemClick()
90 replacePickerDialog.onItemClick(parent, view, 2, 0); in testOnItemClick()
103 insertPickerDialog.onItemClick(parent, view, 2, 0); in testOnItemClick()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DGLESSurfaceView.java42 public GLESSurfaceView(DeviceInfoActivity parent, int glVersion, CountDownLatch done){ in GLESSurfaceView() argument
43 super(parent); in GLESSurfaceView()
45 mParent = parent; in GLESSurfaceView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java263 View getView(LayoutInflater inflater, int position, View convertView, ViewGroup parent);
281 ViewGroup parent) {
284 view = (TextView) inflater.inflate(R.layout.test_category_row, parent, false);
312 ViewGroup parent) {
315 view = (TextView) inflater.inflate(R.layout.bu_preference_row, parent, false);
340 ViewGroup parent) {
343 view = (TextView) inflater.inflate(R.layout.bu_preference_row, parent, false);
400 public View getView(int position, View convertView, ViewGroup parent) {
401 return getItem(position).getView(mLayoutInflater, position, convertView, parent);
/cts/suite/audio_quality/lib/src/task/
DTaskGeneric.cpp80 void TaskGeneric::setParent(TaskGeneric* parent) in setParent() argument
82 LOGD("TaskGeneric::setParent self %x, parent %x", this, parent); in setParent()
83 mParent = parent; in setParent()

1234