Home
last modified time | relevance | path

Searched refs:edit (Results 1 – 25 of 221) sorted by relevance

123456789

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DFakeSharedPreferencesTest.kt95 val editor = sharedPreferences.edit() in <lambda>()
137 sharedPreferences.edit().putInt("key", 10).commit() in <lambda>()
145 sharedPreferences.edit().putInt("key", 10).commit() in <lambda>()
146 sharedPreferences.edit().putInt("key", 11).commit() in <lambda>()
153 sharedPreferences.edit().putString("key", "value").commit() in <lambda>()
154 sharedPreferences.edit().putString("key", null).commit() in <lambda>()
161 sharedPreferences.edit().putString("key", "value").commit() in <lambda>()
162 sharedPreferences.edit().putString("key", "other").putString("key", null).commit() in <lambda>()
169 sharedPreferences.edit().putStringSet("key", setOf("one")).commit() in <lambda>()
170 sharedPreferences.edit().putStringSet("key", setOf("two")).commit() in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DBubbleEducationControllerTest.kt25 import androidx.core.content.edit
51 sharedPrefs.edit { in setUp()
60 sharedPrefs.edit { putBoolean(PREF_STACK_EDUCATION, true) } in testSeenStackEducation_read()
72 sharedPrefs.edit { putBoolean(PREF_MANAGED_EDUCATION, true) } in testSeenManageEducation_read()
91 sharedPrefs.edit { putBoolean(PREF_STACK_EDUCATION, true) } in testShouldShowStackEducation()
94 sharedPrefs.edit { remove(PREF_STACK_EDUCATION) } in testShouldShowStackEducation()
107 sharedPrefs.edit { putBoolean(PREF_MANAGED_EDUCATION, true) } in testShouldShowManageEducation()
110 sharedPrefs.edit { remove(PREF_MANAGED_EDUCATION) } in testShouldShowManageEducation()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java228 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time)); in getTimeBefore()
243 mStorage.edit().putLong(PREFIX + "triggerTimeMillis", millis)); in setTriggerTimeMillis()
254 SharedPreferencesCompat.apply(mStorage.edit() in setMoratoriumTimeMillis()
291 mStorage.edit().putBoolean(PREFIX + "enabledState", enabled)); in setEnabledState()
301 SharedPreferencesCompat.apply(mStorage.edit() in onSuccess()
315 SharedPreferences.Editor editor = mStorage.edit(); in onTransientError()
329 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "errorCount")); in resetTransientError()
339 SharedPreferencesCompat.apply(mStorage.edit().putBoolean(PREFIX + "permanentError", true)); in onPermanentError()
347 SharedPreferencesCompat.apply(mStorage.edit().remove(PREFIX + "permanentError")); in resetPermanentError()
/frameworks/av/media/mtp/
DMtpServer.cpp250 ObjectEdit* edit = mObjectEditList[i]; in run() local
251 commitEdit(edit); in run()
252 delete edit; in run()
301 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd); in addEditObject() local
302 mObjectEditList.push_back(edit); in addEditObject()
308 ObjectEdit* edit = mObjectEditList[i]; in getEditObject() local
309 if (edit->mHandle == handle) return edit; in getEditObject()
317 ObjectEdit* edit = mObjectEditList[i]; in removeEditObject() local
318 if (edit->mHandle == handle) { in removeEditObject()
319 delete edit; in removeEditObject()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DPrefState.java48 mPrefs.edit() in addCat()
54 mPrefs.edit().remove(CAT_KEY_PREFIX + String.valueOf(cat.getSeed())).apply(); in removeCat()
76 mPrefs.edit().putInt(FOOD_STATE, foodState).apply(); in setFoodState()
84 mPrefs.edit().putFloat(WATER_STATE, waterState).apply(); in setWaterState()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DSharedPreferenceLoggerTest.java58 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putInt_shouldNotLogInitialPut()
74 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putBoolean_shouldNotLogInitialPut()
92 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_shouldNotLogInitialPut()
106 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_biggerThanIntMax_shouldLogIntMax()
118 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putLong_smallerThanIntMin_shouldLogIntMin()
129 final SharedPreferences.Editor editor = mSharedPrefLogger.edit(); in putFloat_shouldNotLogInitialPut()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recordissue/
DIssueRecordingState.kt46 set(value) = prefs.edit().putBoolean(KEY_TAKE_BUG_REPORT, value).apply()
50 set(value) = prefs.edit().putBoolean(KEY_RECORD_SCREEN, value).apply()
54 private set(value) = prefs.edit().putBoolean(HAS_APPROVED_SCREEN_RECORDING, value).apply()
58 set(value) = prefs.edit().putInt(KEY_ISSUE_TYPE_RES, value).apply()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java131 get(context).edit().putBoolean(key, value).apply(); in putBoolean()
139 get(context).edit().putInt(key, value).apply(); in putInt()
147 get(context).edit().putLong(key, value).apply(); in putLong()
155 get(context).edit().putString(key, value).apply(); in putString()
159 get(context).edit().putStringSet(key, value).apply(); in putStringSet()
172 get(context).edit().remove(key).apply(); in remove()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccCardControllerTest.java122 sp.edit().putInt(KEY_LAST_BOOT_COUNT, mLastBootCount).apply(); in tearDown()
130 mSp.edit().remove(KEY_LAST_BOOT_COUNT); in testIsBootUp()
134 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 1).apply(); in testIsBootUp()
138 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 1).apply(); in testIsBootUp()
142 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 2).apply(); in testIsBootUp()
204 mSp.edit().remove(KEY_LAST_BOOT_COUNT); in testStartOtaUpdatingIfNecessary_onEmbeddedSlot_Present()
218 mSp.edit().remove(KEY_LAST_BOOT_COUNT); in testStartOtaUpdatingIfNecessary_onEmbeddedSlot_NotPresent()
232 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 1).apply(); in testStartOtaUpdatingIfNecessary_notBootUp()
246 mSp.edit().remove(KEY_LAST_BOOT_COUNT); in testStartOtaUpdatingIfNecessary_onRemovableSlot()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java49 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled()
70 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri()
110 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
123 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailVibrationSettingsIfNeeded()
149 SharedPreferences.Editor editor = prefs.edit(); in migrateVoicemailRingtoneSettingsIfNeeded()
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h159 HyphenEdit edit = static_cast<HyphenEdit>(actual.flags[i] & 0xFF); in sameLineBreak() local
160 if (expected[i].mStartEdit != startHyphenEdit(edit)) { in sameLineBreak()
163 if (expected[i].mEndEdit != endHyphenEdit(edit)) { in sameLineBreak()
197 const HyphenEdit edit = static_cast<HyphenEdit>(lines.flags[i] & 0xFF); in toString() local
199 const StartHyphenEdit startEdit = startHyphenEdit(edit); in toString()
200 const EndHyphenEdit endEdit = endHyphenEdit(edit); in toString()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleEducationController.kt20 import androidx.core.content.edit
33 set(value) = prefs.edit { putBoolean(PREF_STACK_EDUCATION, value) } in <lambda>()
39 set(value) = prefs.edit { putBoolean(PREF_MANAGED_EDUCATION, value) } in <lambda>()
/frameworks/base/core/java/android/webkit/
DJsDialogHelper.java119 EditText edit = ((EditText) view.findViewById(com.android.internal.R.id.value)); in showDialog() local
120 edit.setText(mDefaultValue); in showDialog()
121 builder.setPositiveButton(positiveTextId, new PositiveListener(edit)); in showDialog()
146 public PositiveListener(EditText edit) { in PositiveListener() argument
147 mEdit = edit; in PositiveListener()
DFindActionModeCallback.java65 com.android.internal.R.id.edit); in FindActionModeCallback()
224 Editable edit = mEditText.getText(); in onCreateActionMode() local
225 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
/frameworks/minikin/include/minikin/
DLayoutPieces.h80 void insert(const Range& range, HyphenEdit edit, const LayoutPiece& layout, bool dir, in insert()
88 std::forward_as_tuple(range, edit, dir, paintId), in insert()
96 const HyphenEdit edit = packHyphenEdit(startEdit, endEdit); in getOrCreate() local
97 auto it = offsetMap.find(Key(range, edit, dir, paintId)); in getOrCreate()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java327 SharedPreferences.Editor edit = prefs.edit(); in putStoredApkInfo() local
328 edit.putLong(keyPrefix + KEY_TIME_STAMP, timeStamp); in putStoredApkInfo()
329 edit.putLong(keyPrefix + KEY_CRC, crc); in putStoredApkInfo()
330 edit.putInt(keyPrefix + KEY_DEX_NUMBER, extractedDexes.size() + 1); in putStoredApkInfo()
334 edit.putLong(keyPrefix + KEY_DEX_CRC + extractedDexId, dex.crc); in putStoredApkInfo()
335 edit.putLong(keyPrefix + KEY_DEX_TIME + extractedDexId, dex.lastModified()); in putStoredApkInfo()
341 edit.commit(); in putStoredApkInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImpl.kt60 edit().putStringSet(KEY, currentSet - packageNames).apply() in removeAuthorizedPanels()
73 sharedPreferences.edit().putStringSet(KEY, currentSet + packageNames).apply() in addAuthorizedPanelsInternal()
87 sharedPref.edit().putStringSet(KEY, getPreferredPackages()).apply() in instantiateSharedPrefs()
DSelectedComponentRepositoryImpl.kt91 .edit() in setSelectedComponent()
100 .edit() in removeSelectedComponent()
112 .edit() in shouldAddDefaultComponent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIConfiguration.java157 mCompatUISharedPreferences.edit().putBoolean( in setDontShowRestartDialogAgain()
168 mCompatUISharedPreferences.edit().putBoolean( in setUserHasSeenHorizontalReachabilityEducation()
173 mCompatUISharedPreferences.edit().putBoolean( in setUserHasSeenVerticalReachabilityEducation()
207 mLetterboxEduSharedPreferences.edit().putBoolean(dontShowLetterboxEduKey(userId), in setSeenLetterboxEducation()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginPrefs.java50 mSharedPrefs.edit().putStringSet(PLUGIN_ACTIONS, mPluginActions).apply(); in addAction()
59 context.getSharedPreferences(PREFS, 0).edit().putBoolean(HAS_PLUGINS, true).apply(); in setHasPlugins()
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/
DSharedPreferencesStorageTest.kt58 application.getSharedPreferences(NAME, MODE).edit().clear().applySync() in <lambda>()
82 storage.sharedPreferences.edit().putString("key", "string").applySync() in <lambda>()
87 storage.sharedPreferences.edit().clear().applySync() in <lambda>()
115 storage.sharedPreferences.edit().clear().commit() in <lambda>()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/
Dproguard-project.txt1 # To enable ProGuard in your project, edit project.properties
7 # You can edit the include path and order by changing the ProGuard
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DSharedPreferencesHelper.java32 SharedPreferences.Editor editor = sp.edit(); in clear()
45 SharedPreferences.Editor editor = sp.edit(); in setPeopleTileKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java59 mAutoDisabledPrefs.edit().remove(component.flattenToString()).apply(); in setDisabled()
61 mAutoDisabledPrefs.edit().putInt(component.flattenToString(), reason).apply(); in setDisabled()
/frameworks/base/services/core/java/com/android/server/locales/
DLocaleManagerBackupHelper.java328 SharedPreferences.Editor editor = sp.edit(); in onPackageUpdateFinished()
452 if (!sp.edit().clear().commit()) { in deleteStagedDataLocked()
576 if (!sp.edit().remove(packageName).commit()) { in doLazyRestoreLocked()
618 if (!sp.edit().putString(packageName, info).commit()) { in storeStagedDataInfo()
629 if (!sp.edit().putLong(KEY_STAGED_DATA_TIME, mClock.millis()).commit()) { in storeStagedDataCreatedTime()
659 if (!sp.edit().putStringSet(user, packageNames).commit()) { in addInArchivedPackagesInfo()
680 SharedPreferences.Editor editor = sp.edit(); in removeFromArchivedPackagesInfo()
711 if (!sp.edit().remove(user).commit()) { in removeArchivedPackagesForUser()
746 SharedPreferences.Editor editor = mDelegateAppLocalePackages.edit(); in removePackageFromPersistedInfo()
764 if (!mDelegateAppLocalePackages.edit().remove(key).commit()) { in removeProfileFromPersistedInfo()
[all …]

123456789