Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DImeInsetsSourceConsumer.java131 public static boolean areEditorsSimilar(EditorInfo info1, EditorInfo info2) { in areEditorsSimilar() argument
135 info1.imeOptions == info2.imeOptions in areEditorsSimilar()
136 && info1.inputType == info2.inputType in areEditorsSimilar()
137 && TextUtils.equals(info1.packageName, info2.packageName); in areEditorsSimilar()
139 ? info1.privateImeOptions.equals(info2.privateImeOptions) : true; in areEditorsSimilar()
146 if ((info1.extras == null && info2.extras == null) || info1.extras == info2.extras) { in areEditorsSimilar()
149 if ((info1.extras == null && info2.extras != null) in areEditorsSimilar()
150 || (info1.extras == null && info2.extras != null)) { in areEditorsSimilar()
153 if (info1.extras.hashCode() == info2.extras.hashCode() in areEditorsSimilar()
157 if (info1.extras.size() != info2.extras.size()) { in areEditorsSimilar()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DPowerUtilTest.java65 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage() local
79 assertThat(info2).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage()
91 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage() local
105 assertThat(info2).containsMatch(Pattern.compile( in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage()
117 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_lessThanSevenMinutes_usesCorrectString() local
125 assertThat(info2).isEqualTo("Phone may shutdown soon"); in testGetBatteryRemainingStringFormatted_lessThanSevenMinutes_usesCorrectString()
134 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_betweenSevenAndFifteenMinutes_usesCorrectString() local
142 assertThat(info2).isEqualTo("Less than 15 min remaining (10%)"); in testGetBatteryRemainingStringFormatted_betweenSevenAndFifteenMinutes_usesCorrectString()
151 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_betweenOneAndTwoDays_usesCorrectString() local
159 assertThat(info2).isEqualTo("About 1 day, 6 hr left (10%)"); in testGetBatteryRemainingStringFormatted_betweenOneAndTwoDays_usesCorrectString()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DImeInsetsSourceConsumerTest.java106 EditorInfo info2 = new EditorInfo(); in testAreEditorsSimilar() local
108 assertFalse(areEditorsSimilar(info1, info2)); in testAreEditorsSimilar()
111 assertTrue(areEditorsSimilar(info1, info2)); in testAreEditorsSimilar()
113 info1.inputType = info2.inputType = 3; in testAreEditorsSimilar()
114 info1.imeOptions = info2.imeOptions = 0x4; in testAreEditorsSimilar()
115 info1.packageName = info2.packageName = "dummy.package"; in testAreEditorsSimilar()
116 assertTrue(areEditorsSimilar(info1, info2)); in testAreEditorsSimilar()
125 info2.extras = extras2; in testAreEditorsSimilar()
126 assertTrue(areEditorsSimilar(info1, info2)); in testAreEditorsSimilar()
138 assertTrue(areEditorsSimilar(info1, info2)); in testAreEditorsSimilar()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java141 final ResolveInfo info2 = mPackageManager.resolveActivity( in testResolveDisabledActivity() local
143 assertNotNull(info2); in testResolveDisabledActivity()
144 assertNotNull(info2.activityInfo); in testResolveDisabledActivity()
145 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity()
239 final ResolveInfo info2 = in testEnableActivity() local
242 assertNotNull(info2); in testEnableActivity()
243 assertNotNull(info2.activityInfo); in testEnableActivity()
244 assertFalse(info2.activityInfo.enabled); in testEnableActivity()
263 final ResolveInfo info2 = in testDisableActivity() local
266 assertNull(info2); in testDisableActivity()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java82 PackageRollbackInfo info2 = createPackageRollbackInfo("com.foo.bar", new int[]{10, 11}); in testSnapshotAppData() local
83 helper.snapshotAppData(7, info2); in testSnapshotAppData()
84 assertEquals(1, info2.getPendingBackups().size()); in testSnapshotAppData()
85 assertEquals(11, info2.getPendingBackups().get(0)); in testSnapshotAppData()
87 assertEquals(1, info2.getCeSnapshotInodes().size()); in testSnapshotAppData()
88 assertEquals(239L, info2.getCeSnapshotInodes().get(10)); in testSnapshotAppData()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DIconInfoTest.java120 IconInfo info2 = new IconInfo(width2, height2, language2, iconType2, fileName2); in testHashCode() local
123 assertNotEquals(info1.hashCode(), info2.hashCode()); in testHashCode()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp704 std::shared_ptr<C2Info> info2(new C2Number2Info(2)); in TEST_F() local
708 EXPECT_FALSE(buffer->hasInfo(info2->type())); in TEST_F()
714 EXPECT_FALSE(buffer->hasInfo(info2->type())); in TEST_F()
716 ASSERT_EQ(C2_OK, buffer->setInfo(info2)); in TEST_F()
719 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
725 EXPECT_EQ(*info2, *buffer->info().front()); in TEST_F()
727 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
733 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
739 EXPECT_TRUE(buffer->hasInfo(info2->type())); in TEST_F()
741 removed = buffer->removeInfo(info2->type()); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp222 [](const sp<MediaCodecInfo> &info1, const sp<MediaCodecInfo> &info2) { in MediaCodecList() argument
225 || (info2 != nullptr && info1->getRank() < info2->getRank()); in MediaCodecList()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java262 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup() local
263 if (info1.getGroupUuid() != null && info1.getGroupUuid().equals(info2.getGroupUuid())) { in filterMobileSubscriptionInSameGroup()
265 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return; in filterMobileSubscriptionInSameGroup()
273 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in filterMobileSubscriptionInSameGroup()
276 ? info2 : info1); in filterMobileSubscriptionInSameGroup()
/frameworks/av/camera/tests/
DCameraBinderTests.cpp554 hardware::camera2::utils::SubmitInfo info2; in TEST_F() local
556 /*out*/&info2); in TEST_F()
559 info2.mLastFrameNumber); in TEST_F()
562 EXPECT_LE(0, info2.mRequestId); in TEST_F()
563 res = device->cancelRequest(info2.mRequestId, /*out*/&lastFrameNumber); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java568 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup() local
569 if (info1.getGroupUuid() != null && info1.getGroupUuid().equals(info2.getGroupUuid())) { in filterMobileSubscriptionInSameGroup()
571 if (!info1.isOpportunistic() && !info2.isOpportunistic()) return; in filterMobileSubscriptionInSameGroup()
579 subscriptions.remove(info1.isOpportunistic() ? info1 : info2); in filterMobileSubscriptionInSameGroup()
582 ? info2 : info1); in filterMobileSubscriptionInSameGroup()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp1456 CameraMetadata info2; in dump() local
1457 res = device->getCameraCharacteristics(&info2); in dump()
1465 info2.dump(fd, /*verbosity*/ 2, /*indentation*/ 4); in dump()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp2456 InputDeviceInfo info2; in TEST_F() local
2457 mapper->populateDeviceInfo(&info2); in TEST_F()
2459 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, in TEST_F()
2462 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, in TEST_F()
2465 ASSERT_NO_FATAL_FAILURE(assertMotionRange(info2, in TEST_F()