Home
last modified time | relevance | path

Searched refs:info1 (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionUtilTest.java94 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in getAvailableSubscriptions_twoSubscriptions_twoResults() local
96 when(mSubMgr.getAvailableSubscriptionInfoList()).thenReturn(Arrays.asList(info1, info2)); in getAvailableSubscriptions_twoSubscriptions_twoResults()
129 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in getActiveSubscriptions_twoSubscriptions_twoResults() local
132 Arrays.asList(info1, info2)); in getActiveSubscriptions_twoSubscriptions_twoResults()
143 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in getUniqueDisplayNames_uniqueCarriers_originalUsed() local
145 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_uniqueCarriers_originalUsed()
147 when(info1.getDisplayName()).thenReturn(CARRIER_1); in getUniqueDisplayNames_uniqueCarriers_originalUsed()
150 Arrays.asList(info1, info2)); in getUniqueDisplayNames_uniqueCarriers_originalUsed()
173 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() local
175 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java492 WifiInfo info1 = builder.build(); in testWifiInfoBuilder() local
494 assertEquals("\"" + TEST_SSID + "\"", info1.getSSID()); in testWifiInfoBuilder()
495 assertEquals(TEST_BSSID, info1.getBSSID()); in testWifiInfoBuilder()
496 assertEquals(TEST_RSSI, info1.getRssi()); in testWifiInfoBuilder()
497 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
504 assertNotSame(info1, info2); in testWifiInfoBuilder()
507 assertEquals("\"" + TEST_SSID + "\"", info1.getSSID()); in testWifiInfoBuilder()
508 assertEquals(TEST_BSSID, info1.getBSSID()); in testWifiInfoBuilder()
509 assertEquals(TEST_RSSI, info1.getRssi()); in testWifiInfoBuilder()
510 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsTest.java121 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in setupFragment_twoSubscriptions_correctSelection() local
123 when(info1.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_twoSubscriptions_correctSelection()
125 when(info1.getDisplayName()).thenReturn(DISPLAY_NAME1); in setupFragment_twoSubscriptions_correctSelection()
129 Arrays.asList(info1, info2))); in setupFragment_twoSubscriptions_correctSelection()
131 Arrays.asList(info1, info2))); in setupFragment_twoSubscriptions_correctSelection()
149 final SubscriptionInfo info1 = mock(SubscriptionInfo.class); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult() local
151 when(info1.getSubscriptionId()).thenReturn(SUB_ID1); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
155 Arrays.asList(info1, info2))); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
159 intent.putExtra(Settings.EXTRA_SUB_ID, info1.getSubscriptionId()); in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java90 private static void compareEtwsWarningInfo(SmsCbEtwsInfo info1, SmsCbEtwsInfo info2) { in compareEtwsWarningInfo() argument
91 if (info1 == info2) return; in compareEtwsWarningInfo()
92 assertEquals(info1.toString(), info2.toString()); in compareEtwsWarningInfo()
93 assertArrayEquals(info1.getPrimaryNotificationSignature(), in compareEtwsWarningInfo()
95 assertEquals(info1.isPrimary(), info2.isPrimary()); in compareEtwsWarningInfo()
98 private static void compareCmasWarningInfo(SmsCbCmasInfo info1, SmsCbCmasInfo info2) { in compareCmasWarningInfo() argument
99 if (info1 == info2) return; in compareCmasWarningInfo()
100 assertEquals(info1.getCategory(), info2.getCategory()); in compareCmasWarningInfo()
101 assertEquals(info1.getCertainty(), info2.getCertainty()); in compareCmasWarningInfo()
102 assertEquals(info1.getMessageClass(), info2.getMessageClass()); in compareCmasWarningInfo()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceControllerTest.java183 SubscriptionInfo info1 = createSubscriptionInfo(/* subId= */ 1, in onCreate_multiSim_enabled() local
187 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in onCreate_multiSim_enabled()
197 SubscriptionInfo info1 = createSubscriptionInfo(/* subId= */ 1, in onCreate_multiSim_summaryShowsCount() local
201 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in onCreate_multiSim_summaryShowsCount()
243 SubscriptionInfo info1 = createSubscriptionInfo(/* subId= */ 1, in performClick_multiSim_startsMobileNetworkListFragment() local
247 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in performClick_multiSim_startsMobileNetworkListFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DThemePreferenceControllerTest.java144 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in getCurrentTheme_withEnabledState() local
149 Arrays.asList(info1, info2)); in getCurrentTheme_withEnabledState()
153 assertThat(mController.getCurrentTheme()).isEqualTo(info1.packageName); in getCurrentTheme_withEnabledState()
158 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testGetCurrentTheme_withoutEnabledState() local
163 Arrays.asList(info1, info2)); in testGetCurrentTheme_withoutEnabledState()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java72 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testUpdateState() local
88 list(info1, info2)); in testUpdateState()
108 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testUpdateState_withStaticOverlay() local
127 list(info1, info2)); in testUpdateState_withStaticOverlay()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DIconInfoTest.java121 IconInfo info1 = new IconInfo(width1, height1, language1, iconType1, fileName1); in testHashCode() local
125 assertNotEquals(info1.hashCode(), info2.hashCode()); in testHashCode()
126 assertEquals(info1.hashCode(), info1Dup.hashCode()); in testHashCode()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageUtilsTest.java63 SubscriptionInfo info1 = mock(SubscriptionInfo.class); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription() local
65 when(info1.getSubscriptionId()).thenReturn(1); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
68 Lists.newArrayList(info1, info2)); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DTvInputNewComparatorTest.java89 TvInputInfo info1 = in testComparator() local
98 comparatorTester.addEqualityGroup(info1, info2, info3); in testComparator()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DLiveWallpaperInfo.java92 public int compare(ResolveInfo info1, ResolveInfo info2) { in doInBackground()
93 return mCollator.compare(info1.loadLabel(pm), info2.loadLabel(pm)); in doInBackground()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperListAdapter.java168 public int compare(ResolveInfo info1, ResolveInfo info2) { in doInBackground()
169 return mCollator.compare(info1.loadLabel(packageManager), in doInBackground()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperInfo.java303 public int compare(ResolveInfo info1, ResolveInfo info2) { in getAllOnDevice()
304 return mCollator.compare(info1.loadLabel(pm), info2.loadLabel(pm)); in getAllOnDevice()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java1250 private static boolean packageNameEquals(PackageItemInfo info1, PackageItemInfo info2) { in packageNameEquals() argument
1251 if (info1 == null || info2 == null) { in packageNameEquals()
1254 if (info1.packageName == null || info2.packageName == null) { in packageNameEquals()
1257 return info1.packageName.equals(info2.packageName); in packageNameEquals()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransfer.java280 BluetoothOppShareInfo info1 = (BluetoothOppShareInfo) msg.obj; in handleMessage() local
288 tickShareStatus(info1); in handleMessage()