/cts/tests/tests/widget/src/android/widget/cts/ |
D | LinearLayoutTest.java | 104 LinearLayout parent = (LinearLayout) mActivity.findViewById(R.id.linear_empty); in testAccessBaselineAligned() local 105 parent.setBaselineAligned(true); in testAccessBaselineAligned() 106 assertTrue(parent.isBaselineAligned()); in testAccessBaselineAligned() 108 parent.setBaselineAligned(false); in testAccessBaselineAligned() 109 assertFalse(parent.isBaselineAligned()); in testAccessBaselineAligned() 112 parent = (LinearLayout) mActivity.findViewById(R.id.linear_weightsum); in testAccessBaselineAligned() 113 assertFalse(parent.isBaselineAligned()); in testAccessBaselineAligned() 116 parent = (LinearLayout) mActivity.findViewById(R.id.linear_horizontal); in testAccessBaselineAligned() 117 assertTrue(parent.isBaselineAligned()); in testAccessBaselineAligned() 121 parent = (LinearLayout) mActivity.findViewById(R.id.linear_vertical); in testAccessBaselineAligned() [all …]
|
D | ViewAnimatorTest.java | 96 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testShowNext() local 98 parent.removeView(v1); in testShowNext() 99 parent.removeView(v2); in testShowNext() 100 parent.removeView(v3); in testShowNext() 101 parent.removeView(v4); in testShowNext() 141 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChild() local 143 parent.removeView(v1); in testAccessDisplayedChild() 144 parent.removeView(v2); in testAccessDisplayedChild() 176 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChildBoundary() local 178 parent.removeView(v1); in testAccessDisplayedChildBoundary() [all …]
|
D | RemoteViewsActivityTest.java | 63 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testGood() local 65 View result = r.apply(mActivity, parent); in testGood() 89 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testDerivedClass() local 95 result = r.apply(mActivity, parent); in testDerivedClass() 118 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testWebView() local 124 result = r.apply(mActivity, parent); in testWebView()
|
/cts/tests/tests/debug/libdebugtest/ |
D | android_debug_cts.cpp | 42 static void parent(pid_t child) { in parent() function 54 parent(pid); in run_test() 62 static void ptraceAttach(pid_t parent) { in ptraceAttach() argument 63 assert_or_exit(ptrace(PTRACE_ATTACH, parent, nullptr, nullptr) == 0); in ptraceAttach() 65 assert_or_exit(waitpid(parent, &status, __WALL) == parent); in ptraceAttach() 69 assert_or_exit(ptrace(PTRACE_DETACH, parent, nullptr, nullptr) == 0); in ptraceAttach() 76 static void processVmReadv(pid_t parent, const std::vector<long *> &addresses) { in processVmReadv() argument 85 assert_or_exit(process_vm_readv(parent, &local, 1, &remote, 1, 0) == sizeof destination); in processVmReadv() 98 run_test([&](pid_t parent) { in TEST() argument 99 processVmReadv(parent, std::vector<long *>{ in TEST() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTests.java | 90 WindowState parent = getSingleWindow(getWindowName(activityName())); in doSingleTest() local 92 t.doTest(parent, dialog); in doSingleTest() 99 doParentChildTest(TEST_MATCH_PARENT, (parent, dialog) -> in testMatchParentDialog() 100 assertEquals(parent.getContentFrame(), dialog.getFrame()) in testMatchParentDialog() 109 doParentChildTest(TEST_MATCH_PARENT_LAYOUT_IN_OVERSCAN, (parent, dialog) -> in testMatchParentDialogLayoutInOverscan() 110 assertEquals(parent.getFrame(), dialog.getFrame()) in testMatchParentDialogLayoutInOverscan() 119 doParentChildTest(TEST_EXPLICIT_SIZE, (parent, dialog) -> { in testExplicitSizeDefaultGravity() 120 Rect contentFrame = parent.getContentFrame(); in testExplicitSizeDefaultGravity() 132 doParentChildTest(TEST_EXPLICIT_SIZE_TOP_LEFT_GRAVITY, (parent, dialog) -> { in testExplicitSizeTopLeftGravity() 133 Rect contentFrame = parent.getContentFrame(); in testExplicitSizeTopLeftGravity() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 84 protected View inflate(ViewGroup parent) { in inflate() argument 85 return createSettingsItem(parent, R.string.cp_enable_service); in inflate() 122 protected View inflate(ViewGroup parent) { in inflate() argument 123 return createNlsSettingsItem(parent, R.string.cp_cannot_enable_service); in inflate() 162 protected View inflate(ViewGroup parent) { in inflate() argument 163 return createAutoItem(parent, R.string.cp_service_started); in inflate() 188 protected View inflate(ViewGroup parent) { in inflate() argument 189 return createAutoItem(parent, R.string.nls_snooze); in inflate() 224 protected View inflate(ViewGroup parent) { in inflate() argument 225 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 | 208 protected View inflate(ViewGroup parent) { in inflate() argument 209 return createAutoItem(parent, R.string.nls_note_received); in inflate() 249 protected View inflate(ViewGroup parent) { in inflate() argument 250 mView = createNlsSettingsItem(parent, R.string.nls_block_channel); in inflate() 324 protected View inflate(ViewGroup parent) { in inflate() argument 325 mView = createNlsSettingsItem(parent, R.string.nls_block_group); in inflate() 401 protected View inflate(ViewGroup parent) { in inflate() argument 402 mView = createNlsSettingsItem(parent, R.string.nls_block_app); in inflate() 473 protected View inflate(ViewGroup parent) { in inflate() argument 474 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 …]
|
/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 | 192 ViewGroup parent = new MockViewGroup(mContext); in testAddKeyboardNavigationClusters() local 193 parent.addView(mMockViewGroup); in testAddKeyboardNavigationClusters() 195 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 209 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 1016 MockViewGroup parent = mMockViewGroup; in testOnDescendantInvalidated() local 1018 parent.addView(child); in testOnDescendantInvalidated() 1019 grandParent.addView(parent); in testOnDescendantInvalidated() 1022 parent.isOnDescendantInvalidatedCalled = false; in testOnDescendantInvalidated() 1025 parent.invalidateChild(child, new Rect(0, 0, 1, 1)); in testOnDescendantInvalidated() 1027 assertTrue(parent.isOnDescendantInvalidatedCalled); in testOnDescendantInvalidated() [all …]
|
D | View_LayoutPositionTest.java | 55 View parent = mActivity.findViewById(R.id.testparent); in testPositionInParent() local 65 parent.getLocationOnScreen(pLocation); in testPositionInParent() 68 parent.getDrawingRect(pRect); in testPositionInParent() 93 parent.getLocationOnScreen(pLocation); in testPositionInParent() 95 parent.getDrawingRect(pRect); in testPositionInParent()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 193 protected View inflate(ViewGroup parent) { in inflate() argument 194 return createRetryItem(parent, R.string.ringer_mode_pass_test); in inflate() 206 protected View inflate(ViewGroup parent) { in inflate() argument 207 return createRetryItem(parent, R.string.attention_filter_all); in inflate() 228 protected View inflate(ViewGroup parent) { in inflate() argument 229 return createRetryItem(parent, R.string.attention_filter_priority_mimic_alarms_only); in inflate() 251 protected View inflate(ViewGroup parent) { in inflate() argument 252 return createRetryItem(parent, R.string.enable_sound_effects); in inflate() 272 protected View inflate(ViewGroup parent) { in inflate() argument 273 return createAutoItem(parent, R.string.test_sound_effects); in inflate() [all …]
|
/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/os/src/android/os/cts/ |
D | CustomPathClassLoader.java | 24 public CustomPathClassLoader(String dexPath, ClassLoader parent) { in CustomPathClassLoader() argument 25 super(dexPath, parent); in CustomPathClassLoader()
|
D | CustomDexClassLoader.java | 24 public CustomDexClassLoader(String dexPath, String optimizedDirectory, ClassLoader parent) { in CustomDexClassLoader() argument 25 super(dexPath, optimizedDirectory, null, parent); in CustomDexClassLoader()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewCtsActivity.java | 50 ViewParent parent = mWebView.getParent(); in onDestroy() local 51 if (parent instanceof ViewGroup) { in onDestroy() 52 ((ViewGroup) parent).removeView(mWebView); in onDestroy()
|
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/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/ClassLoaderSplitApp/src/com/android/cts/classloadersplitapp/ |
D | BaseReceiver.java | 31 final ClassLoader parent = loader.getParent(); in onReceive() local 34 b.putString("parentClassName", parent.getClass().getName()); in onReceive()
|
/cts/hostsidetests/appsecurity/test-apps/ClassLoaderSplitApp/feature_a/src/com/android/cts/classloadersplitapp/feature_a/ |
D | FeatureAReceiver.java | 32 final ClassLoader parent = loader.getParent(); in onReceive() local 35 b.putString("featureA_parentClassName", parent.getClass().getName()); in onReceive()
|
/cts/hostsidetests/appsecurity/test-apps/ClassLoaderSplitApp/feature_b/src/com/android/cts/classloadersplitapp/feature_b/ |
D | FeatureBReceiver.java | 32 final ClassLoader parent = loader.getParent(); in onReceive() local 35 b.putString("featureB_parentClassName", parent.getClass().getName()); in onReceive()
|
/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()
|