/cts/tests/tests/widget/src/android/widget/cts/ |
D | LinearLayoutTest.java | 114 LinearLayout parent = (LinearLayout) mActivity.findViewById(R.id.linear_empty); in testAccessBaselineAligned() local 115 parent.setBaselineAligned(true); in testAccessBaselineAligned() 116 assertTrue(parent.isBaselineAligned()); in testAccessBaselineAligned() 118 parent.setBaselineAligned(false); in testAccessBaselineAligned() 119 assertFalse(parent.isBaselineAligned()); in testAccessBaselineAligned() 122 parent = (LinearLayout) mActivity.findViewById(R.id.linear_weightsum); in testAccessBaselineAligned() 123 assertFalse(parent.isBaselineAligned()); in testAccessBaselineAligned() 126 parent = (LinearLayout) mActivity.findViewById(R.id.linear_horizontal); in testAccessBaselineAligned() 127 assertTrue(parent.isBaselineAligned()); in testAccessBaselineAligned() 131 parent = (LinearLayout) mActivity.findViewById(R.id.linear_vertical); in testAccessBaselineAligned() [all …]
|
D | ViewAnimatorTest.java | 106 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testShowNext() local 108 parent.removeView(v1); in testShowNext() 109 parent.removeView(v2); in testShowNext() 110 parent.removeView(v3); in testShowNext() 111 parent.removeView(v4); in testShowNext() 151 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChild() local 153 parent.removeView(v1); in testAccessDisplayedChild() 154 parent.removeView(v2); in testAccessDisplayedChild() 186 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChildBoundary() local 188 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/animations/ |
D | DialogFrameTests.java | 101 final WindowState parent = getSingleWindow(mainWindowName); in doSingleTest() local 103 t.doTest(parent, dialog); in doSingleTest() 112 (parent, dialog) -> { in testMatchParentDialog() 114 assertEquals(getParentFrameWithInsets(parent), dialog.getFrame()); in testMatchParentDialog() 125 (parent, dialog) -> { in testExplicitSizeDefaultGravity() 126 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeDefaultGravity() 145 (parent, dialog) -> { in testExplicitSizeTopLeftGravity() 146 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeTopLeftGravity() 161 (parent, dialog) -> { in testExplicitSizeBottomRightGravity() 162 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeBottomRightGravity() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | TileServiceVerifierActivity.java | 60 protected View inflate(ViewGroup parent) { in inflate() argument 61 return createAutoItem(parent, R.string.tiles_adding_tile); in inflate() 78 protected View inflate(ViewGroup parent) { in inflate() argument 79 return createUserPassFail(parent, R.string.tiles_not_added); in inflate() 93 protected View inflate(ViewGroup parent) { in inflate() argument 94 return createUserPassFail(parent, R.string.tiles_in_customizer); in inflate() 108 protected View inflate(ViewGroup parent) { in inflate() argument 109 return createAutoItem(parent, R.string.tiles_removing_tile); in inflate()
|
D | TileServiceRequestVerifierActivity.java | 121 protected View inflate(ViewGroup parent) { in inflate() argument 122 return createAutoItem(parent, R.string.tiles_request_uninstall); in inflate() 193 protected View inflate(ViewGroup parent) { in inflate() argument 194 return createUserPassFail(parent, R.string.tiles_request_install); in inflate() 211 protected View inflate(ViewGroup parent) { in inflate() argument 212 return createAutoItem(parent, R.string.tiles_request_install_verify); in inflate() 233 protected View inflate(ViewGroup parent) { in inflate() argument 234 return createUserPassFail(parent, R.string.tiles_request_tile_not_present, mTileLabel); in inflate() 246 protected View inflate(ViewGroup parent) { in inflate() argument 247 return createAutoItem(parent, R.string.tiles_request_dismissed); 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/multiuser/src/android/multiuser/cts/ |
D | UserVisibilityVisibleBackgroundUsersTestCase.java | 143 try (UserReference parent = TestApis.users().createUser().name("parent_user").create()) { in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() argument 144 Log.d(TAG, "parent: id=" + parent.id()); in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() 146 .name("profile_of_" + parent.id()) in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() 149 .parent(parent) in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() 154 startVisibleBackgroundUser(parent, displayId); in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() 165 parent.stop(); in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay() 178 try (UserReference parent = TestApis.users().createUser().name("parent_user").create()) { in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay() argument 179 Log.d(TAG, "parent: id=" + parent.id()); in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay() 181 .name("profile_of_" + parent.id()) in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay() 184 .parent(parent) in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay() [all …]
|
/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.getLocationInWindow(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 | 212 ViewGroup parent = new MockViewGroup(mContext); in testAddKeyboardNavigationClusters() local 213 parent.addView(mMockViewGroup); in testAddKeyboardNavigationClusters() 215 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 229 parent.addKeyboardNavigationClusters(list, 0); in testAddKeyboardNavigationClusters() 1199 MockViewGroup parent = mMockViewGroup; in testOnDescendantInvalidated() 1201 parent.addView(child); in testOnDescendantInvalidated() 1202 grandParent.addView(parent); in testOnDescendantInvalidated() 1205 parent.isOnDescendantInvalidatedCalled = false; in testOnDescendantInvalidated() 1208 parent.invalidateChild(child, new Rect(0, 0, 1, 1)); in testOnDescendantInvalidated() 1210 assertTrue(parent.isOnDescendantInvalidatedCalled); in testOnDescendantInvalidated() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | NotificationListenerVerifierActivity.java | 314 protected View inflate(ViewGroup parent) { in inflate() argument 315 return createAutoItem(parent, R.string.nls_note_received); in inflate() 347 protected View inflate(ViewGroup parent) { in inflate() argument 348 mParent = createAutoItem(parent, R.string.nls_anr); in inflate() 392 ViewGroup parent = mParent.findViewById(R.id.feedback); in test() local 393 parent.setVisibility(View.VISIBLE); in test() 398 View v = rv.apply(NotificationListenerVerifierActivity.this, parent); in test() 399 parent.addView(v); in test() 421 protected View inflate(ViewGroup parent) { in inflate() argument 422 mView = createNlsSettingsItem(parent, R.string.nls_block_channel); in inflate() [all …]
|
D | ConditionProviderVerifierActivity.java | 99 protected View inflate(ViewGroup parent) { in inflate() argument 100 return createSettingsItem(parent, R.string.cp_enable_service); in inflate() 138 protected View inflate(ViewGroup parent) { in inflate() argument 139 return createAutoItem(parent, R.string.cp_service_started); in inflate() 177 protected View inflate(ViewGroup parent) { in inflate() argument 178 return createAutoItem(parent, R.string.nls_snooze); in inflate() 213 protected View inflate(ViewGroup parent) { in inflate() argument 214 return createAutoItem(parent, R.string.nls_unsnooze); in inflate() 246 protected View inflate(ViewGroup parent) { in inflate() argument 247 return createAutoItem(parent, R.string.cp_create_rule); in inflate() [all …]
|
D | ShortcutThrottlingResetActivity.java | 115 protected View inflate(ViewGroup parent) { in inflate() argument 116 return createAutoItem(parent, R.string.shortcut_reset_bot); in inflate() 148 protected View inflate(ViewGroup parent) { in inflate() argument 149 return createAutoItem(parent, R.string.shortcut_reset_start); in inflate() 174 protected View inflate(ViewGroup parent) { in inflate() argument 175 return createAutoItem(parent, R.string.shortcut_reset_prompt_inline_reply); in inflate() 197 protected View inflate(ViewGroup parent) { in inflate() argument 198 return createAutoItem(parent, R.string.shortcut_reset_check_result); in inflate()
|
D | InteractiveVerifierActivity.java | 116 protected abstract View inflate(ViewGroup parent); in inflate() argument 117 View getView(ViewGroup parent) { in getView() argument 119 view = inflate(parent); in getView() 290 protected View createNlsSettingsItem(ViewGroup parent, int messageId) { in createNlsSettingsItem() argument 291 return createUserItem(parent, R.string.nls_start_settings, messageId); in createNlsSettingsItem() 294 protected View createRetryItem(ViewGroup parent, int messageId, Object... messageFormatArgs) { in createRetryItem() argument 295 return createUserItem(parent, R.string.attention_ready, messageId, messageFormatArgs); in createRetryItem() 298 protected View createUserItem(ViewGroup parent, int actionId, int messageId, in createUserItem() argument 300 View item = mInflater.inflate(R.layout.nls_item, parent, false); in createUserItem() 309 protected ViewGroup createAutoItem(ViewGroup parent, int stringId) { in createAutoItem() argument [all …]
|
D | NotificationPrivacyVerifierActivity.java | 195 protected View inflate(ViewGroup parent) { in inflate() argument 196 mView = createUserItem(parent, R.string.np_start_channel_settings, mInstructionRes); in inflate() 265 protected View inflate(ViewGroup parent) { in inflate() argument 266 mView = createUserItem(parent, R.string.np_start_security_settings, mInstructionRes); in inflate() 326 protected View inflate(ViewGroup parent) { in inflate() argument 327 mView = createUserItem(parent, R.string.np_start_notif_settings, mInstructionRes); in inflate() 404 protected View inflate(ViewGroup parent) { in inflate() argument 405 mView = createPassFailItem(parent, R.string.secure_action_lockscreen); in inflate() 448 protected View inflate(ViewGroup parent) { in inflate() argument 449 mView = createPassFailItem(parent, mInstructionRes); in inflate() [all …]
|
/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() 287 protected View inflate(ViewGroup parent) { in inflate() argument 288 return createAutoItem(parent, R.string.test_sound_effects); in inflate() [all …]
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 162 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testRemoveChild() argument 163 parent.addChildSessionId(childBId); in testRemoveChild() 164 parent.addChildSessionId(childCId); in testRemoveChild() 165 parent.removeChildSessionId(childBId); in testRemoveChild() 167 parent.commit(sender.getIntentSender()); in testRemoveChild() 258 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_AddChildToSingleSessionShouldFail() argument 260 parent.addChildSessionId(childId); in testInvalidStateScenario_AddChildToSingleSessionShouldFail() 274 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail() argument 276 parent.addChildSessionId(childId); in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail() 290 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() argument [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/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 | 53 ViewParent parent = mWebView.getParent(); in onDestroy() local 54 if (parent instanceof ViewGroup) { in onDestroy() 55 ((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/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/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()
|