/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | ProxyAccessibilityServiceConnectionTest.java | 112 final AccessibilityServiceInfo info1 = new AccessibilityServiceInfo(); in testSetInstalledAndEnabledServices_updateInfos_notifiesSystemOfProxyChange() local 113 infos.add(info1); in testSetInstalledAndEnabledServices_updateInfos_notifiesSystemOfProxyChange() 134 final AccessibilityServiceInfo info1 = new AccessibilityServiceInfo(); in testSetInstalledAndEnabledServices_returnList() local 136 infos.add(info1); in testSetInstalledAndEnabledServices_returnList() 144 assertThat(infoList.get(0)).isEqualTo(info1); in testSetInstalledAndEnabledServices_returnList() 151 final AccessibilityServiceInfo info1 = new AccessibilityServiceInfo(); in testSetInstalledAndEnabledServices_defaultNamesPopulated() local 152 infos.add(info1); in testSetInstalledAndEnabledServices_defaultNamesPopulated() 165 final AccessibilityServiceInfo info1 = new AccessibilityServiceInfo(); in testSetInstalledAndEnabledServices_connectionInfoIsUnion() local 166 info1.setAccessibilityTool(true); in testSetInstalledAndEnabledServices_connectionInfoIsUnion() 167 info1.packageNames = new String[]{PACKAGE_1, PACKAGE_2}; in testSetInstalledAndEnabledServices_connectionInfoIsUnion() [all …]
|
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | VibratorInfoFactoryTest.java | 38 VibratorInfo info1 = new VibratorInfo.Builder(/* id= */ 1) in testCreatedInfo_hasTheRequestedId() local 46 VibratorInfoFactory.create(/* id= */ -1, new VibratorInfo[] {info1}); in testCreatedInfo_hasTheRequestedId() 48 VibratorInfoFactory.create(/* id= */ -3, new VibratorInfo[] {info1, info2}); in testCreatedInfo_hasTheRequestedId() 79 VibratorInfo info1 = new VibratorInfo.Builder(/* id= */ 1) 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() 95 VibratorInfo info1 = new VibratorInfo.Builder(/* id= */ -1) in testCreatedInfoContents() local 116 VibratorInfoFactory.create(/* id= */ 3, new VibratorInfo[] {info1, info2})); in testCreatedInfoContents() 124 VibratorInfoFactory.create(/* id= */ 3, new VibratorInfo[] {info1, info3})); in testCreatedInfoContents() 127 private static void assertEqualContent(VibratorInfo info1, VibratorInfo info2) { in assertEqualContent() argument [all …]
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | TextAppearanceInfoTest.java | 111 TextAppearanceInfo info1 = TextAppearanceInfo.createFromTextView(mEditText); in testCreateFromTextView_withSpan1() local 112 assertEquals(info1.getTextSize(), TEXT_SIZE, EPSILON); in testCreateFromTextView_withSpan1() 113 assertEquals(info1.getTextColor(), TEXT_COLOR); in testCreateFromTextView_withSpan1() 114 assertEquals(info1.getSystemFontFamilyName(), FONT_FAMILY_NAME); in testCreateFromTextView_withSpan1() 196 TextAppearanceInfo info1 = TextAppearanceInfo.createFromTextView(mEditText); in testCreateFromTextView_contradictorySpans() local 198 assertEquals(info1.getTextSize(), 10f, EPSILON); in testCreateFromTextView_contradictorySpans() 199 assertEquals(info1.getTextSize(), realTextPaint.getTextSize(), EPSILON); in testCreateFromTextView_contradictorySpans() 200 assertEquals(info1.getTextColor(), Color.GREEN); in testCreateFromTextView_contradictorySpans() 201 assertEquals(info1.getTextColor(), realTextPaint.getColor()); in testCreateFromTextView_contradictorySpans() 202 assertEquals(info1.getSystemFontFamilyName(), FONT_FAMILY_NAME); in testCreateFromTextView_contradictorySpans()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsCallInfoTrackerTest.java | 228 ImsCallInfo info1 = imsCallInfos.get(0); in testMultiCalls() local 230 assertNotNull(info1); in testMultiCalls() 231 assertEquals(1, info1.getIndex()); in testMultiCalls() 232 assertEquals(Call.State.ACTIVE, info1.getCallState()); in testMultiCalls() 246 info1 = imsCallInfos.get(0); in testMultiCalls() 248 assertNotNull(info1); in testMultiCalls() 249 assertEquals(1, info1.getIndex()); in testMultiCalls() 250 assertEquals(Call.State.ACTIVE, info1.getCallState()); in testMultiCalls() 272 info1 = imsCallInfos.get(0); in testMultiCalls() 274 assertNotNull(info1); in testMultiCalls() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/ |
D | MobileIconsInteractor.kt | 248 val info1 = subList[0] 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() 275 return if (info1.subscriptionId == subIdToKeep) { in filterSubsBasedOnOpportunistic() 276 listOf(info1) in filterSubsBasedOnOpportunistic()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutListSearchTest.java | 137 KeyboardShortcutInfo info1 = mock(KeyboardShortcutInfo.class); in createKeyboardShortcutGroupForIconTests() local 139 when(info1.getIcon()).thenReturn(icon); in createKeyboardShortcutGroupForIconTests() 141 when(info1.getLabel()).thenReturn("label"); in createKeyboardShortcutGroupForIconTests() 145 Arrays.asList(new KeyboardShortcutInfo[]{ info1, info2})); in createKeyboardShortcutGroupForIconTests()
|
D | KeyboardShortcutsTest.java | 183 KeyboardShortcutInfo info1 = mock(KeyboardShortcutInfo.class); in createKeyboardShortcutGroupForIconTests() local 185 when(info1.getIcon()).thenReturn(icon); in createKeyboardShortcutGroupForIconTests() 189 new KeyboardShortcutGroup("label", Arrays.asList(info1, info2)); in createKeyboardShortcutGroupForIconTests()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowOrganizerTests.java | 800 RunningTaskInfo info1 = task1.getTaskInfo(); in testCreateDeleteRootTasks() local 802 info1.configuration.windowConfiguration.getWindowingMode()); in testCreateDeleteRootTasks() 803 assertEquals(ACTIVITY_TYPE_UNDEFINED, info1.topActivityType); in testCreateDeleteRootTasks() 815 assertTrue(mWm.mAtmService.mTaskOrganizerController.deleteRootTask(info1.token)); in testCreateDeleteRootTasks() 827 final RunningTaskInfo info1 = task1.getTaskInfo(); in testSetAdjacentLaunchRoot() local 833 wct.setAdjacentRoots(info1.token, info2.token); in testSetAdjacentLaunchRoot() 839 wct.setLaunchAdjacentFlagRoot(info1.token); in testSetAdjacentLaunchRoot() 844 wct.clearAdjacentRoots(info1.token); in testSetAdjacentLaunchRoot() 845 wct.clearLaunchAdjacentFlagRoot(info1.token); in testSetAdjacentLaunchRoot() 858 RunningTaskInfo info1 = task.getTaskInfo(); in testTileAddRemoveChild() local [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | LogicalDisplayTest.java | 473 DisplayInfo info1 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateLayoutLimitedRefreshRate() local 477 assertEquals(info2, info1); in testUpdateLayoutLimitedRefreshRate() 502 DisplayInfo info1 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateRefreshRateThermalThrottling() local 506 assertEquals(info2, info1); in testUpdateRefreshRateThermalThrottling() 530 DisplayInfo info1 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateDisplayGroupIdLocked() local 534 assertEquals(info2, info1); in testUpdateDisplayGroupIdLocked() 556 DisplayInfo info1 = mLogicalDisplay.getDisplayInfoLocked(); in testSetThermalBrightnessThrottlingDataId() local 560 assertEquals(info2, info1); in testSetThermalBrightnessThrottlingDataId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandlerTests.java | 114 ApplicationInfo info1 = new ApplicationInfo(); in setUp() local 115 info1.uid = 1; in setUp() 116 result.add(info1); in setUp()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/ |
D | FreeformTaskTransitionObserverTest.java | 168 final TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_OPEN, 0) in testClosesMergedWindowDecorationAfterTransitionFinishes() local 174 mTransitionObserver.onTransitionReady(transition1, info1, startT1, finishT1); in testClosesMergedWindowDecorationAfterTransitionFinishes() 199 final TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_CLOSE, 0) in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions() local 205 mTransitionObserver.onTransitionReady(transition1, info1, startT1, finishT1); in testClosesAllWindowDecorsOnTransitionMergeAfterCloseTransitions()
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 709 std::shared_ptr<C2Info> info1(new C2Number1Info(1)); in TEST_F() local 713 EXPECT_FALSE(buffer->hasInfo(info1->type())); in TEST_F() 716 ASSERT_EQ(C2_OK, buffer->setInfo(info1)); in TEST_F() 718 EXPECT_EQ(*info1, *buffer->info().front()); in TEST_F() 719 EXPECT_TRUE(buffer->hasInfo(info1->type())); in TEST_F() 724 EXPECT_TRUE(buffer->hasInfo(info1->type())); in TEST_F() 727 std::shared_ptr<C2Info> removed = buffer->removeInfo(info1->type()); in TEST_F() 729 EXPECT_EQ(*removed, *info1); in TEST_F() 732 EXPECT_FALSE(buffer->hasInfo(info1->type())); in TEST_F() 735 removed = buffer->removeInfo(info1->type()); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardTransitionRepositoryTest.kt | 388 val info1 = TransitionInfo(OWNER_NAME, AOD, LOCKSCREEN, animator = null) in <lambda>() constant 391 ktr.startTransition(info1) in <lambda>() 405 TransitionStep(info1.from, info1.to, 0f, TransitionState.STARTED, OWNER_NAME) in <lambda>() 409 TransitionStep(info1.from, info1.to, 0f, TransitionState.CANCELED, OWNER_NAME) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | NetworkControllerImpl.java | 483 SubscriptionInfo info1 = mSubscriptionManager.getActiveSubscriptionInfo(subId1); in isInGroupDataSwitch() local 485 return (info1 != null && info2 != null && info1.getGroupUuid() != null in isInGroupDataSwitch() 486 && info1.getGroupUuid().equals(info2.getGroupUuid())); in isInGroupDataSwitch() 876 SubscriptionInfo info1 = subscriptions.get(0); 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() 890 subscriptions.remove(info1.getSubscriptionId() == mActiveMobileDataSubscription in filterMobileSubscriptionInSameGroup() 891 ? info2 : info1); in filterMobileSubscriptionInSameGroup()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BluetoothPowerCalculatorTest.java | 111 BluetoothActivityEnergyInfo info1 = createBtEnergyInfo(2000, in testTimerBasedModel_byProcessState() local 115 batteryStats.updateBluetoothStateLocked(info1, in testTimerBasedModel_byProcessState() 232 BluetoothActivityEnergyInfo info1 = createBtEnergyInfo(2000, in testMeasuredEnergyBasedModel_byProcessState() local 237 batteryStats.updateBluetoothStateLocked(info1, in testMeasuredEnergyBasedModel_byProcessState()
|
D | BatteryStatsImplTest.java | 801 BluetoothActivityEnergyInfo info1 = createBluetoothActivityEnergyInfo( in testGetNetworkActivityBytes_multipleUpdates() local 810 mBatteryStatsImpl.updateBluetoothStateLocked(info1, -1, 1000, 1000); in testGetNetworkActivityBytes_multipleUpdates()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecList.cpp | 226 [](const sp<MediaCodecInfo> &info1, const sp<MediaCodecInfo> &info2) { in MediaCodecList() argument 228 return info1 == nullptr in MediaCodecList() 229 || (info2 != nullptr && info1->getRank() < info2->getRank()); in MediaCodecList()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | TaskFragmentContainerTest.java | 182 final TaskFragmentInfo info1 = createMockTaskFragmentInfo(container1, placeholderActivity); in testFinish_alwaysFinishPlaceholder() local 183 container1.setInfo(mTransaction, info1); in testFinish_alwaysFinishPlaceholder() 227 final TaskFragmentInfo info1 = createMockTaskFragmentInfo(pendingIntentContainer, in testSetInfo() local 229 pendingIntentContainer.setInfo(mTransaction, info1); in testSetInfo()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | InfoMediaManagerTest.java | 494 final MediaRoute2Info info1 = mock(MediaRoute2Info.class); in getRoutesListWithDuplicatedIds() local 495 when(info1.getId()).thenReturn(TEST_ID_1); in getRoutesListWithDuplicatedIds() 496 when(info1.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in getRoutesListWithDuplicatedIds() 497 when(info1.isSystemRoute()).thenReturn(true); in getRoutesListWithDuplicatedIds() 498 when(info1.getDeduplicationIds()).thenReturn(Set.of(TEST_DUPLICATED_ID_3)); in getRoutesListWithDuplicatedIds() 499 routes.add(info1); in getRoutesListWithDuplicatedIds()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | ShellTransitionTests.java | 641 TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_OPEN) in testTransitionQueueing() local 643 transitions.onTransitionReady(transitToken1, info1, new StubTransaction(), in testTransitionQueueing() 682 TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_OPEN) in testTransitionMerging() local 684 transitions.onTransitionReady(transitToken1, info1, new StubTransaction(), in testTransitionMerging() 931 TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_OPEN) in testRunWhenIdle() local 933 transitions.onTransitionReady(transitToken1, info1, new StubTransaction(), in testRunWhenIdle() 1023 TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_OPEN) in testObserverLifecycle_queueing() local 1027 transitions.onTransitionReady(transitToken1, info1, startT1, finishT1); in testObserverLifecycle_queueing() 1028 verify(observer).onTransitionReady(transitToken1, info1, startT1, finishT1); in testObserverLifecycle_queueing() 1067 TransitionInfo info1 = new TransitionInfoBuilder(TRANSIT_OPEN) in testObserverLifecycle_merging() local [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/ |
D | CellularNetworkSecuritySafetySourceTest.java | 73 SubscriptionInfoInternal info1 = new SubscriptionInfoInternal.Builder() in setUp() local 77 doReturn(info1).when(mSubscriptionManagerService).getSubscriptionInfoInternal(eq(1)); in setUp()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageInfoUtils.java | 497 for (SharedLibraryInfo info1 : usesLibraryInfos) { in generateApplicationInfo() 498 if (info1.getType() == SharedLibraryInfo.TYPE_SDK_PACKAGE) { in generateApplicationInfo() 499 int index = ArrayUtils.indexOf(libsNames, info1.getName()); in generateApplicationInfo() 504 optionalSdkLibraries.add(info1); in generateApplicationInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 688 SubscriptionInfo info1 = subscriptions.get(0); in getFilteredSubscriptionInfo() local 690 if (info1.getGroupUuid() != null && info1.getGroupUuid().equals(info2.getGroupUuid())) { in getFilteredSubscriptionInfo() 692 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return subscriptions; in getFilteredSubscriptionInfo() 700 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in getFilteredSubscriptionInfo() 702 subscriptions.remove(info1.getSubscriptionId() == mActiveMobileDataSubscription in getFilteredSubscriptionInfo() 703 ? info2 : info1); in getFilteredSubscriptionInfo()
|
/frameworks/base/media/java/android/media/ |
D | MediaCodec.java | 4370 (info1, info2) -> Integer.compare(info1.offset, info2.offset)); in validateOutputByteBuffersLocked() 4372 (info1, info2) -> Integer.compare(info1.offset, info2.offset)); in validateOutputByteBuffersLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/ |
D | InternetDialogDelegateControllerTest.java | 900 TelephonyDisplayInfo info1 = new TelephonyDisplayInfo(TelephonyManager.NETWORK_TYPE_EDGE, in getMobileNetworkSummary() local 905 mSubIdTelephonyDisplayInfoMap.put(SUB_ID, info1); in getMobileNetworkSummary()
|