Home
last modified time | relevance | path

Searched refs:getOrder (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DLogicalRootPreferenceGroupTest.java81 assertThat(mPreferenceScreen.getPreference(0).getOrder()) in injectPreferencesToParent_whenOrderingAsAdded()
83 assertThat(mPreferenceScreen.getPreference(1).getOrder()) in injectPreferencesToParent_whenOrderingAsAdded()
86 assertThat(mPreferenceScreen.getPreference(2).getOrder()) in injectPreferencesToParent_whenOrderingAsAdded()
92 assertThat(mPreferenceScreen.getPreference(3).getOrder()) in injectPreferencesToParent_whenOrderingAsAdded()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DLogicalRootPreferenceGroup.java88 int preferenceOrder = getOrder(); in updateOrder()
93 && preference.getOrder() > preferenceOrder + mInsertedPreferences) { in updateOrder()
94 preference.setOrder(preference.getOrder() + 1); in updateOrder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appcompat/
DUserAspectRatioDetailsTest.java120 final int topOfList = mFragment.findPreference(KEY_HEADER_BUTTONS).getOrder(); in testOrderOfOptionsFollowsConfig()
122 assertTrue(topOfList < mFragment.findPreference(KEY_PREF_3_2).getOrder()); in testOrderOfOptionsFollowsConfig()
123 assertTrue(mFragment.findPreference(KEY_PREF_3_2).getOrder() in testOrderOfOptionsFollowsConfig()
124 < mFragment.findPreference(KEY_PREF_FULLSCREEN).getOrder()); in testOrderOfOptionsFollowsConfig()
125 assertTrue(mFragment.findPreference(KEY_PREF_FULLSCREEN).getOrder() in testOrderOfOptionsFollowsConfig()
126 < mFragment.findPreference(KEY_PREF_DEFAULT).getOrder()); in testOrderOfOptionsFollowsConfig()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardTilePlaceholderPreferenceControllerTest.java61 when(mScreen.findPreference(anyString()).getOrder()).thenReturn(baseOrder); in display_hasPlaceholderPref_shouldUseOrderFromPlaceholder()
65 assertThat(mController.getOrder()).isEqualTo(baseOrder); in display_hasPlaceholderPref_shouldUseOrderFromPlaceholder()
74 assertThat(mController.getOrder()).isEqualTo(Preference.DEFAULT_ORDER); in display_noPlaceholderPref_shouldUseDefaultOrder()
DDashboardFeatureProviderImplTest.java186 assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); in bindPreference_shouldBindAllData()
206 assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); in bindPreference_shouldBindAllSwitchData()
228 assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); in bindPreference_providerTileWithPendingIntent_shouldBindIntent()
242 assertThat(preference.getOrder()).isEqualTo(tile.getOrder()); in bindPreference_noFragmentMetadata_shouldBindIntent()
317 assertThat(preference.getOrder()).isEqualTo(Preference.DEFAULT_ORDER); in bindPreference_withNullKeyNullPriority_shouldGenerateKeyAndPriority()
530 assertThat(preference.getOrder()).isEqualTo(tile.getOrder() + baseOrder); in bindPreference_withBaseOrder_shouldOffsetOrder()
543 assertThat(preference.getOrder()).isEqualTo(testOrder); in bindPreference_withOrderMetadata_shouldUseOrderInMetadata()
555 assertThat(preference.getOrder()).isEqualTo(Preference.DEFAULT_ORDER); in bindPreference_invalidOrderMetadata_shouldIgnore()
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardTilePlaceholderPreferenceController.java48 mOrder = pref.getOrder(); in displayPreference()
63 public int getOrder() { in getOrder() method in DashboardTilePlaceholderPreferenceController
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsProgressCategoryPreferenceTest.java66 Comparator.comparingInt(AudioStreamPreference::getOrder); in addAudioStreamPreference_multiPreference_sorted()
82 Comparator.comparingInt(AudioStreamPreference::getOrder); in removeAudioStreamPreferences_shouldBeEmpty()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/app/
DSearchSpecInternalTest.java57 assertThat(searchSpec.getOrder()).isEqualTo(SearchSpec.ORDER_ASCENDING); in testSearchSpecBuilder()
109 assertThat(searchSpecCopy.getOrder()).isEqualTo(searchSpec.getOrder()); in testSearchSpecBuilderCopyConstructor()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DSavedDeviceGroupControllerTest.java207 assertThat(preference1.getOrder()).isEqualTo(0); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
208 assertThat(preference2.getOrder()).isEqualTo(1); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
209 assertThat(preference3.getOrder()).isEqualTo(2); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
DPreviouslyConnectedDevicePreferenceControllerTest.java352 assertThat(preference2.getOrder()).isEqualTo(0); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
353 assertThat(preference4.getOrder()).isEqualTo(1); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
354 assertThat(preference3.getOrder()).isEqualTo(2); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRestrictedPreferenceAdapter.java163 final int order = mOriginalPreference.getOrder(); in replacePreference()
235 mRestrictedPreference.setOrder(mOriginalPreference.getOrder()); in updateRestrictedPreference()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleReduceBrightColorsPreferenceFragment.java103 intensity.setOrder(mShortcutPreference.getOrder() - 2); in updateGeneralCategoryOrder()
107 persist.setOrder(mShortcutPreference.getOrder() - 1); in updateGeneralCategoryOrder()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java70 switchPref.setOrder(checkBox.getOrder()); in addSwitchPreferenceBasedOnCheckBoxPreference()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java431 if (ecParameterSpec != null && ecParameterSpec.getOrder() != null) { in getSuiteBCipherFromCert()
432 bitLength = ecParameterSpec.getOrder().bitLength(); in getSuiteBCipherFromCert()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppDeletionPreferenceGroupTest.java75 assertThat(apps.getValue().getOrder()).isGreaterThan(0); in addsPreferenceToScreenWithHighOrder_onNoThreshold()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingPreferenceControllerTest.java77 assertThat(pref.getOrder()).isEqualTo(ORDER); in testCreateBluetoothPairingPreference()
DBluetoothDeviceNamePreferenceControllerTest.java89 assertThat(preference.getOrder()).isEqualTo(ORDER); in testCreateBluetoothDeviceNamePreference()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DUtils.java97 int keySizeBytes = (privateKey.getParams().getOrder().bitLength() + Byte.SIZE - 1) in getBytesFromP256PrivateKey()
115 (publicKey.getParams().getOrder().bitLength() + Byte.SIZE - 1) / Byte.SIZE; in getBytesFromP256PublicKey()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java68 final int phonePreferenceOrder = preference.getOrder(); in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleSeekBarControllerTest.java136 assertThat(mController.mSeekBarPreference.getOrder()).isEqualTo(100); in addToScreen_addsToEnd()
/packages/services/Car/packages/CarDeveloperOptions/src/com/android/car/developeroptions/
DCarDevelopmentSettingsDashboardFragment.java74 PREF_KEY_DEBUG_MISC_CATEGORY).getOrder(); in addPreferencesFromResource()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DDeviceStateAutoRotateSettingControllerTest.java93 assertThat(preference.getOrder()).isEqualTo(DEFAULT_ORDER); in displayPreference_addsPreferenceToPreferenceScreen()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoPreferenceController.java94 int imeiPreferenceOrder = preference.getOrder(); in displayPreference()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusPreferenceController.java100 mSlotSimStatus.setBasePreferenceOrdering(preference.getOrder()); in displayPreference()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DBaseEnterprisePrivacyPreferenceControllerTestCase.java117 assertWithMessage("order at index %s", i).that(pref.getOrder()).isEqualTo(i);

12