/frameworks/base/core/java/android/preference/ |
D | PreferenceGroup.java | 17 package android.preference; 112 public void addItemFromInflater(Preference preference) { in addItemFromInflater() argument 113 addPreference(preference); in addItemFromInflater() 141 public boolean addPreference(Preference preference) { in addPreference() argument 142 if (mPreferenceList.contains(preference)) { in addPreference() 147 if (preference.getOrder() == Preference.DEFAULT_ORDER) { in addPreference() 149 preference.setOrder(mCurrentPreferenceOrder++); in addPreference() 152 if (preference instanceof PreferenceGroup) { in addPreference() 155 ((PreferenceGroup)preference).setOrderingAsAdded(mOrderingAsAdded); in addPreference() 159 if (!onPrepareAddPreference(preference)) { in addPreference() [all …]
|
D | PreferenceGroupAdapter.java | 17 package android.preference; 22 import android.preference.Preference.OnPreferenceChangeInternalListener; 171 final Preference preference = group.getPreference(i); in flattenPreferenceGroup() local 173 preferences.add(preference); in flattenPreferenceGroup() 175 if (!mHasReturnedViewTypeCount && preference.isRecycleEnabled()) { in flattenPreferenceGroup() 176 addPreferenceClassName(preference); in flattenPreferenceGroup() 179 if (preference instanceof PreferenceGroup) { in flattenPreferenceGroup() 180 final PreferenceGroup preferenceAsGroup = (PreferenceGroup) preference; in flattenPreferenceGroup() 186 preference.setOnPreferenceChangeInternalListener(this); in flattenPreferenceGroup() 195 private PreferenceLayout createPreferenceLayout(Preference preference, PreferenceLayout in) { in createPreferenceLayout() argument [all …]
|
D | PreferenceCategory.java | 17 package android.preference; 61 protected boolean onPrepareAddPreference(Preference preference) { in onPrepareAddPreference() argument 62 if (preference instanceof PreferenceCategory) { in onPrepareAddPreference() 67 return super.onPrepareAddPreference(preference); in onPrepareAddPreference()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/ |
D | AbstractPreferenceController.java | 7 import androidx.preference.Preference; 8 import androidx.preference.PreferenceGroup; 9 import androidx.preference.PreferenceScreen; 36 final Preference preference = screen.findPreference(prefKey); in displayPreference() local 37 preference.setOnPreferenceChangeListener( in displayPreference() 48 public void updateState(Preference preference) { in updateState() argument 49 refreshSummary(preference); in updateState() 55 protected void refreshSummary(Preference preference) { in refreshSummary() argument 56 if (preference == null) { in refreshSummary() 65 preference.setSummary(summary); in refreshSummary() [all …]
|
D | ConfirmationDialogController.java | 20 import androidx.preference.Preference; 35 void showConfirmationDialog(@Nullable Preference preference); in showConfirmationDialog() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/ |
D | AbstractEnableAdbPreferenceController.java | 29 import androidx.preference.Preference; 30 import androidx.preference.PreferenceScreen; 31 import androidx.preference.SwitchPreference; 32 import androidx.preference.TwoStatePreference; 78 public void updateState(Preference preference) { in updateState() argument 79 ((TwoStatePreference) preference).setChecked(isAdbEnabled()); in updateState() 100 public boolean handlePreferenceTreeClick(Preference preference) { in handlePreferenceTreeClick() argument 105 if (TextUtils.equals(KEY_ENABLE_ADB, preference.getKey())) { in handlePreferenceTreeClick() 107 showConfirmationDialog(preference); in handlePreferenceTreeClick()
|
D | AbstractLogdSizePreferenceController.java | 25 import androidx.preference.ListPreference; 26 import androidx.preference.Preference; 27 import androidx.preference.PreferenceScreen; 79 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 80 if (preference == mLogdSize) { in onPreferenceChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerPreferenceFragment.java | 19 import androidx.preference.Preference; 20 import androidx.preference.PreferenceFragment; 25 public void onDisplayPreferenceDialog(Preference preference) { in onDisplayPreferenceDialog() argument 27 if (preference instanceof CustomListPreference) { in onDisplayPreferenceDialog() 29 .newInstance(preference.getKey()); in onDisplayPreferenceDialog() 31 super.onDisplayPreferenceDialog(preference); in onDisplayPreferenceDialog()
|
D | CustomListPreference.java | 26 import androidx.preference.ListPreference; 27 import androidx.preference.ListPreferenceDialogFragment; 145 final ListPreference preference = getCustomizablePreference(); in getValue() local 146 if (mClickedDialogEntryIndex >= 0 && preference.getEntryValues() != null) { in getValue() 147 return preference.getEntryValues()[mClickedDialogEntryIndex].toString(); in getValue() 161 final ListPreference preference = getCustomizablePreference(); in onDialogClosed() local 164 if (preference.callChangeListener(value)) { in onDialogClosed() 165 preference.setValue(value); in onDialogClosed()
|
D | DemoModeFragment.java | 28 import androidx.preference.Preference; 29 import androidx.preference.Preference.OnPreferenceChangeListener; 30 import androidx.preference.PreferenceFragment; 31 import androidx.preference.PreferenceScreen; 32 import androidx.preference.SwitchPreference; 128 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 130 if (preference == mEnabledSwitch) { in onPreferenceChange() 138 } else if (preference == mOnSwitch) { in onPreferenceChange()
|
D | ShortcutPicker.java | 26 import androidx.preference.Preference; 27 import androidx.preference.PreferenceCategory; 28 import androidx.preference.PreferenceFragment; 29 import androidx.preference.PreferenceScreen; 30 import androidx.preference.PreferenceViewHolder; 106 public boolean onPreferenceTreeClick(Preference preference) { in onPreferenceTreeClick() argument 107 mTunerService.setValue(mKey, preference.toString()); in onPreferenceTreeClick()
|
D | NavBarTuner.java | 44 import androidx.preference.ListPreference; 45 import androidx.preference.Preference; 46 import androidx.preference.Preference.OnPreferenceChangeListener; 107 private void bindLayout(ListPreference preference) { in bindLayout() argument 113 preference.setValue(val); in bindLayout() 115 preference.setOnPreferenceChangeListener((preference1, newValue) -> { in bindLayout() 149 OnPreferenceChangeListener listener = (preference, newValue) -> { in bindButton() 158 keycode.setOnPreferenceClickListener(preference -> { in bindButton() 161 .setTitle(preference.getTitle()) in bindButton()
|
D | TunerFragment.java | 30 import androidx.preference.Preference; 31 import androidx.preference.PreferenceFragment; 81 Preference preference = findPreference(DEBUG_ONLY[i]); in onCreatePreferences() local 82 if (preference != null) getPreferenceScreen().removePreference(preference); in onCreatePreferences()
|
D | RadioListPreference.java | 27 import androidx.preference.Preference; 28 import androidx.preference.PreferenceScreen; 131 public boolean onPreferenceTreeClick(Preference preference) { in onPreferenceTreeClick() argument 132 mListPref.mOnClickListener.onClick(null, Integer.parseInt(preference.getKey())); in onPreferenceTreeClick()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | FooterPreferenceMixinCompatTest.java | 28 import androidx.preference.PreferenceFragmentCompat; 29 import androidx.preference.PreferenceManager; 30 import androidx.preference.PreferenceScreen; 74 final FooterPreference preference = mMixin.createFooterPreference(); in createFooter_screenAvailable_canAttachToScreen() local 76 assertThat(preference).isNotNull(); in createFooter_screenAvailable_canAttachToScreen() 77 verify(mScreen).addPreference(preference); in createFooter_screenAvailable_canAttachToScreen() 82 final FooterPreference preference = mMixin.createFooterPreference(); in createFooter_screenAvailableDelayed_canAttachToScreen() local 86 assertThat(preference).isNotNull(); in createFooter_screenAvailableDelayed_canAttachToScreen() 87 verify(mScreen).addPreference(preference); in createFooter_screenAvailableDelayed_canAttachToScreen()
|
D | FooterPreferenceMixinTest.java | 28 import androidx.preference.PreferenceFragment; 29 import androidx.preference.PreferenceManager; 30 import androidx.preference.PreferenceScreen; 74 final FooterPreference preference = mMixin.createFooterPreference(); in createFooter_screenAvailable_canAttachToScreen() local 76 assertThat(preference).isNotNull(); in createFooter_screenAvailable_canAttachToScreen() 77 verify(mScreen).addPreference(preference); in createFooter_screenAvailable_canAttachToScreen() 82 final FooterPreference preference = mMixin.createFooterPreference(); in createFooter_screenAvailableDelayed_canAttachToScreen() local 86 assertThat(preference).isNotNull(); in createFooter_screenAvailableDelayed_canAttachToScreen() 87 verify(mScreen).addPreference(preference); in createFooter_screenAvailableDelayed_canAttachToScreen()
|
D | FooterPreferenceTest.java | 26 import androidx.preference.PreferenceViewHolder; 48 final FooterPreference preference = new FooterPreference(mContext); in createNewPreference_shouldSetKeyAndOrder() local 50 assertThat(preference.getKey()).isEqualTo(FooterPreference.KEY_FOOTER); in createNewPreference_shouldSetKeyAndOrder() 51 assertThat(preference.getOrder()).isEqualTo(FooterPreference.ORDER_FOOTER); in createNewPreference_shouldSetKeyAndOrder() 56 final FooterPreference preference = new FooterPreference(mContext); in bindPreference_shouldLinkifyContent() local 60 preference.onBindViewHolder(holder); in bindPreference_shouldLinkifyContent()
|
/frameworks/layoutlib/bridge/src/android/preference/ |
D | BridgePreferenceInflater.java | 17 package android.preference; 47 Preference preference = null; in createItem() local 49 preference = super.createItem(name, prefix, attrs); in createItem() 55 preference = super.createItem("SwitchPreference", prefix, attrs); in createItem() 60 bc.addCookie(preference, viewKey); in createItem() 62 return preference; in createItem()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | SettingsInjector.java | 44 import androidx.preference.Preference; 157 private void populatePreference(Preference preference, InjectedSetting setting) { in populatePreference() argument 158 preference.setTitle(setting.title); in populatePreference() 159 preference.setSummary(R.string.loading_injected_setting_summary); in populatePreference() 160 preference.setOnPreferenceClickListener(new ServiceSettingClickedListener(setting)); in populatePreference() 180 Preference preference = createPreference(prefContext, setting); in getInjectedSettings() local 181 populatePreference(preference, setting); in getInjectedSettings() 182 prefs.add(preference); in getInjectedSettings() 183 mSettings.add(new Setting(setting, preference)); in getInjectedSettings() 312 public boolean onPreferenceClick(Preference preference) { in onPreferenceClick() argument [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedPreferenceHelper.java | 29 import androidx.preference.Preference; 30 import androidx.preference.PreferenceViewHolder; 45 public RestrictedPreferenceHelper(Context context, Preference preference, in RestrictedPreferenceHelper() argument 48 mPreference = preference; in RestrictedPreferenceHelper()
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriverUtils.h | 48 hal::ExecutionPreference preference, hal::Priority priority, 61 if (!validateModel(model) || !validateExecutionPreference(preference) || 77 std::thread([model, driver, preference, userId, priority, callback] { 79 new SamplePreparedModel(convertToV1_3(model), driver, preference, userId, priority);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
D | LogpersistPreferenceControllerTest.java | 28 import androidx.preference.ListPreference; 29 import androidx.preference.Preference; 30 import androidx.preference.PreferenceScreen; 64 public void showConfirmationDialog(Preference preference) {} in setUp()
|
D | EnableAdbPreferenceControllerTest.java | 31 import androidx.preference.Preference; 32 import androidx.preference.PreferenceScreen; 33 import androidx.preference.SwitchPreference; 157 public void showConfirmationDialog(Preference preference) { in showConfirmationDialog() argument
|
/frameworks/ml/nn/runtime/ |
D | ModelBuilder.h | 129 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, uint32_t preference, 148 int findBestDeviceForEachOperation(uint32_t preference, 151 float getPerformance(uint32_t preference, const std::shared_ptr<Device> device) const; 152 float getPerformance(uint32_t preference, const std::shared_ptr<Device> device, 162 uint32_t preference, uint32_t priority,
|
D | CompilationBuilder.cpp | 102 int CompilationBuilder::setPreference(int32_t preference) { in setPreference() argument 108 if (preference >= kNumberOfPreferences) { in setPreference() 109 LOG(ERROR) << "ANeuralNetworksCompilation_setPreference invalid preference " << preference; in setPreference() 113 mPreference = preference; in setPreference()
|