OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:datasetobserver
(Results
1 - 25
of
142
) sorted by null
1
2
3
4
5
6
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPagerAdapter.java
3
import android.database.
DataSetObserver
;
10
private
DataSetObserver
dataSetObserver
;
13
public void registerDataSetObserver(
DataSetObserver
dataSetObserver
) {
14
this.
dataSetObserver
=
dataSetObserver
;
19
if (
dataSetObserver
!= null) {
20
dataSetObserver
.onChanged();
ShadowBaseAdapter.java
3
import android.database.
DataSetObserver
;
16
private final List<
DataSetObserver
> dataSetObservers = new ArrayList<
DataSetObserver
>();
40
public void registerDataSetObserver(
DataSetObserver
observer) {
50
public void unregisterDataSetObserver(
DataSetObserver
observer) {
60
for (
DataSetObserver
dataSetObserver
: dataSetObservers) {
61
dataSetObserver
.onChanged();
70
for (
DataSetObserver
dataSetObserver
: dataSetObservers)
[
all
...]
ShadowCursorWrapper.java
179
public void registerDataSetObserver(
DataSetObserver
dataSetObserver
) {
180
wrappedCursor.registerDataSetObserver(
dataSetObserver
);
184
public void unregisterDataSetObserver(
DataSetObserver
dataSetObserver
) {
185
wrappedCursor.unregisterDataSetObserver(
dataSetObserver
);
/cts/tests/tests/database/src/android/database/cts/
DataSetObserverTest.java
19
import android.database.
DataSetObserver
;
24
MockDataSetObserver
dataSetObserver
= new MockDataSetObserver();
25
dataSetObserver
.onChanged();
29
MockDataSetObserver
dataSetObserver
= new MockDataSetObserver();
30
dataSetObserver
.onInvalidated();
33
private class MockDataSetObserver extends
DataSetObserver
{
DataSetObservableTest.java
20
import android.database.
DataSetObserver
;
61
private class MockDataSetObserver extends
DataSetObserver
{
/cts/tests/tests/widget/src/android/widget/cts/
BaseAdapterTest.java
20
import android.database.
DataSetObserver
;
37
MockDataSetObserver
dataSetObserver
= new MockDataSetObserver();
39
assertFalse(
dataSetObserver
.hasCalledOnChanged());
41
assertFalse(
dataSetObserver
.hasCalledOnChanged());
43
baseAdapter.registerDataSetObserver(
dataSetObserver
);
45
assertTrue(
dataSetObserver
.hasCalledOnChanged());
47
dataSetObserver
.reset();
48
assertFalse(
dataSetObserver
.hasCalledOnChanged());
49
baseAdapter.unregisterDataSetObserver(
dataSetObserver
);
51
assertFalse(
dataSetObserver
.hasCalledOnChanged())
[
all
...]
BaseExpandableListAdapterTest.java
19
import android.database.
DataSetObserver
;
57
MockDataSetObserver
dataSetObserver
= new MockDataSetObserver();
58
adapter.registerDataSetObserver(
dataSetObserver
);
60
assertFalse(
dataSetObserver
.hasCalledOnChanged());
62
assertTrue(
dataSetObserver
.hasCalledOnChanged());
67
MockDataSetObserver
dataSetObserver
= new MockDataSetObserver();
68
adapter.registerDataSetObserver(
dataSetObserver
);
70
assertFalse(
dataSetObserver
.hasCalledOnInvalidated());
72
assertTrue(
dataSetObserver
.hasCalledOnInvalidated());
89
MockDataSetObserver
dataSetObserver
= new MockDataSetObserver()
[
all
...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
PagerAdapterTest.java
3
import android.database.
DataSetObserver
;
18
TestDataSetObserver
datasetObserver
= new TestDataSetObserver();
19
shadowOf(pagerAdapter).registerDataSetObserver(
datasetObserver
);
22
assertTrue(
datasetObserver
.onChangedWasCalled);
37
private class TestDataSetObserver extends
DataSetObserver
{
ArrayAdapterTest.java
10
import android.database.
DataSetObserver
;
112
DataSetObserver
observer = mock(
DataSetObserver
.class);
123
DataSetObserver
observer = mock(
DataSetObserver
.class);
133
DataSetObserver
observer = mock(
DataSetObserver
.class);
143
DataSetObserver
observer = mock(
DataSetObserver
.class);
153
DataSetObserver
observer = mock(DataSetObserver.class)
[
all
...]
/frameworks/base/core/java/android/database/
DataSetObservable.java
20
* A specialization of {@link Observable} for {@link
DataSetObserver
}
22
* {@link
DataSetObserver
} objects.
24
public class DataSetObservable extends Observable<
DataSetObserver
> {
26
* Invokes {@link
DataSetObserver
#onChanged} on each observer.
43
* Invokes {@link
DataSetObserver
#onInvalidated} on each observer.
DataSetObserver.java
22
*
DataSetObserver
must be implemented by objects which are added to a DataSetObservable.
24
public abstract class
DataSetObserver
{
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionCursor.java
20
import android.database.
DataSetObserver
;
71
void registerDataSetObserver(
DataSetObserver
observer);
75
* {@link #registerDataSetObserver(
DataSetObserver
)}
79
void unregisterDataSetObserver(
DataSetObserver
observer);
SuggestionCursorWrapper.java
19
import android.database.
DataSetObserver
;
63
public void registerDataSetObserver(
DataSetObserver
observer) {
69
public void unregisterDataSetObserver(
DataSetObserver
observer) {
Corpora.java
19
import android.database.
DataSetObserver
;
87
void registerDataSetObserver(
DataSetObserver
observer);
91
* {@link #registerDataSetObserver(
DataSetObserver
)}
95
void unregisterDataSetObserver(
DataSetObserver
observer);
ListSuggestionCursor.java
22
import android.database.
DataSetObserver
;
119
public void registerDataSetObserver(
DataSetObserver
observer) {
125
* {@link #registerDataSetObserver(
DataSetObserver
)}
129
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
MockDataSetObserver.java
19
import android.database.
DataSetObserver
;
24
* A {@link
DataSetObserver
} that knows whether it has been notified.
26
public class MockDataSetObserver extends
DataSetObserver
{
/frameworks/base/core/java/android/widget/
BaseAdapter.java
20
import android.database.
DataSetObserver
;
37
public void registerDataSetObserver(
DataSetObserver
observer) {
41
public void unregisterDataSetObserver(
DataSetObserver
observer) {
BaseExpandableListAdapter.java
20
import android.database.
DataSetObserver
;
37
public void registerDataSetObserver(
DataSetObserver
observer) {
41
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/cts/tests/src/android/view/animation/cts/
GridLayoutAnimStubActivity.java
22
import android.database.
DataSetObserver
;
67
public void registerDataSetObserver(
DataSetObserver
observer) {
70
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
AbstractGoogleSourceResult.java
24
import android.database.
DataSetObserver
;
72
public void registerDataSetObserver(
DataSetObserver
observer) {
75
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
MockCorpora.java
20
import android.database.
DataSetObserver
;
113
public void registerDataSetObserver(
DataSetObserver
observer) {
117
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
SectionedAlbumDataAdapter.java
20
import android.database.
DataSetObserver
;
34
public class SectionedAlbumDataAdapter extends
DataSetObserver
implements ListAdapter {
63
//
DataSetObserver
167
public void registerDataSetObserver(
DataSetObserver
observer) {
172
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/database/
TestCursor.java
7
import android.database.
DataSetObserver
;
173
public void registerDataSetObserver(
DataSetObserver
observer) {
178
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/frameworks/base/test-runner/src/android/test/mock/
MockCursor.java
23
import android.database.
DataSetObserver
;
168
public void registerDataSetObserver(
DataSetObserver
observer) {
191
public void unregisterDataSetObserver(
DataSetObserver
observer) {
/packages/apps/Browser/src/com/android/browser/view/
BasePieView.java
19
import android.database.
DataSetObserver
;
33
private
DataSetObserver
mObserver;
62
mObserver = new
DataSetObserver
() {
Completed in 1299 milliseconds
1
2
3
4
5
6