/aosp_15_r20/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/layout/tests/ |
D | ScaledLayoutTest.java | 61 View view2 = scaledLayout.findViewById(R.id.view2); in testScaledLayout_layoutInXml() local 62 assertNotNull(view2); in testScaledLayout_layoutInXml() 71 assertEquals((int) (400 * 0.1), view2.getWidth()); in testScaledLayout_layoutInXml() 72 assertEquals(300, view2.getHeight()); in testScaledLayout_layoutInXml() 73 assertEquals((int) (400 * 0.2), view2.getLeft()); in testScaledLayout_layoutInXml() 74 assertEquals(0, view2.getTop()); in testScaledLayout_layoutInXml() 95 View view2 = scaledLayout.findViewById(R.id.view2); in testScaledLayout_layoutThroughCode() local 96 assertNotNull(view2); in testScaledLayout_layoutThroughCode() 105 assertEquals(50, view2.getWidth()); in testScaledLayout_layoutThroughCode() 106 assertEquals(50, view2.getHeight()); in testScaledLayout_layoutThroughCode() [all …]
|
D | ScaledLayoutActivity.java | 46 View view2 = new View(this); in createScaledLayoutTestcaseLayout() local 47 view2.setId(R.id.view2); in createScaledLayoutTestcaseLayout() 48 view2.setLayoutParams(new ScaledLayout.ScaledLayoutParams(0f, 0.5f, 0.5f, 1f)); in createScaledLayoutTestcaseLayout() 59 scaledLayout.addView(view2); in createScaledLayoutTestcaseLayout() 74 View view2 = new View(this); in createScaledLayoutTestcaseBounceY() local 75 view2.setId(R.id.view2); in createScaledLayoutTestcaseBounceY() 76 view2.setLayoutParams(new ScaledLayout.ScaledLayoutParams(0.8f, 1f, 0f, 1f)); in createScaledLayoutTestcaseBounceY() 79 scaledLayout.addView(view2); in createScaledLayoutTestcaseBounceY()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/globalactions/ |
H A D | GlobalActionsLayoutTest.java | 176 View view2 = new View(mContext, null); in testOnUpdateList_oneSeparatedOneList() local 181 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_oneSeparatedOneList() 189 assertEquals(view2, mLayout.mListViews.get(0)); in testOnUpdateList_oneSeparatedOneList() 198 View view2 = new View(mContext, null); in testOnUpdateList_twoSeparatedItems() local 202 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems() 211 assertEquals(view2, mLayout.mSeparatedViews.get(1)); in testOnUpdateList_twoSeparatedItems() 223 View view2 = new View(mContext, null); in testOnUpdateList_twoSeparatedItems_reverse() local 228 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems_reverse() 238 assertEquals(view2, mLayout.mSeparatedViews.get(1)); in testOnUpdateList_twoSeparatedItems_reverse() 246 View view2 = new View(mContext, null); in testOnUpdateList_fourInList() local [all …]
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/view/stylus/ |
H A D | HandwritingAreaTrackerTest.java | 81 View view2 = createView(rect2); in updateHandwritingAreaForView_multipleViews() local 83 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_multipleViews() 92 assertThat(viewInfos.get(1).getView()).isEqualTo(view2); in updateHandwritingAreaForView_multipleViews() 102 View view2 = createView(rect2); in updateHandwritingAreaForView_afterDisableAutoHandwriting() local 104 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_afterDisableAutoHandwriting() 119 assertThat(viewInfos.get(0).getView()).isEqualTo(view2); in updateHandwritingAreaForView_afterDisableAutoHandwriting() 129 View view2 = createView(rect2); in updateHandwritingAreaForView_removesInactiveView() local 131 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_removesInactiveView() 138 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_removesInactiveView() 146 assertThat(viewInfos.get(0).getView()).isEqualTo(view2); in updateHandwritingAreaForView_removesInactiveView()
|
/aosp_15_r20/external/tensorflow/tensorflow/lite/delegates/gpu/gl/ |
H A D | gl_buffer_test.cc | 91 GlBuffer view2; in TEST() local 92 EXPECT_FALSE(view1.MakeView(1, 16, &view2).ok()); in TEST() 93 ASSERT_TRUE(view1.MakeView(2, 2, &view2).ok()); in TEST() 95 EXPECT_FALSE(view2.has_ownership()); in TEST() 96 EXPECT_EQ(2, view2.bytes_size()); in TEST() 97 EXPECT_EQ(6, view2.offset()); in TEST() 110 GlBuffer view2; in TEST() local 111 ASSERT_TRUE(buffer.MakeView(8, 4, &view2).ok()); in TEST() 115 ASSERT_TRUE(CopyBuffer(view1, view2).ok()); in TEST()
|
/aosp_15_r20/external/emboss/compiler/back_end/cpp/testcode/ |
H A D | parameters_test.cc | 45 auto view2 = view1; in TEST() local 47 EXPECT_EQ(view1.Ok(), view2.Ok()); in TEST() 49 view2.axis_a().axis_type().Read()); in TEST() 78 auto view2 = view1; in TEST() local 80 EXPECT_EQ(view1.Ok(), view2.Ok()); in TEST() 81 EXPECT_EQ(view1.values().ElementCount(), view2.values().ElementCount()); in TEST() 82 EXPECT_EQ(view1.values()[0].value().Read(), view2.values()[0].value().Read()); in TEST() 83 EXPECT_EQ(view1.x().x().Read(), view2.x().x().Read()); in TEST() 84 EXPECT_EQ(view1.values()[1].value().Read(), view2.values()[1].value().Read()); in TEST() 85 EXPECT_EQ(view1.y().y().Read(), view2.y().y().Read()); in TEST() [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/ranges/range.adaptors/range.all/range.ref.view/ |
H A D | range.ref.view.pass.cpp | 129 std::ranges::ref_view<ForwardRange> view2 = range2; in test() local 130 assert(base(view2.begin()) == globalBuff); in test() 148 std::ranges::ref_view<ForwardRange> view2 = range2; in test() local 149 assert(base(view2.end()) == globalBuff + 8); in test() 167 std::ranges::ref_view<ForwardRange> view2 = range2; in test() local 168 assert(!view2.empty()); in test() 181 std::ranges::ref_view<Range> view2 = range2; in test() local 182 assert(view2.size() == 6); in test() 194 std::ranges::ref_view<Range> view2 = range2; in test() local 195 assert(view2.data() == globalBuff + 2); in test()
|
/aosp_15_r20/external/zucchini/ |
H A D | buffer_view_unittest.cc | 239 ConstBufferView view2(&bytes2[0], bytes2.size()); in TEST_F() local 242 EXPECT_TRUE(view2.equals(view2)); in TEST_F() 243 EXPECT_FALSE(view1.equals(view2)); in TEST_F() 244 EXPECT_FALSE(view2.equals(view1)); in TEST_F() 246 EXPECT_TRUE((view1[{0, 0}]).equals(view2[{0, 0}])); in TEST_F() 247 EXPECT_TRUE((view1[{0, 0}]).equals(view2[{5, 0}])); in TEST_F() 248 EXPECT_TRUE((view1[{0, 5}]).equals(view2[{0, 5}])); in TEST_F() 249 EXPECT_FALSE((view1[{0, 6}]).equals(view2[{0, 6}])); in TEST_F() 253 EXPECT_TRUE((view2[{0, 1}]).equals(view2[{8, 1}])); in TEST_F() 254 EXPECT_FALSE((view2[{1, 1}]).equals(view2[{8, 1}])); in TEST_F()
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ViewGroupScrollCaptureTest.java | 266 final MockView view2 = new MockView(context, 0, 0, 200, 200); in testDispatchScrollCaptureSearch_traversesInDrawingOrder() local 268 view2.setScrollCaptureCallback(callback2); in testDispatchScrollCaptureSearch_traversesInDrawingOrder() 271 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_traversesInDrawingOrder() 287 assertEquals(List.of(view2, view1), targetViews); in testDispatchScrollCaptureSearch_traversesInDrawingOrder() 339 final MockView view2 = new MockView(context, 0, 25, 150, 100); in testDispatchScrollCaptureSearch_toChildren() local 340 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren() 379 view2.assertDispatchScrollCaptureSearchCount(1); in testDispatchScrollCaptureSearch_toChildren() 380 view2.assertDispatchScrollCaptureSearchLastArgs( in testDispatchScrollCaptureSearch_toChildren() 383 view2.assertCreateScrollCaptureCallbackInternalCount(1); in testDispatchScrollCaptureSearch_toChildren() 436 final MockView view2 = new MockView(context, 0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local [all …]
|
H A D | ViewInputConnectionTest.java | 205 final TestButton view2 = new TestButton(mActivity); in testInputConnectionCallbacks_nonEditableInput() local 208 viewGroup.addView(view2); in testInputConnectionCallbacks_nonEditableInput() 216 assertThat(view2.isFocused()).isFalse(); in testInputConnectionCallbacks_nonEditableInput() 226 assertThat(view2.mCalledOnCreateInputConnection).isFalse(); in testInputConnectionCallbacks_nonEditableInput() 227 assertThat(view2.mCalledOnInputConnectionOpened).isFalse(); in testInputConnectionCallbacks_nonEditableInput() 228 assertThat(view2.mCalledOnInputConnectionClosed).isFalse(); in testInputConnectionCallbacks_nonEditableInput() 232 mActivityRule.runOnUiThread(view2::requestFocus); in testInputConnectionCallbacks_nonEditableInput() 235 assertThat(view2.isFocused()).isTrue(); in testInputConnectionCallbacks_nonEditableInput() 245 assertThat(view2.mCalledOnCreateInputConnection).isTrue(); in testInputConnectionCallbacks_nonEditableInput() 246 assertThat(view2.mCalledOnInputConnectionOpened).isFalse(); in testInputConnectionCallbacks_nonEditableInput() [all …]
|
/aosp_15_r20/cts/tests/tests/view/src/android/view/cts/ |
H A D | ViewTreeObserverTest.java | 101 final View view2 = mActivity.findViewById(R.id.view2); in testAddOnGlobalFocusChangeListener() local 110 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener() 112 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener() 246 final View view2 = mActivity.findViewById(R.id.view2); in testRemoveOnGlobalFocusChangeListener() local 254 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener() 256 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
|
H A D | ViewGroup_ScrollCaptureTest.java | 250 final MockView view2 = new MockView(context, 0, 25, 150, 100); in testDispatchScrollCaptureSearch_toChildren() local 251 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren() 286 view2.assertDispatchScrollCaptureSearchCount(1); in testDispatchScrollCaptureSearch_toChildren() 287 view2.assertDispatchScrollCaptureSearchLastArgs( in testDispatchScrollCaptureSearch_toChildren() 346 final MockView view2 = new MockView(context, 0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local 347 parent.addView(view2); in testOnScrollCaptureSearch_withPadding() 366 view2.assertOnScrollCaptureSearchLastArgs( in testOnScrollCaptureSearch_withPadding()
|
H A D | ViewSourceLayoutTest.java | 57 View view2 = activity.findViewById(R.id.view2); in testGetSourceLayout() local 58 assertEquals(R.layout.view_source_layout_test_include_layout, view2.getSourceLayoutResId()); in testGetSourceLayout()
|
H A D | ViewGroupTest.java | 2506 TemporaryDetachingMockView view2 = new TemporaryDetachingMockView(mContext); in testTemporaryDetach() local 2508 vg.addView(view2); in testTemporaryDetach() 2526 assertFalse(view2.isTemporarilyDetached()); in testTemporaryDetach() 2527 assertEquals(0, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2528 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() 2529 assertEquals(0, view2.getOnStartTemporaryDetachCount()); in testTemporaryDetach() 2530 assertEquals(0, view2.getOnFinishTemporaryDetachCount()); in testTemporaryDetach() 2555 assertTrue(view2.isTemporarilyDetached()); in testTemporaryDetach() 2556 assertEquals(1, view2.getDispatchStartTemporaryDetachCount()); in testTemporaryDetach() 2557 assertEquals(0, view2.getDispatchFinishTemporaryDetachCount()); in testTemporaryDetach() [all …]
|
/aosp_15_r20/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
H A D | VisibilitySetterActionTest.java | 102 final View view2 = new View(sContext); in testMultipleChildren() local 103 view2.setId(108); in testMultipleChildren() 104 view2.setVisibility(View.GONE); in testMultipleChildren() 105 mRootView.addView(view2); in testMultipleChildren() 110 assertThat(view2.getVisibility()).isEqualTo(View.INVISIBLE); in testMultipleChildren()
|
/aosp_15_r20/system/libbase/ |
H A D | function_ref_test.cpp | 80 function_ref<int(int)> view2 = view; in TEST() local 81 EXPECT_EQ(view(10), view2(10)); in TEST() 83 view = view2; in TEST() 84 EXPECT_EQ(view(10), view2(10)); in TEST()
|
/aosp_15_r20/cts/tests/tests/widget/src/android/widget/cts/ |
H A D | RelativeLayout_LayoutParamsTest.java | 115 View view2 = mActivity.findViewById(R.id.relative_view2); in testConstructor() local 116 ViewAsserts.assertLeftAligned(view1, view2); in testConstructor() 117 assertEquals(view1.getBottom(), view2.getTop()); in testConstructor() 118 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testConstructor() 128 ViewAsserts.assertBottomAligned(view2, view3); in testConstructor() 222 View view2 = mActivity.findViewById(R.id.relative_view22); in testStartEnd() local 223 ViewAsserts.assertLeftAligned(view1, view2); in testStartEnd() 224 assertEquals(view1.getBottom(), view2.getTop()); in testStartEnd() 225 layoutParams = (RelativeLayout.LayoutParams) (view2.getLayoutParams()); in testStartEnd() 244 ViewAsserts.assertBottomAligned(view2, view3); in testStartEnd()
|
/aosp_15_r20/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
H A D | ViewManagerImplTest.java | 183 View view2 = in getAllExportedViewsResultIsUnmodifiable() local 192 exported.add(view2); in getAllExportedViewsResultIsUnmodifiable() 229 View view2 = in preventRegisteringDifferentViewWithSameName() local 238 view1, view2, "A different view with the same name is already registered"); in preventRegisteringDifferentViewWithSameName() 248 View view2 = in preventRegisteringDifferentMeasureWithSameName() local 252 view1, view2, "A different measure with the same name is already registered"); in preventRegisteringDifferentMeasureWithSameName() 255 private void testFailedToRegisterView(View view1, View view2, String message) { in testFailedToRegisterView() argument 260 viewManager.registerView(view2); in testFailedToRegisterView() 750 final View view2 = in testMultipleViewSameMeasure() local 755 viewManager.registerView(view2); in testMultipleViewSameMeasure() [all …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/mobile/ui/ |
H A D | MobileViewLoggerTest.kt | 71 val view2 = TextView(context) in collectionStarted_multipleViews_dumpHasInfo() constant 76 underTest.logCollectionStarted(view2, viewModel2) in collectionStarted_multipleViews_dumpHasInfo() 86 val view2 = TextView(context) in collectionStopped_dumpHasInfo() constant 91 underTest.logCollectionStarted(view2, viewModel2) in collectionStopped_dumpHasInfo()
|
/aosp_15_r20/external/pytorch/torch/_functorch/_aot_autograd/ |
H A D | runtime_wrappers.py | 1257 def _are_differentiable_views(view1, view2): argument 1258 if view1 is view2: 1260 if view1._base is None and view2._base is None: 1262 if view1._base is view2._base or view1._base is view2 or view1 is view2._base: 1266 def _same_dtype_views(view1, view2): argument 1267 if view1.dtype != view2.dtype: 1271 if view2._base is not None and view2.dtype != view2._base.dtype: 1330 view2 = fwd_inputs[idx2] 1335 view1, view2 1340 view1, view2
|
/aosp_15_r20/external/pigweed/pw_bluetooth/size_report/ |
H A D | make_2_views_and_write.cc | 27 auto view2 = in main() local 29 view2.payload().Write(0x01); in main() 30 view2.payload().Read(); in main()
|
/aosp_15_r20/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/sentencepiece/ |
H A D | utils.h | 53 inline bool operator==(const string_view& view1, const string_view& view2) { 54 if (view1.length() != view2.length()) { 57 return memcmp(view1.data(), view2.data(), view1.length()) == 0;
|
/aosp_15_r20/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/folder/ |
D | FolderTest.kt | 830 val view2 = Mockito.mock(View::class.java) in onRemove should call removeItem with the correct views() constant 832 doReturn(view2).whenever(folder).getViewForInfo(items[1]) in onRemove should call removeItem with the correct views() 838 verify(folder.mContent, times(1)).removeItem(view2) in onRemove should call removeItem with the correct views() 851 val view2 = Mockito.mock(View::class.java) in onRemove should set mRearrangeOnClose to true and not call rearrangeChildren if animating() constant 853 doReturn(view2).whenever(folder).getViewForInfo(items[1]) in onRemove should set mRearrangeOnClose to true and not call rearrangeChildren if animating() 873 val view2 = Mockito.mock(View::class.java) in onRemove should set not change mRearrangeOnClose and not call rearrangeChildren if not animating() constant 875 doReturn(view2).whenever(folder).getViewForInfo(items[1]) in onRemove should set not change mRearrangeOnClose and not call rearrangeChildren if not animating() 893 val view2 = Mockito.mock(View::class.java) in onRemove should call close if mIsOpen is true and item count is less than or equal to one() constant 895 doReturn(view2).whenever(folder).getViewForInfo(items[1]) in onRemove should call close if mIsOpen is true and item count is less than or equal to one() 914 val view2 = Mockito.mock(View::class.java) in onRemove should call replaceFolderWithFinalItem if mIsOpen is false and item count is less than or equal to one() constant [all …]
|
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/common/rotary/ |
D | NumberPickerUtils.java | 81 static boolean hasCommonNumberPickerParent(@Nullable View view1, @Nullable View view2) { in hasCommonNumberPickerParent() argument 82 if (view1 == null || view2 == null) { in hasCommonNumberPickerParent() 86 View view2Ancestor = getNumberPickerParent(view2); in hasCommonNumberPickerParent()
|
/aosp_15_r20/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
H A D | NoopViewManagerTest.java | 59 final View view2 = in noopViewManager_RegisterView_DisallowRegisteringDifferentViewWithSameName() local 68 viewManager.registerView(view2); in noopViewManager_RegisterView_DisallowRegisteringDifferentViewWithSameName() 180 View view2 = in getAllExportedViews_ResultIsUnmodifiable() local 184 exported.add(view2); in getAllExportedViews_ResultIsUnmodifiable()
|