Home
last modified time | relevance | path

Searched refs:info2 (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/native/libs/gui/tests/
DDisplayInfo_test.cpp40 DisplayInfo info2; in TEST() local
41 info2.readFromParcel(&p); in TEST()
42 ASSERT_EQ(info.displayId, info2.displayId); in TEST()
43 ASSERT_EQ(info.logicalWidth, info2.logicalWidth); in TEST()
44 ASSERT_EQ(info.logicalHeight, info2.logicalHeight); in TEST()
45 ASSERT_EQ(info.transform, info2.transform); in TEST()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DVibratorInfoFactoryTest.java41 VibratorInfo info2 = new VibratorInfo.Builder(/* id= */ 2) in testCreatedInfo_hasTheRequestedId() local
48 VibratorInfoFactory.create(/* id= */ -3, new VibratorInfo[] {info1, info2}); in testCreatedInfo_hasTheRequestedId()
83 VibratorInfo info2 = new VibratorInfo.Builder(/* id= */ 2) in testCreatedInfo_hasEqualContentRegardlessOfSourceInfoOrder() local
89 VibratorInfoFactory.create(/* id= */ -1, new VibratorInfo[] {info1, info2}), in testCreatedInfo_hasEqualContentRegardlessOfSourceInfoOrder()
90 VibratorInfoFactory.create(/* id= */ -1, new VibratorInfo[] {info2, info1})); in testCreatedInfo_hasEqualContentRegardlessOfSourceInfoOrder()
100 VibratorInfo info2 = new VibratorInfo.Builder(/* id= */ -2) in testCreatedInfoContents() local
116 VibratorInfoFactory.create(/* id= */ 3, new VibratorInfo[] {info1, info2})); in testCreatedInfoContents()
121 VibratorInfoFactory.create(/* id= */ 3, new VibratorInfo[] {info2, info3})); in testCreatedInfoContents()
127 private static void assertEqualContent(VibratorInfo info1, VibratorInfo info2) { in assertEqualContent() argument
128 assertTrue(info1.equalContent(info2)); in assertEqualContent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DProxyAccessibilityServiceConnectionTest.java135 final AccessibilityServiceInfo info2 = new AccessibilityServiceInfo(); in testSetInstalledAndEnabledServices_returnList() local
137 infos.add(info2); in testSetInstalledAndEnabledServices_returnList()
145 assertThat(infoList.get(1)).isEqualTo(info2); in testSetInstalledAndEnabledServices_returnList()
176 final AccessibilityServiceInfo info2 = new AccessibilityServiceInfo(); in testSetInstalledAndEnabledServices_connectionInfoIsUnion() local
177 info2.packageNames = new String[]{PACKAGE_2, PACKAGE_3}; in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
178 info2.setInteractiveUiTimeoutMillis(INTERACTIVE_UI_TIMEOUT_100MS); in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
179 info2.setNonInteractiveUiTimeoutMillis(NON_INTERACTIVE_UI_TIMEOUT_200MS); in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
180 info2.notificationTimeout = NOTIFICATION_TIMEOUT_200MS; in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
181 info2.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
182 info2.feedbackType = FEEDBACK_GENERIC; in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java143 final ResolveInfo info2 = mPackageManager.resolveActivity( in testResolveDisabledActivity() local
145 assertNotNull(info2); in testResolveDisabledActivity()
146 assertNotNull(info2.activityInfo); in testResolveDisabledActivity()
147 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity()
241 final ResolveInfo info2 = in testEnableActivity() local
244 assertNotNull(info2); in testEnableActivity()
245 assertNotNull(info2.activityInfo); in testEnableActivity()
246 assertFalse(info2.activityInfo.enabled); in testEnableActivity()
265 final ResolveInfo info2 = in testDisableActivity() local
268 assertNull(info2); in testDisableActivity()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsCallInfoTrackerTest.java253 ImsCallInfo info2 = imsCallInfos.get(1); in testMultiCalls() local
255 assertNotNull(info2); in testMultiCalls()
256 assertEquals(2, info2.getIndex()); in testMultiCalls()
257 assertEquals(Call.State.WAITING, info2.getCallState()); in testMultiCalls()
258 assertTrue(info2.isIncoming()); in testMultiCalls()
279 info2 = imsCallInfos.get(1); in testMultiCalls()
281 assertNotNull(info2); in testMultiCalls()
282 assertEquals(2, info2.getIndex()); in testMultiCalls()
283 assertEquals(Call.State.WAITING, info2.getCallState()); in testMultiCalls()
297 info2 = imsCallInfos.get(0); in testMultiCalls()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayTest.java475 DisplayInfo info2 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateLayoutLimitedRefreshRate() local
477 assertEquals(info2, info1); in testUpdateLayoutLimitedRefreshRate()
481 assertNotEquals(info3, info2); in testUpdateLayoutLimitedRefreshRate()
504 DisplayInfo info2 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateRefreshRateThermalThrottling() local
506 assertEquals(info2, info1); in testUpdateRefreshRateThermalThrottling()
510 assertNotEquals(info3, info2); in testUpdateRefreshRateThermalThrottling()
532 DisplayInfo info2 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateDisplayGroupIdLocked() local
534 assertEquals(info2, info1); in testUpdateDisplayGroupIdLocked()
538 assertNotEquals(info3, info2); in testUpdateDisplayGroupIdLocked()
558 DisplayInfo info2 = mLogicalDisplay.getDisplayInfoLocked(); in testSetThermalBrightnessThrottlingDataId() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyboardShortcutListSearchTest.java138 KeyboardShortcutInfo info2 = mock(KeyboardShortcutInfo.class); in createKeyboardShortcutGroupForIconTests() local
140 when(info2.getIcon()).thenReturn(icon); in createKeyboardShortcutGroupForIconTests()
142 when(info2.getLabel()).thenReturn("label"); in createKeyboardShortcutGroupForIconTests()
145 Arrays.asList(new KeyboardShortcutInfo[]{ info1, info2})); in createKeyboardShortcutGroupForIconTests()
DKeyboardShortcutsTest.java184 KeyboardShortcutInfo info2 = mock(KeyboardShortcutInfo.class); in createKeyboardShortcutGroupForIconTests() local
186 when(info2.getIcon()).thenReturn(icon); in createKeyboardShortcutGroupForIconTests()
189 new KeyboardShortcutGroup("label", Arrays.asList(info1, info2)); in createKeyboardShortcutGroupForIconTests()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconsInteractor.kt249 val info2 = subList[1] in filterSubsBasedOnOpportunistic() constant
252 if (info1.groupUuid == null || info1.groupUuid != info2.groupUuid) { in filterSubsBasedOnOpportunistic()
257 if (!info1.isOpportunistic && !info2.isOpportunistic) { in filterSubsBasedOnOpportunistic()
267 return if (info1.isOpportunistic) listOf(info2) else listOf(info1) in filterSubsBasedOnOpportunistic()
278 listOf(info2) in filterSubsBasedOnOpportunistic()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java117 ApplicationInfo info2 = new ApplicationInfo(); in setUp() local
118 info2.uid = 2; in setUp()
119 result.add(info2); in setUp()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/
DFreeformTaskTransitionObserverTest.java180 final TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE, 0) in testClosesMergedWindowDecorationAfterTransitionFinishes() local
186 mTransitionObserver.onTransitionReady(transition2, info2, startT2, finishT2); in testClosesMergedWindowDecorationAfterTransitionFinishes()
211 final TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE, 0) in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions() local
217 mTransitionObserver.onTransitionReady(transition2, info2, startT2, finishT2); in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions()
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java89 PackageRollbackInfo info2 = createPackageRollbackInfo("com.foo.bar"); in testSnapshotAppData() local
90 helper.snapshotAppData(7, info2, new int[]{10, 11}); in testSnapshotAppData()
91 assertEquals(1, info2.getPendingBackups().size()); in testSnapshotAppData()
92 assertEquals(11, (int) info2.getPendingBackups().get(0)); in testSnapshotAppData()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DTextAppearanceInfoTest.java118 TextAppearanceInfo info2 = TextAppearanceInfo.createFromTextView(mEditText); in testCreateFromTextView_withSpan1() local
119 assertEquals(info2.getTextSize(), 30f, EPSILON); in testCreateFromTextView_withSpan1()
120 assertEquals(info2.getTextColor(), TEXT_COLOR); in testCreateFromTextView_withSpan1()
121 assertEquals(info2.getSystemFontFamilyName(), FONT_FAMILY_NAME); in testCreateFromTextView_withSpan1()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp710 std::shared_ptr<C2Info> info2(new C2Number2Info(2)); in TEST_F() local
714 EXPECT_FALSE(buffer->hasInfo(info2->type())); in TEST_F()
720 EXPECT_FALSE(buffer->hasInfo(info2->type())); in TEST_F()
722 ASSERT_EQ(C2_OK, buffer->setInfo(info2)); in TEST_F()
725 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
731 EXPECT_EQ(*info2, *buffer->info().front()); in TEST_F()
733 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
739 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
745 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
747 removed = buffer->removeInfo(info2->type()); in TEST_F()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBluetoothPowerCalculatorTest.java125 BluetoothActivityEnergyInfo info2 = createBtEnergyInfo(4000, in testTimerBasedModel_byProcessState() local
130 batteryStats.updateBluetoothStateLocked(info2, in testTimerBasedModel_byProcessState()
246 BluetoothActivityEnergyInfo info2 = createBtEnergyInfo(4000, in testMeasuredEnergyBasedModel_byProcessState() local
251 batteryStats.updateBluetoothStateLocked(info2, in testMeasuredEnergyBasedModel_byProcessState()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/activityembedding/
DActivityEmbeddingControllerTests.java125 final TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_OPEN, 0) in testStartAnimation_containsNonActivityEmbeddingChange() local
131 assertTrue(mController.startAnimation(mTransition, info2, mStartTransaction, in testStartAnimation_containsNonActivityEmbeddingChange()
134 assertFalse(info2.getChanges().contains(nonEmbeddedClose)); in testStartAnimation_containsNonActivityEmbeddingChange()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
DKeyguardTransitionRepositoryTest.kt393 val info2 = TransitionInfo(OWNER_NAME, LOCKSCREEN, OCCLUDED, animator = null) in <lambda>() constant
396 ktr.startTransition(info2) in <lambda>()
413 TransitionStep(info2.from, info2.to, 0f, TransitionState.STARTED, OWNER_NAME) in <lambda>()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp226 [](const sp<MediaCodecInfo> &info1, const sp<MediaCodecInfo> &info2) { in MediaCodecList() argument
229 || (info2 != nullptr && info1->getRank() < info2->getRank()); in MediaCodecList()
/frameworks/av/camera/tests/
DCameraBinderTests.cpp592 hardware::camera2::utils::SubmitInfo info2; in TEST_F() local
594 /*out*/&info2); in TEST_F()
597 info2.mLastFrameNumber); in TEST_F()
600 EXPECT_LE(0, info2.mRequestId); in TEST_F()
601 res = device->cancelRequest(info2.mRequestId, /*out*/&lastFrameNumber); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerImpl.java484 SubscriptionInfo info2 = mSubscriptionManager.getActiveSubscriptionInfo(subId2); in isInGroupDataSwitch() local
485 return (info1 != null && info2 != null && info1.getGroupUuid() != null in isInGroupDataSwitch()
486 && info1.getGroupUuid().equals(info2.getGroupUuid())); in isInGroupDataSwitch()
877 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup() local
878 if (info1.getGroupUuid() != null && info1.getGroupUuid().equals(info2.getGroupUuid())) { in filterMobileSubscriptionInSameGroup()
880 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return; in filterMobileSubscriptionInSameGroup()
888 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in filterMobileSubscriptionInSameGroup()
891 ? info2 : info1); in filterMobileSubscriptionInSameGroup()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DShellTransitionTests.java650 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testTransitionQueueing() local
652 transitions.onTransitionReady(transitToken2, info2, new StubTransaction(), in testTransitionQueueing()
691 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testTransitionMerging() local
693 transitions.onTransitionReady(transitToken2, info2, new StubTransaction(), in testTransitionMerging()
946 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testRunWhenIdle() local
948 transitions.onTransitionReady(transitToken2, info2, new StubTransaction(), in testRunWhenIdle()
1033 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testObserverLifecycle_queueing() local
1037 transitions.onTransitionReady(transitToken2, info2, startT2, finishT2); in testObserverLifecycle_queueing()
1038 verify(observer, times(1)).onTransitionReady(transitToken2, info2, startT2, finishT2); in testObserverLifecycle_queueing()
1076 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testObserverLifecycle_merging() local
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java501 final MediaRoute2Info info2 = mock(MediaRoute2Info.class); in getRoutesListWithDuplicatedIds() local
502 when(info2.getId()).thenReturn(TEST_ID_2); in getRoutesListWithDuplicatedIds()
503 when(info2.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in getRoutesListWithDuplicatedIds()
504 when(info2.isSystemRoute()).thenReturn(true); in getRoutesListWithDuplicatedIds()
505 when(info2.getDeduplicationIds()).thenReturn(Set.of(TEST_DUPLICATED_ID_3)); in getRoutesListWithDuplicatedIds()
506 routes.add(info2); in getRoutesListWithDuplicatedIds()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowOrganizerTests.java807 RunningTaskInfo info2 = task2.getTaskInfo(); in testCreateDeleteRootTasks() local
809 info2.configuration.windowConfiguration.getWindowingMode()); in testCreateDeleteRootTasks()
810 assertEquals(ACTIVITY_TYPE_UNDEFINED, info2.topActivityType); in testCreateDeleteRootTasks()
830 final RunningTaskInfo info2 = task2.getTaskInfo(); in testSetAdjacentLaunchRoot() local
833 wct.setAdjacentRoots(info1.token, info2.token); in testSetAdjacentLaunchRoot()
1043 RunningTaskInfo info2 = task2.getTaskInfo(); in testHierarchyTransaction() local
1064 info2.token, true /* onTop */); in testHierarchyTransaction()
1070 lastReportedTiles.get(info2.token.asBinder()).topActivityType); in testHierarchyTransaction()
1082 lastReportedTiles.get(info2.token.asBinder()).topActivityType); in testHierarchyTransaction()
1089 children = mWm.mAtmService.mTaskOrganizerController.getChildTasks(info2.token, in testHierarchyTransaction()
/frameworks/native/services/inputflinger/tests/
DCursorInputMapper_test.cpp631 InputDeviceInfo info2; in TEST_F() local
632 mMapper->populateDeviceInfo(info2); in TEST_F()
634 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, AINPUT_MOTION_RANGE_X, AINPUT_SOURCE_MOUSE, 0, in TEST_F()
636 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, AINPUT_MOTION_RANGE_Y, AINPUT_SOURCE_MOUSE, 0, in TEST_F()
638 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, AINPUT_MOTION_RANGE_PRESSURE, in TEST_F()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicyTest.java148 DisplayInfo info2 = new DisplayInfo(); in setUp() local
151 mPortraitDisplayLayout = new DisplayLayout(info2, res, false, false); in setUp()

12