OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:editcontext
(Results
1 - 5
of
5
) sorted by null
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
InvalidationPreferences.java
31
* To write a preference, first call {@link #edit} to obtain a {@link
EditContext
}. Then, make
33
* Finally, call {@link #commit(
EditContext
)} to save the changes to stable storage.
42
public class
EditContext
{
45
EditContext
() {
85
/** Returns a new {@link
EditContext
} to modify the preferences managed by this class. */
86
public
EditContext
edit() {
87
return new
EditContext
();
91
* Applies the changes accumulated in {@code
editContext
}. Returns whether they were
96
public boolean commit(
EditContext
editContext
) {
[
all
...]
InvalidationService.java
25
import org.chromium.sync.notifier.InvalidationPreferences.
EditContext
;
220
EditContext
editContext
= invPreferences.edit();
221
invPreferences.setInternalNotificationClientState(
editContext
, data);
222
invPreferences.commit(
editContext
);
284
EditContext
editContext
= invPrefs.edit();
285
invPrefs.setAccount(
editContext
, owningAccount);
286
invPrefs.commit(
editContext
);
361
EditContext
editContext = prefs.edit()
[
all
...]
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/
InvalidationPreferencesTest.java
86
InvalidationPreferences.
EditContext
editContext
= invPreferences.edit();
96
invPreferences.setSyncTypes(
editContext
, syncTypes);
97
invPreferences.setObjectIds(
editContext
, objectIds);
98
invPreferences.setAccount(
editContext
, account);
99
invPreferences.setInternalNotificationClientState(
editContext
, internalClientState);
107
invPreferences.commit(
editContext
);
InvalidationServiceTest.java
24
import org.chromium.sync.notifier.InvalidationPreferences.
EditContext
;
141
EditContext
editContext
= invPrefs.edit();
142
invPrefs.setSyncTypes(
editContext
, CollectionUtil.newArrayList("BOOKMARK", "SESSION"));
144
invPrefs.setObjectIds(
editContext
, CollectionUtil.newArrayList(objectId));
145
assertTrue(invPrefs.commit(
editContext
));
176
EditContext
editContext
= invPrefs.edit();
177
invPrefs.setSyncTypes(
editContext
, CollectionUtil.newArrayList("BOOKMARK", "SESSION"));
179
invPrefs.setObjectIds(
editContext
, CollectionUtil.newArrayList(objectId))
[
all
...]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/
InvalidationControllerTest.java
215
InvalidationPreferences.
EditContext
edit = invalidationPreferences.edit();
258
InvalidationPreferences.
EditContext
edit = invalidationPreferences.edit();
Completed in 54 milliseconds