Home
last modified time | relevance | path

Searched refs:getEntry (Results 1 – 25 of 78) sorted by relevance

1234

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/
DPackedTableReaderWriterTest.java113 assertEquals((int) maxRepresentableValue, tableReader.getEntry(1).getIntValue()); in entryGetValue_int()
114 assertEquals(maxRepresentableValue, tableReader.getEntry(1).getLongValue()); in entryGetValue_int()
138 assertThrows(IllegalStateException.class, () -> tableReader.getEntry(maxKey).getIntValue()); in entryGetValue_long()
139 assertEquals(maxRepresentableValue, tableReader.getEntry(maxKey).getLongValue()); in entryGetValue_long()
141 assertThrows(IllegalStateException.class, () -> tableReader.getEntry(minKey).getIntValue()); in entryGetValue_long()
142 assertEquals(minRepresentableValue, tableReader.getEntry(minKey).getLongValue()); in entryGetValue_long()
165 assertEquals(maxUnsignedInt, tableReader.getEntry(1).getIntValue()); in valueSizeMax_unsigned()
166 assertEquals(minUnsignedInt, tableReader.getEntry(2).getIntValue()); in valueSizeMax_unsigned()
189 assertEquals(maxSignedInt, tableReader.getEntry(1).getIntValue()); in valueSizeMax_signed()
190 assertEquals(minSignedInt, tableReader.getEntry(2).getIntValue()); in valueSizeMax_signed()
[all …]
DIntValuePackedTableTest.java76 assertEquals(maxUnsignedInt, table.getEntry(1).getValue()); in valueSizeMax_unsigned()
77 assertEquals(minUnsignedInt, table.getEntry(2).getValue()); in valueSizeMax_unsigned()
99 assertEquals(maxSignedInt, table.getEntry(1).getValue()); in valueSizeMax_signed()
100 assertEquals(minSignedInt, table.getEntry(2).getValue()); in valueSizeMax_signed()
121 IntValueTable.TableEntry entry = table.getEntry(100); in addEntry_outOfOrder()
124 assertEquals(3, table.getEntry(101).getValue()); in addEntry_outOfOrder()
152 assertEquals(3456, intValuePackedTable.getEntry(3).getValue()); in getEntry_unsignedValue()
153 assertEquals(1234, intValuePackedTable.getEntry(1).getValue()); in getEntry_unsignedValue()
154 assertEquals(2345, intValuePackedTable.getEntry(2).getValue()); in getEntry_unsignedValue()
155 assertNull(intValuePackedTable.getEntry(0)); in getEntry_unsignedValue()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java100 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
131 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
133 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
135 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
167 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
169 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
171 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
198 when(mAppState.getEntry(stat.mPackageName, UserHandle.myUserId())).thenReturn(statEntry); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
226 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash()
228 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash()
[all …]
DAppsPreferenceControllerTest.java159 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in initRecentApps()
161 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in initRecentApps()
163 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in initRecentApps()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DAnqpCacheTest.java86 ANQPData data = mCache.getEntry(ENTRY_KEY); in addAndGetEntry()
98 assertNull(mCache.getEntry(ENTRY_KEY)); in getNonExistEntry()
114 assertNotNull(mCache.getEntry(ENTRY_KEY)); in sweepRemoveExpiredEntry()
119 assertNull(mCache.getEntry(ENTRY_KEY)); in sweepRemoveExpiredEntry()
131 assertNull(mCache.getEntry(ENTRY_KEY)); in testCacheFlush()
160 ANQPData data = mCache.getEntry(ENTRY_KEY); in addThenUpdateAndGetEntry()
175 data = mCache.getEntry(ENTRY_KEY); in addThenUpdateAndGetEntry()
DPasspointManagerTest.java1026 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(null); in matchProviderWithAnqpCacheMissed()
1056 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(entry); in matchProviderAsHomeProvider()
1077 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(entry); in matchProviderAsRoamingProvider()
1099 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(entry); in matchScanResultWithMultipleProviderAsHomeAndRoaming()
1139 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(entry); in matchProviderWithNoMatch()
1163 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(null); in getANQPElementsWithNoMatchFound()
1180 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(entry); in getANQPElementsWithMatchFound()
1203 when(mAnqpCache.getEntry(TEST_ANQP_KEY2)).thenReturn(entry); in getAllMatchingProvidersUpdatedConfigWithFullImsiSimCredential()
1242 when(mAnqpCache.getEntry(TEST_ANQP_KEY2)).thenReturn(entry); in getAllMatchingFqdnsForScanResults()
1456 when(mAnqpCache.getEntry(TEST_ANQP_KEY)).thenReturn(null); in getMatchingOsuProviderWithNoMatch()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceControllerTest.java138 when(mMockApplicationsState.getEntry(app1.getPackageName(), UserHandle.myUserId())) in areEvents_showValidRecents()
140 when(mMockApplicationsState.getEntry(app2.getPackageName(), UserHandle.myUserId())) in areEvents_showValidRecents()
142 when(mMockApplicationsState.getEntry(app3.getPackageName(), UserHandle.myUserId())) in areEvents_showValidRecents()
156 .getEntry(eq(app1.getPackageName()), anyInt()); in areEvents_showValidRecents()
184 when(mMockApplicationsState.getEntry(app1.getPackageName(), UserHandle.myUserId())) in areEvents_showMaximumRecents()
186 when(mMockApplicationsState.getEntry(app2.getPackageName(), UserHandle.myUserId())) in areEvents_showMaximumRecents()
188 when(mMockApplicationsState.getEntry(app3.getPackageName(), UserHandle.myUserId())) in areEvents_showMaximumRecents()
190 when(mMockApplicationsState.getEntry(app4.getPackageName(), UserHandle.myUserId())) in areEvents_showMaximumRecents()
204 .getEntry(eq(app1.getPackageName()), anyInt()); in areEvents_showMaximumRecents()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java157 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents()
159 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecents()
161 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in display_showRecents()
196 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())).thenReturn(stat1Entry); in display_showRecentsWithInstantApp()
197 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())).thenReturn(stat2Entry); in display_showRecentsWithInstantApp()
234 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecentsWithNullAppEntryOrInfo()
236 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecentsWithNullAppEntryOrInfo()
260 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_hasRecentButNoneDisplayable_showAllApps()
262 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_hasRecentButNoneDisplayable_showAllApps()
282 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents_formatSummary()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsListPreferenceControllerTest.java112 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_1), anyInt())) in onRecentAppsLoaded_displaysApps()
131 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_1), anyInt())) in onRecentAppsLoaded_doesNotDisplayInvalidApps()
133 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_2), anyInt())).thenReturn(null); in onRecentAppsLoaded_doesNotDisplayInvalidApps()
158 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_1), anyInt())) in onRecentAppsLoaded_moreThanMaximumAllowed_maximumShown()
160 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_2), anyInt())) in onRecentAppsLoaded_moreThanMaximumAllowed_maximumShown()
162 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_3), anyInt())) in onRecentAppsLoaded_moreThanMaximumAllowed_maximumShown()
164 when(mMockApplicationsState.getEntry(eq(MOCK_PACKAGE_NAME_4), anyInt())) in onRecentAppsLoaded_moreThanMaximumAllowed_maximumShown()
DRecentAppsItemManagerTest.java89 when(mAppState.getEntry(eq(stat1.mPackageName), anyInt())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
113 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
115 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
117 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java97 assertThat(mPreference.getEntry()).isEqualTo(mListEntries[0]); in verifyResourceSizeAndRange()
114 assertThat(mPreference.getEntry()).isEqualTo(mListEntries[index]); in onPreferenceChange_setNumberOfDevices()
129 assertThat(mPreference.getEntry()).isEqualTo(mListEntries[i]); in updateState_NumberOfDevicesUpdated_shouldSetPreference()
144 assertThat(mPreference.getEntry()).isEqualTo(mListEntries[0]); in updateState_noValueSet_shouldSetDefaultTo1device()
156 assertThat(mPreference.getEntry()).isEqualTo(mListEntries[0]); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
173 assertThat(mPreference.getEntry()).isEqualTo(mListEntries[i]); in onDeveloperOptionsSwitchEnabled_shouldEnablePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java187 assertThat(preference.getEntry()).isEqualTo(mValueList[DEFAULT]); in createPreference_configDefault_shouldSetDefaultAttributes()
203 assertThat(preference.getEntry()).isEqualTo(mValueList[PRODUCTION_DRIVER]); in createPreference_configProduction_DRIVER_shouldSetProductionDriverAttributes()
219 assertThat(preference.getEntry()).isEqualTo(mValueList[PRERELEASE_DRIVER]); in createPreference_configPRERELEASE_DRIVER_shouldSetPrereleaseDriverAttributes()
235 assertThat(preference.getEntry()).isEqualTo(mValueList[SYSTEM]); in createPreference_configSystem_shouldSetSystemAttributes()
247 assertThat(preference.getEntry()).isEqualTo(mValueList[DEFAULT]); in onPreferenceChange_selectDefault_shouldUpdateAttributesAndSettingsGlobal()
265 assertThat(preference.getEntry()).isEqualTo(mValueList[PRERELEASE_DRIVER]); in onPreferenceChange_selectPRERELEASE_DRIVER_shouldUpdateAttrAndSettingsGlobal()
283 assertThat(preference.getEntry()).isEqualTo(mValueList[PRODUCTION_DRIVER]); in onPreferenceChange_selectPRODUCTION_DRIVER_shouldUpdateAttrAndSettingsGlobal()
301 assertThat(preference.getEntry()).isEqualTo(mValueList[SYSTEM]); in onPreferenceChange_selectSystem_shouldUpdateAttributesAndSettingsGlobal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiMeteredPreferenceController2Test.java70 assertThat(mDropDownPreference.getEntry()).isEqualTo("Treat as metered"); in testUpdateState_wifiMetered_setCorrectValue()
79 assertThat(mDropDownPreference.getEntry()).isEqualTo("Treat as unmetered"); in testUpdateState_wifiNotMetered_setCorrectValue()
88 assertThat(mDropDownPreference.getEntry()).isEqualTo("Detect automatically"); in testUpdateState_wifiAuto_setCorrectValue()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAutoCompleteView.java152 final RecipientEntry entry = recipient.getEntry(); in doInBackground()
261 final RecipientEntry entry = recipient.getEntry(); in getRecipientParticipantDataForConversationCreation()
264 contacts.add(ParticipantData.getFromRecipientEntry(recipient.getEntry())); in getRecipientParticipantDataForConversationCreation()
281 final RecipientEntry entry = recipient.getEntry(); in getSelectedDestinations()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/managedomainurls/
DAppLinkStatePreferenceControllerTest.java161 assertThat(mPreference.getEntry()).isEqualTo( in refreshUi_isNotBrowserApp_hasDomainUrls_defaultState_entrySetToAsk()
185 assertThat(mPreference.getEntry()).isEqualTo( in refreshUi_isNotBrowserApp_hasDomainUrls_askState_entrySetToAsk()
209 assertThat(mPreference.getEntry()).isEqualTo( in refreshUi_isNotBrowserApp_hasDomainUrls_alwaysState_entrySetToAlways()
233 assertThat(mPreference.getEntry()).isEqualTo( in refreshUi_isNotBrowserApp_hasDomainUrls_neverState_entrySetToNever()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt215 it.setSummary(homeTimezonePref.getEntry()) in loadTimeZoneList()
230 it.setSummary(it.getEntry()) in refresh()
236 it.setSummary(volumeButtonsPref.getEntry()) in refresh()
279 preference.setSummary(preference.getEntry()) in refreshListPreference()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java123 String data = DateUtils.formatDate(getContext(), getEntry().getAsString(column), in rebuildDateView()
140 return TextUtils.isEmpty(getEntry().getAsString(column)); in isEmpty()
163 final String oldValue = getEntry().getAsString(column); in onLabelRebuilt()
199 final String oldValue = getEntry().getAsString(column); in createDatePickerDialog()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java124 protected Entry getEntry(String mimeType, Intent intent) { in getEntry() method in ResolveCache
201 return getEntry(mimeType, intent).bestResolve != null; in hasResolve()
210 return getEntry(mimeType, intent).icon; in getIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcForegroundPreferenceControllerTest.java149 assertThat(mPreference.getEntry()).isEqualTo(favorDefault); in changeOptions_shouldUpdateEntryAndSummary()
155 assertThat(mPreference.getEntry()).isEqualTo(favorOpen); in changeOptions_shouldUpdateEntryAndSummary()
161 assertThat(mPreference.getEntry()).isEqualTo(favorDefault); in changeOptions_shouldUpdateEntryAndSummary()
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java173 mWeekStart.setSummary(mWeekStart.getEntry()); in onCreate()
174 mDefaultReminder.setSummary(mDefaultReminder.getEntry()); in onCreate()
310 mWeekStart.setSummary(mWeekStart.getEntry()); in onPreferenceChange()
313 mDefaultReminder.setSummary(mDefaultReminder.getEntry()); in onPreferenceChange()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java131 updateWidgetAndFinish(helper.getEntry(mAppWidgetId)); in setPhotoWidget()
182 updateWidgetAndFinish(helper.getEntry(mAppWidgetId)); in setChoosenAlbum()
197 updateWidgetAndFinish(helper.getEntry(mAppWidgetId)); in setWidgetType()
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreferenceController.java189 logSpecialPermissionChange(allowlisted, accessPreference.getEntry().info.packageName); in onPreferenceChange()
190 mDataSaverBackend.setIsAllowlisted(accessPreference.getEntry().info.uid, in onPreferenceChange()
191 accessPreference.getEntry().info.packageName, allowlisted); in onPreferenceChange()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/packed/read/
DBaseTypedPackedTable.java65 public E getEntry(int key) { in getEntry() method in BaseTypedPackedTable
66 PackedTableReader.Entry entry = mTableReader.getEntry(key); in getEntry()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java159 mApplicationsState.getEntry(pkgName, mUserId); in displayRecentApps()
237 final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in getDisplayableRecentAppList()
271 mApplicationsState.getEntry(pkgName, mUserId); in shouldIncludePkgInRecents()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java131 final CharSequence entry = mListPreference.getEntry(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
161 final CharSequence entry = mListPreference.getEntry(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
273 assertThat(mListPreference.getEntry()).isEqualTo("sub1"); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
278 assertThat(mListPreference.getEntry()).isEqualTo("sub2"); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()

1234