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
30
* To write a preference, first call {@link #edit} to obtain a {@link
EditContext
}. Then, make
32
* Finally, call {@link #commit(
EditContext
)} to save the changes to stable storage.
41
public class
EditContext
{
44
EditContext
() {
77
/** Returns a new {@link
EditContext
} to modify the preferences managed by this class. */
78
public
EditContext
edit() {
79
return new
EditContext
();
83
* Applies the changes accumulated in {@code
editContext
}. Returns whether they were
88
public boolean commit(
EditContext
editContext
) {
[
all
...]
InvalidationService.java
27
import org.chromium.sync.notifier.InvalidationPreferences.
EditContext
;
220
EditContext
editContext
= invPreferences.edit();
221
invPreferences.setInternalNotificationClientState(
editContext
, data);
222
invPreferences.commit(
editContext
);
283
EditContext
editContext
= invPrefs.edit();
284
invPrefs.setAccount(
editContext
, owningAccount);
285
invPrefs.commit(
editContext
);
317
EditContext
editContext = prefs.edit()
[
all
...]
/external/chromium_org/sync/android/javatests/src/org/chromium/sync/notifier/
InvalidationPreferencesTest.java
83
InvalidationPreferences.
EditContext
editContext
= invPreferences.edit();
90
invPreferences.setSyncTypes(
editContext
, syncTypes);
91
invPreferences.setAccount(
editContext
, account);
92
invPreferences.setInternalNotificationClientState(
editContext
, internalClientState);
99
invPreferences.commit(
editContext
);
InvalidationServiceTest.java
27
import org.chromium.sync.notifier.InvalidationPreferences.
EditContext
;
138
EditContext
editContext
= invPrefs.edit();
139
invPrefs.setSyncTypes(
editContext
, Lists.newArrayList("BOOKMARK", "SESSION"));
140
assertTrue(invPrefs.commit(
editContext
));
171
EditContext
editContext
= invPrefs.edit();
172
invPrefs.setSyncTypes(
editContext
, Lists.newArrayList("BOOKMARK", "SESSION"));
173
assertTrue(invPrefs.commit(
editContext
));
197
EditContext
editContext = invPrefs.edit()
[
all
...]
InvalidationControllerTest.java
208
InvalidationPreferences.
EditContext
edit = invalidationPreferences.edit();
251
InvalidationPreferences.
EditContext
edit = invalidationPreferences.edit();
Completed in 94 milliseconds