/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | AnnotationCheckerTest.java | 107 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedConstructorApi() local 114 checkSignatureCompliance(clz, observer, in testDetectUnauthorizedConstructorApi() 117 observer.validate(); in testDetectUnauthorizedConstructorApi() 119 observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedConstructorApi() 126 checkSignatureCompliance(clz, observer, in testDetectUnauthorizedConstructorApi() 129 observer.validate(); in testDetectUnauthorizedConstructorApi() 137 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedMethodApi() local 144 checkSignatureCompliance(clz, observer, in testDetectUnauthorizedMethodApi() 147 observer.validate(); in testDetectUnauthorizedMethodApi() 149 observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedMethodApi() [all …]
|
D | ApiComplianceCheckerTest.java | 71 ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS); in testMissingClass() local 75 checkSignatureCompliance(clz, observer); in testMissingClass() 76 observer.validate(); in testMissingClass() 284 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD); in testFieldValueChanged() local 290 checkSignatureCompliance(clz, observer); in testFieldValueChanged() 292 observer.validate(); in testFieldValueChanged() 411 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS); in testAddingAbstractToAClass() local 413 checkSignatureCompliance(clz, observer); in testAddingAbstractToAClass() 414 observer.validate(); in testAddingAbstractToAClass() 459 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_METHOD); in testAbstractToFinalMethod() local [all …]
|
/cts/tests/tests/database/src/android/database/cts/ |
D | ContentObserverTest.java | 129 final MyContentObserver observer = new MyContentObserver(null); in testDispatchChange_Completeness() local 131 observer.resetStatus(); in testDispatchChange_Completeness() 132 observer.dispatchChange(false, Arrays.asList(CONTENT_URI), 0); in testDispatchChange_Completeness() 133 assertEquals(4, observer.getChangeCount()); in testDispatchChange_Completeness() 135 observer.resetStatus(); in testDispatchChange_Completeness() 136 observer.dispatchChange(false, Arrays.asList(CONTENT_URI, CONTENT_URI), 0); in testDispatchChange_Completeness() 137 assertEquals(7, observer.getChangeCount()); in testDispatchChange_Completeness() 139 observer.resetStatus(); in testDispatchChange_Completeness() 140 observer.dispatchChange(false, CONTENT_URI, 0); in testDispatchChange_Completeness() 141 assertEquals(4, observer.getChangeCount()); in testDispatchChange_Completeness() [all …]
|
D | ObservableTest.java | 33 Object observer = new Object(); in testRegisterUnRegisterObserver() local 36 observable.unregisterObserver(observer); in testRegisterUnRegisterObserver() 49 observable.registerObserver(observer); in testRegisterUnRegisterObserver() 53 observable.registerObserver(observer); in testRegisterUnRegisterObserver() 59 observable.unregisterObserver(observer); in testRegisterUnRegisterObserver() 63 observable.unregisterObserver(observer); in testRegisterUnRegisterObserver() 67 observable.registerObserver(observer); in testRegisterUnRegisterObserver()
|
D | MergeCursorTest.java | 188 ContentObserver observer = new ContentObserver(null) {}; in testContentObsererOperations() local 192 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 198 mergeCursor.registerContentObserver(observer); in testContentObsererOperations() 202 mergeCursor.registerContentObserver(observer); in testContentObsererOperations() 208 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 210 mergeCursor.registerContentObserver(observer); in testContentObsererOperations() 212 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 215 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 225 MockObserver observer = new MockObserver(); in testDeactivate() local 229 mergeCursor.unregisterDataSetObserver(observer); in testDeactivate() [all …]
|
D | CursorWrapperTest.java | 129 MockObserver observer = new MockObserver(); in testDeactivate() local 133 cursorWrapper.unregisterDataSetObserver(observer); in testDeactivate() 139 assertFalse(observer.hasInvalidated()); in testDeactivate() 142 assertFalse(observer.hasInvalidated()); in testDeactivate() 146 cursorWrapper.registerDataSetObserver(observer); in testDeactivate() 147 assertFalse(observer.hasInvalidated()); in testDeactivate() 152 assertTrue(observer.hasInvalidated()); in testDeactivate() 162 cursorWrapper.registerDataSetObserver(observer); in testDeactivate() 168 cursorWrapper.unregisterDataSetObserver(observer); in testDeactivate() 169 observer.resetStatus(); in testDeactivate() [all …]
|
D | AbstractCursorTest.java | 160 final MockContentObserver observer = new MockContentObserver(); in testSetNotificationUris_selfNotify() local 161 mDatabaseCursor.registerContentObserver(observer); in testSetNotificationUris_selfNotify() 164 observer.waitForOnChange(ON_CHANGE_TIMEOUT_MS); in testSetNotificationUris_selfNotify() 165 observer.resetOnChangeWatch(); in testSetNotificationUris_selfNotify() 167 observer.waitForOnChange(ON_CHANGE_TIMEOUT_MS); in testSetNotificationUris_selfNotify() 174 final MockContentObserver observer = new MockContentObserver(); in testSetNotificationsUris() local 175 cursor.registerContentObserver(observer); in testSetNotificationsUris() 178 observer.waitForOnChange(ON_CHANGE_TIMEOUT_MS); in testSetNotificationsUris() 179 observer.resetOnChangeWatch(); in testSetNotificationsUris() 181 observer.waitForOnChange(ON_CHANGE_TIMEOUT_MS); in testSetNotificationsUris()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | AccessoryAttachmentHandler.java | 39 static void addObserver(@NonNull AccessoryAttachmentObserver observer) { in addObserver() argument 41 sObservers.add(observer); in addObserver() 50 static void removeObserver(@NonNull AccessoryAttachmentObserver observer) { in removeObserver() argument 52 sObservers.remove(observer); in removeObserver() 66 for (AccessoryAttachmentObserver observer : observers) { in onCreate() 67 observer.onAttached(accessory); in onCreate()
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | AccessoryAttachmentHandler.java | 39 static void addObserver(@NonNull AccessoryAttachmentObserver observer) { in addObserver() argument 41 sObservers.add(observer); in addObserver() 50 static void removeObserver(@NonNull AccessoryAttachmentObserver observer) { in removeObserver() argument 52 sObservers.remove(observer); in removeObserver() 66 for (AccessoryAttachmentObserver observer : observers) { in onCreate() 67 observer.onAttached(accessory); in onCreate()
|
D | TestCompanion.java | 41 TestCompanion(@NonNull Context context, @NonNull TestObserver observer) { in TestCompanion() argument 43 mHandler = new TestHandler(observer); in TestCompanion() 144 TestHandler(@NonNull TestObserver observer) { in TestHandler() argument 145 mObserver = observer; in TestHandler()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentQueryMapTest.java | 171 MockObserver observer = new MockObserver(); in testSetKeepUpdated() local 175 mContentQueryMap.addObserver(observer); in testSetKeepUpdated() 176 assertFalse(observer.hadUpdated(0)); in testSetKeepUpdated() 192 assertFalse(observer.hadUpdated(0)); in testSetKeepUpdated() 201 assertTrue(observer.hadUpdated(0)); in testSetKeepUpdated() 202 assertSame(mContentQueryMap, observer.getObservable()); in testSetKeepUpdated() 210 observer.reset(); in testSetKeepUpdated() 235 assertTrue(observer.hadUpdated(TEST_TIME_OUT)); in testSetKeepUpdated() 236 assertSame(mContentQueryMap, observer.getObservable()); in testSetKeepUpdated() 241 observer.reset(); in testSetKeepUpdated() [all …]
|
/cts/tests/tests/nativemedia/resourceobserver/src/ |
D | ResourceObserverNativeTest.cpp | 103 std::shared_ptr<ResourceObserver> observer = ::ndk::SharedRefBase::make<ResourceObserver>(); in testResourceObserver() local 109 Status status = service->registerObserver(observer, filters); in testResourceObserver() 118 EXPECT_TRUE(observer->waitForEvent(event, 100000)); in testResourceObserver() 123 EXPECT_FALSE(observer->waitForEvent(event, 1000000)); in testResourceObserver() 129 EXPECT_TRUE(observer->waitForEvent(event, 100000)); in testResourceObserver() 134 EXPECT_FALSE(observer->waitForEvent(event, 1000000)); in testResourceObserver() 138 status = service->unregisterObserver(observer); in testResourceObserver() 163 std::shared_ptr<ResourceObserver> observer = ::ndk::SharedRefBase::make<ResourceObserver>(); in TEST_F() local 176 status = service->registerObserver(observer, emptyFilters); in TEST_F() 181 status = service->registerObserver(observer, filters); in TEST_F() [all …]
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteCursorTest.java | 98 MockObserver observer = new MockObserver(); in testRegisterDataSetObserver() local 102 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() 106 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() 112 cursor.registerDataSetObserver(observer); in testRegisterDataSetObserver() 113 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() 118 assertTrue(observer.hasInvalidated()); in testRegisterDataSetObserver() 132 cursor.registerDataSetObserver(observer); in testRegisterDataSetObserver() 138 cursor.unregisterDataSetObserver(observer); in testRegisterDataSetObserver() 139 observer.resetStatus(); in testRegisterDataSetObserver() 140 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() [all …]
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/ |
D | InfoActivity.java | 31 public static void addObserver(Observer observer) { in addObserver() argument 33 sObservers.add(observer); in addObserver() 50 for (Observer observer : observers) { in onCreate() 51 observer.onCreate(this); in onCreate()
|
D | AddPrintersActivity.java | 28 public static void addObserver(@NonNull Runnable observer) { in addObserver() argument 30 sObservers.add(observer); in addObserver()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | DexMemberChecker.java | 76 public static void checkSingleMember(DexMember dexMember, DexMemberChecker.Observer observer) { in checkSingleMember() argument 77 checkSingleMember(dexMember, /* reflection= */ true, /* jni= */ true, observer); in checkSingleMember() 81 DexMemberChecker.Observer observer) { in checkSingleMember() argument 85 observer.classAccessible(false, dexMember); in checkSingleMember() 88 observer.classAccessible(true, dexMember); in checkSingleMember() 93 observer.fieldAccessibleViaReflection( in checkSingleMember() 99 observer.fieldAccessibleViaJni(hasMatchingField_JNI(klass, field), field); in checkSingleMember() 115 observer.methodAccessibleViaReflection(hasMatchingMethod_Reflection(klass, method), in checkSingleMember() 120 observer.methodAccessibleViaJni(hasMatchingMethod_JNI(klass, method), method); in checkSingleMember()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsMmTelManagerTest.java | 174 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testAdvancedCallingSetting() local 183 waitForLatch(contentObservedLatch, observer); in testAdvancedCallingSetting() 206 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVtSetting() local 215 waitForLatch(contentObservedLatch, observer); in testVtSetting() 241 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiSetting() local 251 waitForLatch(contentObservedLatch, observer); in testVoWiFiSetting() 278 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testCrossSIMSetting() local 290 waitForLatch(contentObservedLatch, observer); in testCrossSIMSetting() 317 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiRoamingSetting() local 326 waitForLatch(contentObservedLatch, observer); in testVoWiFiRoamingSetting() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SettingsUtils.java | 84 final OneTimeSettingsListener observer = in syncSet() local 87 observer.assertCalled(); in syncSet() 134 final OneTimeSettingsListener observer = new OneTimeSettingsListener(context, namespace, in syncDelete() local 137 observer.assertCalled(); in syncDelete()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 954 final ObbObserver observer = new ObbObserver(); in mountObb() local 956 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObb() 959 observer.waitForCompletion()); in mountObb() 962 assertTrue("OBB should be mounted", mStorageManager.isObbMounted(observer.getPath())); in mountObb() 965 assertEquals(expectedState, observer.getState()); in mountObb() 967 return observer.getPath(); in mountObb() 973 final ObbObserver observer = new ObbObserver(); in mountObbWithoutWait() local 975 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObbWithoutWait() 977 return observer; in mountObbWithoutWait() 980 private void waitForObbActionCompletion(final File file, final ObbObserver observer, in waitForObbActionCompletion() argument [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | AttachedSurfaceControlSyncTest.java | 134 ViewTreeObserver observer = getViewTreeObserver(); in onAttachedToWindow() local 135 observer.addOnPreDrawListener(mDrawListener); in onAttachedToWindow() 142 ViewTreeObserver observer = getViewTreeObserver(); in onDetachedFromWindow() local 143 observer.removeOnPreDrawListener(mDrawListener); in onDetachedFromWindow()
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | ServiceStateTest.java | 358 RecordingContentObserver observer = new RecordingContentObserver(); in verifyNotificationObservedWhenFieldChanged() local 359 mContentResolver.registerContentObserver(uriForSubAndField, false, observer); in verifyNotificationObservedWhenFieldChanged() 361 observer.mObserved).isEmpty(); in verifyNotificationObservedWhenFieldChanged() 370 DEFAULT_TIMEOUT, () -> observer.mObserved.contains(uriForSubAndField)); in verifyNotificationObservedWhenFieldChanged() 381 observer.mObserved).doesNotContain(uriForSubAndField); in verifyNotificationObservedWhenFieldChanged() 385 mContentResolver.unregisterContentObserver(observer); in verifyNotificationObservedWhenFieldChanged()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimCtsActivity.java | 66 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 69 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | BaseKillswitchTest.java | 66 DexMemberChecker.Observer observer = new DexMemberChecker.Observer() { in doTestKillswitchMechanism() 132 DexMemberChecker.checkSingleMember(member, reflection, jni, observer); in doTestKillswitchMechanism()
|
/cts/tests/app/src/android/app/cts/ |
D | ListActivityTest.java | 116 final ViewTreeObserver observer = view.getViewTreeObserver(); in runOnMainAndDrawSync() 126 observer.addOnDrawListener(listener); in runOnMainAndDrawSync()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/ |
D | poc.cpp | 76 sp<DummyOMXObserver> observer = new DummyOMXObserver(); in fuzzIOMXQcomEnc() local 77 status_t err = mOmx->allocateNode(name, observer, &node); in fuzzIOMXQcomEnc()
|