/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | AnnotationCheckerTest.java | 94 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedConstructorApi() local 101 checkSignatureCompliance(clz, observer, in testDetectUnauthorizedConstructorApi() 104 observer.validate(); in testDetectUnauthorizedConstructorApi() 106 observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedConstructorApi() 113 checkSignatureCompliance(clz, observer, in testDetectUnauthorizedConstructorApi() 116 observer.validate(); in testDetectUnauthorizedConstructorApi() 124 ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedMethodApi() local 131 checkSignatureCompliance(clz, observer, in testDetectUnauthorizedMethodApi() 134 observer.validate(); in testDetectUnauthorizedMethodApi() 136 observer = new ExpectFailure(FailureType.EXTRA_METHOD); in testDetectUnauthorizedMethodApi() [all …]
|
D | ApiComplianceCheckerTest.java | 58 ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS); in testMissingClass() local 62 checkSignatureCompliance(clz, observer); in testMissingClass() 63 observer.validate(); in testMissingClass() 271 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD); in testFieldValueChanged() local 277 checkSignatureCompliance(clz, observer); in testFieldValueChanged() 279 observer.validate(); in testFieldValueChanged() 398 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS); in testAddingAbstractToAClass() local 400 checkSignatureCompliance(clz, observer); in testAddingAbstractToAClass() 401 observer.validate(); in testAddingAbstractToAClass() 446 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_METHOD); in testAbstractToFinalMethod() local [all …]
|
/cts/tests/tests/database/src/android/database/cts/ |
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 | 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 | 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/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/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/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/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/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() 210 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVtSetting() local 219 waitForLatch(contentObservedLatch, observer); in testVtSetting() 249 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiSetting() local 259 waitForLatch(contentObservedLatch, observer); in testVoWiFiSetting() 284 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiRoamingSetting() local 293 waitForLatch(contentObservedLatch, observer); in testVoWiFiRoamingSetting() 359 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiModeSetting() local 370 waitForLatch(contentObservedLatch, observer); in testVoWiFiModeSetting() [all …]
|
/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/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/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | Common.java | 72 final INetworkStateObserver observer = INetworkStateObserver.Stub.asInterface( in notifyNetworkStateObserver() local 74 if (observer != null) { in notifyNetworkStateObserver() 76 if (!observer.isForeground()) { in notifyNetworkStateObserver() 78 observer.onNetworkStateChecked(null); in notifyNetworkStateObserver() 86 observer.onNetworkStateChecked( in notifyNetworkStateObserver()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 836 final ObbObserver observer = new ObbObserver(); in mountObb() local 838 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObb() 841 observer.waitForCompletion()); in mountObb() 844 assertTrue("OBB should be mounted", mStorageManager.isObbMounted(observer.getPath())); in mountObb() 847 assertEquals(expectedState, observer.getState()); in mountObb() 849 return observer.getPath(); in mountObb() 855 final ObbObserver observer = new ObbObserver(); in mountObbWithoutWait() local 857 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObbWithoutWait() 859 return observer; in mountObbWithoutWait() 862 private void waitForObbActionCompletion(final File file, final ObbObserver observer, in waitForObbActionCompletion() argument [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/common/device-side/util/src/com/android/compatibility/common/util/ |
D | SettingsUtils.java | 85 final OneTimeSettingsListener observer = in syncSet() local 88 observer.assertCalled(); in syncSet() 135 final OneTimeSettingsListener observer = new OneTimeSettingsListener(context, namespace, in syncDelete() local 138 observer.assertCalled(); in syncDelete()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | ScanningSettingsTest.java | 121 final ContentObserver observer = new ContentObserver( in clickAndWaitForSettingChange() local 129 resolver.registerContentObserver(Settings.Global.getUriFor(settingKey), false, observer); in clickAndWaitForSettingChange() local 137 resolver.unregisterContentObserver(observer); in clickAndWaitForSettingChange()
|
/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 | 74 DexMemberChecker.Observer observer = new DexMemberChecker.Observer() { in doTestKillswitchMechanism() 140 DexMemberChecker.checkSingleMember(member, reflection, jni, observer); in doTestKillswitchMechanism()
|
D | HiddenApiTest.java | 86 DexMemberChecker.Observer observer = new DexMemberChecker.Observer() { in doTestSignature() 151 observer); in doTestSignature()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | HeaderViewListAdapterTest.java | 401 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 404 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 459 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 460 mObserver = observer; in registerDataSetObserver() 463 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 464 if (mObserver == observer) { in unregisterDataSetObserver()
|
/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()
|