Home
last modified time | relevance | path

Searched defs:observer (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/signature/tests/src/android/signature/cts/tests/
DAnnotationCheckerTest.java86 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()
97 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CONSTRUCTOR)) { in testDetectUnauthorizedConstructorApi()
116 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()
127 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_METHOD)) { in testDetectUnauthorizedMethodApi()
144 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()
155 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_FIELD)) { in testDetectUnauthorizedFieldApi()
172 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()
183 try (ExpectFailure observer = new ExpectFailure(FailureType.EXTRA_CLASS)) { in testDetectUnauthorizedClassApi()
241 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()
253 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testDetectMissingAnnotation()
[all …]
DApiComplianceCheckerTest.java73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS)) { in testMissingClass()
327 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_FIELD)) { in testFieldValueChanged()
413 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClass()
436 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassSwitchToAbstract()
465 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingFinalFromAClassWithCtorSwitchToAbstract_PreviousApi()
526 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testRemovingAbstractFromAClass()
553 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingAbstractToAClass()
565 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClass()
594 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingFinalToAClassWithCtor_PreviousApi()
609 try (ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS)) { in testAddingStaticToInnerClass()
[all …]
DExpectedFailuresFilterAnnotationCheckerTest.java48 try (NoFailures observer = new NoFailures()) { in testIgnoreExpectedFailures_TestPasses()
73 try (ExpectFailure observer = new ExpectFailure(FailureType.MISSING_ANNOTATION)) { in testIgnoreExpectedFailures_TestStillFails()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DAttachedSurfaceControlSyncTest.java161 ViewTreeObserver observer = getViewTreeObserver(); in onAttachedToWindow() local
168 ViewTreeObserver observer = getViewTreeObserver(); in onDetachedFromWindow() local
183 ViewTreeObserver observer = getViewTreeObserver(); in onAttachedToWindow() local
190 ViewTreeObserver observer = getViewTreeObserver(); in onDetachedFromWindow() local
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DGlobalSearchSessionCtsTestBase.java933 TestObserverCallback observer = new TestObserverCallback(); in testAddObserver() local
980 mGlobalSearchSession.unregisterObserverCallback(mContext.getPackageName(), observer); in testAddObserver() local
1400 TestObserverCallback observer = new TestObserverCallback(); in testRegisterObserver_sameCallback_differentSpecs() local
1424 observer); in testRegisterObserver_sameCallback_differentSpecs() local
1458 mGlobalSearchSession.unregisterObserverCallback(mContext.getPackageName(), observer); in testRegisterObserver_sameCallback_differentSpecs() local
1708 TestObserverCallback observer = new TestObserverCallback(); in testAddObserver_schemaChange_added() local
1713 observer); in testAddObserver_schemaChange_added() local
1754 mGlobalSearchSession.unregisterObserverCallback(mContext.getPackageName(), observer); in testAddObserver_schemaChange_added() local
1775 TestObserverCallback observer = new TestObserverCallback(); in testAddObserver_schemaChange_removed() local
1780 observer); in testAddObserver_schemaChange_removed() local
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java233 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testAdvancedCallingSetting() local
265 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVtSetting() local
300 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiSetting() local
337 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testCrossSIMSetting() local
376 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiRoamingSetting() local
441 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiModeSetting() local
477 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiRoamingModeSetting() local
540 ContentObserver observer = createObserver(callingUri, contentObservedLatch); in testVoWiFiRoamingModeSettingUsingNonTerrestrialNetwork() local
765 ContentObserver observer = new ContentObserver(sHandler) { in createObserver() local
777 private void waitForLatch(CountDownLatch latch, ContentObserver observer) { in waitForLatch()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryAttachmentHandler.java39 static void addObserver(@NonNull AccessoryAttachmentObserver observer) { in addObserver()
50 static void removeObserver(@NonNull AccessoryAttachmentObserver observer) { in removeObserver()
DTestCompanion.java41 TestCompanion(@NonNull Context context, @NonNull TestObserver observer) { in TestCompanion()
144 TestHandler(@NonNull TestObserver observer) { in TestHandler()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DAccessoryAttachmentHandler.java39 static void addObserver(@NonNull AccessoryAttachmentObserver observer) { in addObserver()
50 static void removeObserver(@NonNull AccessoryAttachmentObserver observer) { in removeObserver()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/
DGlobalSearchSessionShim.java162 @NonNull ObserverCallback observer) in registerObserverCallback()
187 @NonNull String targetPackageName, @NonNull ObserverCallback observer) in unregisterObserverCallback()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/
DAddPrintersActivity.java28 public static void addObserver(@NonNull Runnable observer) { in addObserver()
DInfoActivity.java31 public static void addObserver(Observer observer) { in addObserver()
/cts/tests/tests/database/src/android/database/cts/
DObservableTest.java41 Object observer = new Object(); in testRegisterUnRegisterObserver() local
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java66 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver()
69 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DGlobalSearchSessionShimImpl.java132 @NonNull ObserverCallback observer) throws AppSearchException { in registerObserverCallback()
138 @NonNull String targetPackageName, @NonNull ObserverCallback observer) in unregisterObserverCallback()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DAbstractApiTest.java160 void run(ResultObserver observer) throws Exception; in run()
170 ResultObserver observer = mResultObserver; in runWithTestResultObserver() local
/cts/tests/location/location_fine/src/android/location/cts/fine/
DScanningSettingsTest.java201 final ContentObserver observer = in clickAndWaitForSettingChange() local
209 resolver.registerContentObserver(Settings.Global.getUriFor(settingKey), false, observer); in clickAndWaitForSettingChange() local
/cts/tests/tests/content/src/android/content/pm/cts/
DUninstallCallbackTest.java38 PackageDeleteObserver observer = new PackageDeleteObserver(); in testUninstallCallback_binderReceivesCorrectParams() local
/cts/tests/tests/content/src/android/content/cts/
DContentQueryMapTest.java173 MockObserver observer = new MockObserver(); in testSetKeepUpdated() local
273 MockObserver observer = new MockObserver(); in testSetKeepUpdatedWithHandler() local
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociationsChangedListenerTest.kt114 val observer = RecordingCdmEventObserver() in <lambda>() constant
/cts/tests/tests/nativemedia/resourceobserver/src/
DResourceObserverNativeTest.cpp103 std::shared_ptr<ResourceObserver> observer = ::ndk::SharedRefBase::make<ResourceObserver>(); in testResourceObserver() local
163 std::shared_ptr<ResourceObserver> observer = ::ndk::SharedRefBase::make<ResourceObserver>(); in TEST_F() local
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserSettings.java132 OneTimeSettingsListener observer = new OneTimeSettingsListener(mContext, mNamespace.get(), in syncSet() local
174 OneTimeSettingsListener observer = new OneTimeSettingsListener(mContext, mNamespace.get(), in syncDelete() local
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSpinnerTest.java323 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver()
326 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver()
DHeaderViewListAdapterTest.java401 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver()
404 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver()
459 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver()
463 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteCursorTest.java98 MockObserver observer = new MockObserver(); in testRegisterDataSetObserver() local
153 MockObserver observer = new MockObserver(); in testRequery() local

123