/frameworks/native/opengl/tools/glgen/specs/gles11/ |
D | checks.spec | 22 glBufferData nullAllowed data check data size 23 glBufferSubData check data size 26 glClipPlanef check eqn 4 27 glClipPlanex check eqn 4 28 glDebugMessageControl check ids count 29 glDebugMessageInsert check message length 30 glDeleteBuffers check buffers n 31 glDeleteFramebuffers check framebuffers n 32 glDeleteFramebuffersOES check framebuffers n 33 glDeleteRenderbuffers check renderbuffers n [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | UriMatcherTest.java | 163 check("content://asdf", UriMatcher.NO_MATCH, matcher); in checkAll() 164 check("content://people", PEOPLE, matcher); in checkAll() 165 check("content://people/", PEOPLE, matcher); in checkAll() 166 check("content://people/1", PEOPLE_ID, matcher); in checkAll() 167 check("content://people/asdf", UriMatcher.NO_MATCH, matcher); in checkAll() 168 check("content://people/2/phones", PEOPLE_PHONES, matcher); in checkAll() 169 check("content://people/2/phones/3", PEOPLE_PHONES_ID, matcher); in checkAll() 170 check("content://people/2/phones/asdf", UriMatcher.NO_MATCH, matcher); in checkAll() 171 check("content://people/2/addresses", PEOPLE_ADDRESSES, matcher); in checkAll() 172 check("content://people/2/addresses/3", PEOPLE_ADDRESSES_ID, matcher); in checkAll() [all …]
|
/frameworks/native/opengl/tools/glgen/specs/jsr239/ |
D | glspec-checks | 1 glClipPlanef check equation 4 2 glClipPlanex check equation 4 3 glDeleteBuffers check buffers n 4 glDeleteTextures check textures n 7 glGenBuffers check buffers n 8 glGenTextures check textures n 9 glGetClipPlane check eqn 4 14 glGetTexParameter check params 1 17 glLoadMatrix check m 16 19 glMultMatrix check m 16 [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | multiplay.c | 84 #define check(result) check2(result, __LINE__) macro 99 check(result); in prefetch_callback() 102 check(result); in prefetch_callback() 151 check(result); in main() 153 check(result); in main() 156 check(result); in main() 163 check(result); in main() 165 check(result); in main() 169 check(result); in main() 172 check(result); in main() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/test/com/android/hoststubgen/visitors/ |
D | HelperTest.kt | 74 fun check(from: MethodNode?, to: MethodNode?, expected: Int) { in testCheckSubstitutionMethodCompatibility() method 85 check(staticPublic, staticPublic, Opcodes.ACC_PUBLIC or Opcodes.ACC_STATIC) in testCheckSubstitutionMethodCompatibility() 86 check(staticPrivate, staticPrivate, Opcodes.ACC_PRIVATE or Opcodes.ACC_STATIC) in testCheckSubstitutionMethodCompatibility() 87 check(nonStaticPublic, nonStaticPublic, Opcodes.ACC_PUBLIC) in testCheckSubstitutionMethodCompatibility() 88 check(nonStaticPProtected, nonStaticPProtected, 0) in testCheckSubstitutionMethodCompatibility() 90 check(staticPublic, null, NOT_COMPATIBLE) in testCheckSubstitutionMethodCompatibility() 91 check(null, staticPublic, NOT_COMPATIBLE) in testCheckSubstitutionMethodCompatibility() 93 check(staticPublic, nonStaticPublic, NOT_COMPATIBLE) in testCheckSubstitutionMethodCompatibility() 94 check(nonStaticPublic, staticPublic, NOT_COMPATIBLE) in testCheckSubstitutionMethodCompatibility() 96 check(staticPublic, staticPrivate, Opcodes.ACC_PUBLIC or Opcodes.ACC_STATIC) in testCheckSubstitutionMethodCompatibility() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/ |
D | QSTileStateSubject.kt | 41 check("other").that(other).isNull() in <lambda>() 44 check("other").that(other).isNotNull() in <lambda>() 47 check("icon").that(actual.icon()).isEqualTo(other.icon()) in <lambda>() 48 check("iconRes").that(actual.iconRes).isEqualTo(other.iconRes) in <lambda>() 49 check("label").that(actual.label).isEqualTo(other.label) in <lambda>() 50 check("activationState").that(actual.activationState).isEqualTo(other.activationState) in <lambda>() 51 check("secondaryLabel").that(actual.secondaryLabel).isEqualTo(other.secondaryLabel) in <lambda>() 52 check("label").that(actual.supportedActions).isEqualTo(other.supportedActions) in <lambda>() 53 check("contentDescription") in <lambda>() 56 check("stateDescription").that(actual.stateDescription).isEqualTo(other.stateDescription) in <lambda>() [all …]
|
D | TileSubject.kt | 39 check("other").that(other).isNull() in <lambda>() 42 check("other").that(other).isNotNull() in <lambda>() 46 check("icon").that(actual.icon).isEqualTo(other.icon) in <lambda>() 47 check("label").that(actual.label).isEqualTo(other.label) in <lambda>() 48 check("subtitle").that(actual.subtitle).isEqualTo(other.subtitle) in <lambda>() 49 check("contentDescription") in <lambda>() 52 check("stateDescription").that(actual.stateDescription).isEqualTo(other.stateDescription) in <lambda>() 53 check("activityLaunchForClick") in <lambda>() 56 check("state").that(actual.state).isEqualTo(other.state) in <lambda>()
|
/frameworks/native/opengl/tools/glgen/specs/egl/ |
D | checks.spec | 1 eglInitialize nullAllowed major nullAllowed minor check major 1 check minor 1 2 eglGetConfigs nullAllowed configs check configs config_size 3 eglChooseConfig nullAllowed configs check configs config_size check num_config 1 sentinel attrib_li… 4 eglGetConfigAttrib check value 1 10 eglQuerySurface check value 1 13 eglQueryContext check value 1
|
/frameworks/opt/telephony/testing/src/com/android/internal/telephony/testing/ |
D | CursorSubject.java | 60 check("getCount()").that(mActual.getCount()).isEqualTo(count); in hasCount() 65 check("getColumnNames()").that(mActual.getColumnNames()).asList() in hasColumnNames() 71 check("moveToPosition").that(mActual.moveToPosition(position)).isTrue(); in atRow() 77 check("getColumnCount()").that(mActual.getColumnCount()).isEqualTo(values.length); in hasRowValues() 86 check("Row: %s", mActual.getPosition()).that(actualValues).isEqualTo(expectedValues); in hasRowValues() 102 check("getColumnIndex()").that(index).isNotEqualTo(-1); in hasRowValue() 104 check("Row[%s]: %s", columnName, index).that(mActual.getString(index)) in hasRowValue() 112 check("getColumnIndex()").that(index).isNotEqualTo(-1); in intField() 113 check("getType()").that(mActual.getType(index)).isEqualTo(Cursor.FIELD_TYPE_INTEGER); in intField() 115 return check("getInt()").that(mActual.getInt(index)); in intField() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityMouseTest.java | 89 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag() 92 onView(withId(R.id.textview)).check(hasSelection("")); in testSelectTextByDrag() 103 onView(withId(R.id.textview)).check(hasSelection("llo wor")); in testSelectTextByDrag_reverse() 156 onView(withId(R.id.textview)).check(hasSelection("c def g")); in testContextMenu() 168 onView(withId(R.id.textview)).check(hasSelection("")); in testContextMenu() 169 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(text.indexOf("i"))); in testContextMenu() 185 onView(withId(R.id.textview)).check(matches(withText("abc ghi.def"))); in testDragAndDrop() 186 onView(withId(R.id.textview)).check(hasSelection("")); in testDragAndDrop() 187 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex("abc ghi.def".length())); in testDragAndDrop() 201 onView(withId(R.id.textview)).check(matches(withText("abc ghi.def"))); in testDragAndDrop_longClick() [all …]
|
D | EditorCursorTest.java | 87 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForLtr() 96 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsInViewBoundariesWhenOnLeftForLtr() 105 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForRtl() 114 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsInViewBoundariesWhenOnLeftForRtl() 124 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm() 129 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm() 134 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm() 143 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm() 148 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm() 153 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm() [all …]
|
D | TextViewActivityTest.java | 146 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); in testTypedTextIsOnScreen() 156 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); in testPositionCursorAtTextAtIndex() 167 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testPositionCursorAtTextAtIndex_arabic() 169 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(anyOf(is(0), is(2)))); in testPositionCursorAtTextAtIndex_arabic() 171 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(2)); in testPositionCursorAtTextAtIndex_arabic() 173 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(3)); in testPositionCursorAtTextAtIndex_arabic() 175 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(anyOf(is(3), is(5)))); in testPositionCursorAtTextAtIndex_arabic() 177 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(5)); in testPositionCursorAtTextAtIndex_arabic() 187 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testPositionCursorAtTextAtIndex_devanagari() 189 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(anyOf(is(0), is(2)))); in testPositionCursorAtTextAtIndex_devanagari() [all …]
|
D | EditorCursorDragTest.java | 102 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testCursorDrag_horizontal_whenTextViewContentsFitOnScreen() 107 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(11)); in testCursorDrag_horizontal_whenTextViewContentsFitOnScreen() 112 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(2)); in testCursorDrag_horizontal_whenTextViewContentsFitOnScreen() 120 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testCursorDrag_horizontal_whenTextViewContentsLargerThanScreen() 125 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(11)); in testCursorDrag_horizontal_whenTextViewContentsLargerThanScreen() 130 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(2)); in testCursorDrag_horizontal_whenTextViewContentsLargerThanScreen() 141 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen() 147 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(text.indexOf("1"))); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen() 153 onView(withId(R.id.textview)).check(hasSelection(not(emptyString()))); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen() 158 onView(withId(R.id.textview)).check(hasSelection(emptyString())); in testCursorDrag_diagonal_whenTextViewContentsFitOnScreen() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/subjects/ |
D | TransitionStateSubject.kt | 44 check("currentScene").that(actual.currentScene).isEqualTo(sceneKey) in hasCurrentScene() 76 check("currentScene").that(actual.currentScene).isEqualTo(sceneKey) in hasCurrentScene() 80 check("fromScene").that(actual.fromScene).isEqualTo(sceneKey) in hasFromScene() 84 check("toScene").that(actual.toScene).isEqualTo(sceneKey) in hasToScene() 88 check("progress").that(actual.progress).isWithin(tolerance).of(progress) in hasProgress() 92 check("progressVelocity") in hasProgressVelocity() 99 check("isInitiatedByUserInput").that(actual.isInitiatedByUserInput).isTrue() in isInitiatedByUserInput() 103 check("isUserInputOngoing").that(actual.isUserInputOngoing).isEqualTo(isUserInputOngoing) in hasIsUserInputOngoing() 107 check("currentOverscrollSpec").that(actual.currentOverscrollSpec).isNotNull() in hasOverscrollSpec() 112 check("currentOverscrollSpec").that(actual.currentOverscrollSpec).isNull() in hasNoOverscrollSpec() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | PollingCheck.java | 37 protected abstract boolean check(); in check() method in PollingCheck 40 if (check()) { in run() 52 if (check()) { in run() 62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() method in PollingCheck 79 protected boolean check() { in waitFor() method 88 protected boolean check() { in waitFor() method
|
D | TestablePermissions.java | 60 int check(String permission) { in check() method in TestablePermissions 64 int check(Uri uri, int modeFlags) { in check() method in TestablePermissions 70 if (check(permission) != PackageManager.PERMISSION_GRANTED) { in enforce() 76 if (check(uri, modeFlags) != PackageManager.PERMISSION_GRANTED) { in enforce()
|
D | TestableContext.java | 85 public TestableContext(Context base, LeakCheck check) { in TestableContext() argument 105 mReceiver = check != null ? check.getTracker("receiver") : null; in TestableContext() 106 mService = check != null ? check.getTracker("service") : null; in TestableContext() 107 mComponent = check != null ? check.getTracker("component") : null; in TestableContext() 389 return mTestablePermissions.check(permission); in checkCallingOrSelfPermission() 397 return mTestablePermissions.check(permission); in checkCallingPermission() 405 return mTestablePermissions.check(permission); in checkPermission() 413 return mTestablePermissions.check(permission); in checkPermission() 421 return mTestablePermissions.check(permission); in checkSelfPermission() 456 return mTestablePermissions.check(uri, modeFlags); in checkCallingOrSelfUriPermission() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | PollingCheck.java | 47 protected abstract boolean check(); in check() method in PollingCheck 53 if (check()) { in run() 65 if (check()) { in run() 83 protected boolean check() { in waitFor() method 98 protected boolean check() { in waitFor() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | WorkTypeConfigTest.java | 66 private void check(@Nullable DeviceConfig.Properties config, in check() method in WorkTypeConfigTest 110 check(null, /* limit */ 16, /*default*/ 13, in test() 118 check(null, /* limit */ 16, /*default*/ 5, in test() 124 check(null, /* limit */ 16, /*default*/ 5, in test() 134 check(null, /* limit */ 16, /*default*/ 5, in test() 144 check(null, /* limit */ 16, /*default*/ 0, in test() 150 check(null, /* limit */ 16, /*default*/ -1, in test() 156 check(null, /* limit */ 16, /*default*/ 5, in test() 166 check(null, /* limit */ 16, /*default*/ 5, in test() 176 check(null, /* limit */ 16, /*default*/ 6, in test() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/base/actions/ |
D | QSTileIntentUserInputHandlerSubject.kt | 34 check("handledInputs").that(subject.handledInputs).hasSize(1) in <lambda>() 36 check("intentInputs").that(subject.intentInputs).hasSize(1) in <lambda>() 45 check("handledInputs").that(subject.handledInputs).hasSize(1) in <lambda>() 47 check("intentInputs").that(subject.pendingIntentInputs).hasSize(1) in <lambda>() 53 check("handledInputs").that(subject.handledInputs).isEmpty() in <lambda>()
|
/frameworks/native/libs/ftl/ |
D | function_test.cpp | 232 auto check = [](Function f) { return f(0); }; in TEST() local 240 static_assert(std::is_invocable_v<decltype(check), decltype(nullptr)>); in TEST() 243 EXPECT_EQ(check(ftl::no_op), 0); in TEST() 245 EXPECT_EQ(check(exact), 0); in TEST() 246 EXPECT_EQ(check(inexact), 0); in TEST() 247 EXPECT_EQ(check(templated), 0); in TEST() 249 EXPECT_EQ(check(Function::make<&ImplicitConversionsHelper::exact>(&helper)), 0); in TEST() 250 EXPECT_EQ(check(Function::make<&ImplicitConversionsHelper::inexact>(&helper)), 0); in TEST() 251 EXPECT_EQ(check(Function::make<&ImplicitConversionsHelper::templated<int>>(&helper)), 0); in TEST() 253 EXPECT_EQ(check(Function::make<&ImplicitConversionsHelper::static_exact>()), 0); in TEST() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/ |
D | AccessibilityValidatorTests.java | 71 expectedLevels.check(dupBounds); in testPaused() 86 expectedLevels.check(dupBounds); in testDuplicateClickableBoundsCheck() 100 expectedLevels.check(duplicateSpeakableTexts); in testDuplicateSpeakableTextsCheck() 114 expectedLevels.check(redundant); in testRedundantDescriptionCheck() 129 expectedLevels.check(speakableCheck); in testLabelFor() 143 expectedLevels.check(speakableCheck); in testImportantForAccessibility() 157 expectedLevels.check(speakableCheck); in testSpeakableTextPresentCheck() 179 expectedLevels.check(textContrast); in testTextContrastCheck() 202 expectedLevels.check(textContrast); in testSwitchTextContrastCheck() 222 expectedLevels.check(textContrast); in testTextContrastCheckNoImage() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/shared/model/ |
D | SceneContainerConfig.kt | 59 check(sceneKeys.isNotEmpty()) { "A container must have at least one scene key." } in <lambda>() 61 check(sceneKeys.contains(initialSceneKey)) { in <lambda>() 65 check(navigationDistances.keys == sceneKeys.toSet()) { in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationGestureHandlerTest.java | 852 check(mMgh.mCurrentState == mMgh.mDetectingState, STATE_IDLE); in testActionUpNotAtEdge_singlePanningState_detectingState() 1414 check(tapCount() < 2, state); in assertIn() 1415 check(!mMgh.mDetectingState.mShortcutTriggered, state); in assertIn() 1416 check(!isActivated(), state); in assertIn() 1417 check(!isZoomed(), state); in assertIn() 1420 check(isActivated(), state); in assertIn() 1421 check(tapCount() < 2, state); in assertIn() 1424 check(mMgh.mDetectingState.mShortcutTriggered, state); in assertIn() 1425 check(isActivated(), state); in assertIn() 1426 check(!isZoomed(), state); in assertIn() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/policy/ |
D | WorkProfilePolicyTest.kt | 67 policy.check( in <lambda>() 87 policy.check( in <lambda>() 103 policy.check( in <lambda>() 122 policy.check(singleFullScreen(TaskSpec(taskId = 1002, name = FILES, userId = WORK))) in withWorkFullScreen_matched() 141 policy.check( in <lambda>() 166 policy.check( in <lambda>() 186 policy.check( in <lambda>() 211 policy.check( in <lambda>() 237 policy.check( in <lambda>()
|