/frameworks/native/libs/gui/tests/ |
D | DisplayInfo_test.cpp | 40 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | PowerUtilTest.java | 67 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage() local 81 assertThat(info2).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage() 93 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage() local 107 assertThat(info2).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage() 119 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_lessThanSevenMinutes_usesCorrectString() local 127 assertThat(info2.contains("may shut down soon")).isTrue(); in testGetBatteryRemainingStringFormatted_lessThanSevenMinutes_usesCorrectString() 136 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_betweenSevenAndFifteenMinutes_usesCorrectString() local 144 assertThat(info2).isEqualTo("Less than 15 min left (10%)"); in testGetBatteryRemainingStringFormatted_betweenSevenAndFifteenMinutes_usesCorrectString() 153 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_betweenOneAndTwoDays_usesCorrectString() local 165 assertThat(info2).isEqualTo("About 1 day, 6 hr left (10%)"); in testGetBatteryRemainingStringFormatted_betweenOneAndTwoDays_usesCorrectString() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 143 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/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/ |
D | FreeformTaskTransitionObserverTest.java | 179 final TransitionInfo info2 = new TransitionInfo(TRANSIT_CLOSE, 0); in testClosesMergedWindowDecorationAfterTransitionFinishes() local 180 info2.addChange(change2); in testClosesMergedWindowDecorationAfterTransitionFinishes() 185 mTransitionObserver.onTransitionReady(transition2, info2, startT2, finishT2); in testClosesMergedWindowDecorationAfterTransitionFinishes() 210 final TransitionInfo info2 = new TransitionInfo(TRANSIT_CLOSE, 0); in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions() local 211 info2.addChange(change2); in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions() 216 mTransitionObserver.onTransitionReady(transition2, info2, startT2, finishT2); in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/ |
D | MobileIconsInteractor.kt | 150 val info2 = unfilteredSubs[1] in activeId() constant 153 if (info1.groupUuid == null || info1.groupUuid != info2.groupUuid) { in activeId() 158 if (!info1.isOpportunistic && !info2.isOpportunistic) { in activeId() 168 return@combine if (info1.isOpportunistic) listOf(info2) else listOf(info1) in activeId() 173 listOf(info2) in activeId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandlerTests.java | 117 ApplicationInfo info2 = new ApplicationInfo(); in setUp() local 118 info2.uid = 2; in setUp() 119 result.add(info2); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | AppDataRollbackHelperTest.java | 89 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/coretests/src/com/android/internal/os/ |
D | BluetoothPowerCalculatorTest.java | 114 BluetoothActivityEnergyInfo info2 = createBtEnergyInfo(4000, in testTimerBasedModel_byProcessState() local 119 batteryStats.updateBluetoothStateLocked(info2, in testTimerBasedModel_byProcessState() 235 BluetoothActivityEnergyInfo info2 = createBtEnergyInfo(4000, in testMeasuredEnergyBasedModel_byProcessState() local 240 batteryStats.updateBluetoothStateLocked(info2, in testMeasuredEnergyBasedModel_byProcessState()
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 710 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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | ShellTransitionTests.java | 503 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testTransitionQueueing() local 505 transitions.onTransitionReady(transitToken2, info2, mock(SurfaceControl.Transaction.class), in testTransitionQueueing() 544 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testTransitionMerging() local 546 transitions.onTransitionReady(transitToken2, info2, mock(SurfaceControl.Transaction.class), in testTransitionMerging() 683 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testRunWhenIdle() local 685 transitions.onTransitionReady(transitToken2, info2, mock(SurfaceControl.Transaction.class), in testRunWhenIdle() 770 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testObserverLifecycle_queueing() local 774 transitions.onTransitionReady(transitToken2, info2, startT2, finishT2); in testObserverLifecycle_queueing() 775 verify(observer, times(1)).onTransitionReady(transitToken2, info2, startT2, finishT2); in testObserverLifecycle_queueing() 813 TransitionInfo info2 = new TransitionInfoBuilder(TRANSIT_CLOSE) in testObserverLifecycle_merging() local [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecList.cpp | 225 [](const sp<MediaCodecInfo> &info1, const sp<MediaCodecInfo> &info2) { in MediaCodecList() argument 228 || (info2 != nullptr && info1->getRank() < info2->getRank()); in MediaCodecList()
|
/frameworks/av/camera/tests/ |
D | CameraBinderTests.cpp | 584 hardware::camera2::utils::SubmitInfo info2; in TEST_F() local 586 /*out*/&info2); in TEST_F() 589 info2.mLastFrameNumber); in TEST_F() 592 EXPECT_LE(0, info2.mRequestId); in TEST_F() 593 res = device->cancelRequest(info2.mRequestId, /*out*/&lastFrameNumber); in TEST_F()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | NetworkControllerImpl.java | 483 SubscriptionInfo info2 = mSubscriptionManager.getActiveSubscriptionInfo(subId2); in isInGroupDataSwitch() local 484 return (info1 != null && info2 != null && info1.getGroupUuid() != null in isInGroupDataSwitch() 485 && info1.getGroupUuid().equals(info2.getGroupUuid())); in isInGroupDataSwitch() 888 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup() local 889 if (info1.getGroupUuid() != null && info1.getGroupUuid().equals(info2.getGroupUuid())) { in filterMobileSubscriptionInSameGroup() 891 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return; in filterMobileSubscriptionInSameGroup() 899 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in filterMobileSubscriptionInSameGroup() 902 ? info2 : info1); in filterMobileSubscriptionInSameGroup()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowOrganizerTests.java | 703 RunningTaskInfo info2 = task2.getTaskInfo(); in testCreateDeleteRootTasks() local 705 info2.configuration.windowConfiguration.getWindowingMode()); in testCreateDeleteRootTasks() 706 assertEquals(ACTIVITY_TYPE_UNDEFINED, info2.topActivityType); in testCreateDeleteRootTasks() 726 final RunningTaskInfo info2 = task2.getTaskInfo(); in testSetAdjacentLaunchRoot() local 729 wct.setAdjacentRoots(info1.token, info2.token); in testSetAdjacentLaunchRoot() 907 RunningTaskInfo info2 = task2.getTaskInfo(); in testHierarchyTransaction() local 929 info2.token, true /* onTop */); in testHierarchyTransaction() 935 lastReportedTiles.get(info2.token.asBinder()).topActivityType); in testHierarchyTransaction() 947 lastReportedTiles.get(info2.token.asBinder()).topActivityType); in testHierarchyTransaction() 954 children = mWm.mAtmService.mTaskOrganizerController.getChildTasks(info2.token, in testHierarchyTransaction()
|
D | DisplayAreaTest.java | 616 final DisplayAreaInfo info2 = displayArea.getDisplayAreaInfo(); in testGetDisplayAreaInfo() local 618 assertThat(info2.rootDisplayAreaId).isEqualTo(root.mFeatureId); in testGetDisplayAreaInfo()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/ |
D | DragAndDropPolicyTest.java | 130 DisplayInfo info2 = new DisplayInfo(); in setUp() local 133 mPortraitDisplayLayout = new DisplayLayout(info2, res, false, false); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | InfoMediaManagerTest.java | 778 final MediaRoute2Info info2 = mock(MediaRoute2Info.class); in shouldDisableMediaOutput_infosSizeOverThan1_returnsFalse() local 781 infos.add(info2); in shouldDisableMediaOutput_infosSizeOverThan1_returnsFalse() 785 when(info2.getType()).thenReturn(TYPE_REMOTE_SPEAKER); in shouldDisableMediaOutput_infosSizeOverThan1_returnsFalse()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/ |
D | InternetDialogControllerTest.java | 771 TelephonyDisplayInfo info2 = new TelephonyDisplayInfo(TelephonyManager.NETWORK_TYPE_LTE, in getMobileNetworkSummary() local 775 mSubIdTelephonyDisplayInfoMap.put(SUB_ID2, info2); in getMobileNetworkSummary()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 654 SubscriptionInfo info2 = subscriptions.get(1); in getFilteredSubscriptionInfo() local 655 if (info1.getGroupUuid() != null && info1.getGroupUuid().equals(info2.getGroupUuid())) { in getFilteredSubscriptionInfo() 657 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return subscriptions; in getFilteredSubscriptionInfo() 665 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in getFilteredSubscriptionInfo() 668 ? info2 : info1); in getFilteredSubscriptionInfo()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraProviderManager.cpp | 2030 CameraMetadata info2; in dump() local 2031 res = device->getCameraCharacteristics(true /*overrideForPerfClass*/, &info2, in dump() 2040 info2.dump(fd, /*verbosity*/ 2, /*indentation*/ 4); in dump()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 4299 InputDeviceInfo info2; in TEST_F() local 4300 mapper.populateDeviceInfo(&info2); in TEST_F() 4302 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, in TEST_F() 4305 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, in TEST_F() 4308 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, in TEST_F() 10045 RawLightInfo info2 = {.id = 2, in TEST_F() local 10061 mFakeEventHub->addRawLightInfo(info2.id, std::move(info2)); in TEST_F()
|