HomeSort by relevance Sort by last modified time
    Searched refs:listener (Results 226 - 250 of 4147) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /tools/tradefederation/core/prod-tests/src/com/android/sensor/tests/
SingleSensorTests.java 48 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException {
55 super.run(listener);
56 pullFiles(listener);
73 private void pullFiles(ITestInvocationListener listener) throws DeviceNotAvailableException {
79 pullFile(listener, filePath);
87 private void pullFile(ITestInvocationListener listener, String filePath)
98 listener.testLog(report_key, LogDataType.TEXT, outputSource);
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
AlertDialog.java 214 * Sets a listener to be invoked when the positive button of the dialog is pressed. This method
217 * @param whichButton Which button to set the listener on, can be one of
222 * @param listener The {@link DialogInterface.OnClickListener} to use.
224 public void setButton(int whichButton, CharSequence text, OnClickListener listener) {
225 mAlert.setButton(whichButton, text, listener, null);
447 * Set a listener to be invoked when the positive button of the dialog is pressed.
449 * @param listener The {@link DialogInterface.OnClickListener} to use.
453 public Builder setPositiveButton(@StringRes int textId, final OnClickListener listener) {
455 P.mPositiveButtonListener = listener;
460 * Set a listener to be invoked when the positive button of the dialog is pressed
    [all...]
  /frameworks/base/services/core/java/com/android/server/
CountryDetectorService.java 48 * The class represents the remote listener, it will also removes itself
49 * from listener list when the remote process was died.
55 public Receiver(ICountryListener listener) {
56 mListener = listener;
57 mKey = listener.asBinder();
110 * Add the ICountryListener into the listener list.
113 public void addCountryListener(ICountryListener listener) throws RemoteException {
117 addListener(listener);
121 * Remove the ICountryListener from the listener list.
124 public void removeCountryListener(ICountryListener listener) throws RemoteException
    [all...]
  /packages/apps/Car/Messenger/src/com/android/car/messenger/
TTSHelper.java 38 interface Listener {
57 private final Map<String, Listener> mListeners = new HashMap<>();
78 void requestPlay(CharSequence textToSpeak, Listener listener) {
85 mPendingRequest = new SpeechRequest(textToSpeak, listener);
87 playInternal(textToSpeak, listener);
95 private void playInternal(CharSequence textToSpeak, Listener listener) {
98 mHandler.post(listener::onTTSError);
102 String id = Integer.toString(listener.hashCode())
    [all...]
  /test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
VtsFuzzTestResultParser.java 59 /** True if start of test has already been reported to listener. */
90 * Creates the GTestResultParser for a single listener.
94 * @param listener informed of test results as the tests are executing
96 public VtsFuzzTestResultParser(String testRunName, ITestRunListener listener) {
99 mTestListeners.add(listener);
112 for (ITestRunListener listener : mTestListeners) {
113 listener.testRunStarted(mTestRunName, mNumTestsExpected);
139 for (ITestRunListener listener : mTestListeners) {
140 listener.testFailed(mTestId, mStackTrace.toString());
146 for (ITestRunListener listener : mTestListeners)
    [all...]
  /tools/tradefederation/core/prod-tests/src/com/android/app/tests/
AppLaunchTest.java 83 public void run(ITestInvocationListener listener) throws DeviceNotAvailableException {
85 listener.testRunStarted(RUN_NAME, 2);
102 performInstallTest(apkFile, listener);
105 performLaunchTest(packageName, listener);
107 listener.testRunFailed(e.toString());
109 listener.testRunEnded(System.currentTimeMillis() - startTime,
115 private void performInstallTest(File apkFile, ITestInvocationListener listener)
119 listener.testStarted(installTest);
122 listener.testFailed(installTest, result);
124 listener.testEnded(installTest, Collections.<String, String> emptyMap())
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/testtype/
InstrumentationFileTest.java 93 public void run(final ITestInvocationListener listener) throws DeviceNotAvailableException {
98 writeTestsToFileAndRun(mTests, listener);
108 * @param listener the test result listener
112 final ITestInvocationListener listener) throws DeviceNotAvailableException {
121 reRunTestsSerially(mInstrumentationTest, listener);
145 runTests(mInstrumentationTest, listener);
149 reRunTestsSerially(mInstrumentationTest, listener);
158 reRunTestsSerially(mInstrumentationTest, listener);
172 private void runTests(InstrumentationTest runner, ITestInvocationListener listener)
    [all...]
  /external/junit/src/main/java/org/junit/runner/
JUnitCore.java 74 RunListener listener = new TextListener(system); local
75 addListener(listener);
133 RunListener listener = result.createListener(); local
134 notifier.addFirstListener(listener);
140 removeListener(listener);
146 * Add a listener to be notified as the tests run.
148 * @param listener the listener to add
151 public void addListener(RunListener listener) {
152 notifier.addListener(listener);
    [all...]
  /external/mockito/src/test/java/org/mockito/internal/debugging/
VerboseMockInvocationLoggerTest.java 23 private VerboseMockInvocationLogger listener; field in class:VerboseMockInvocationLoggerTest
32 listener = new VerboseMockInvocationLogger(new PrintStream(output));
48 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, "return value"));
60 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, new ThirdPartyException()));
71 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, "whatever"));
80 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, "whatever"));
90 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, new ThirdPartyException()));
93 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, new ThirdPartyException()));
96 listener.reportInvocation(new NotifiedMethodInvocationReport(invocation, new ThirdPartyException()));
  /external/sl4a/Common/src/com/googlecode/android_scripting/event/
EventServer.java 34 * An Event Forwarding server that forwards events from the rpc queue in realtime to listener
39 private static final Vector<Listener> mListeners = new Vector<Listener>();
57 for (Listener listener : mListeners) {
58 mListeners.remove(listener);
59 listener.lock.countDown();
67 Listener l = new Listener(socket);
68 Log.v("Adding EventServer listener " + socket.getPort())
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
OrientationEventListenerTest.java 55 MyOrientationEventListener listener = new MyOrientationEventListener(mContext); local
56 listener.enable();
57 listener.disable();
66 MyOrientationEventListener listener = new MyOrientationEventListener(mContext); local
67 assertEquals(hasSensor, listener.canDetectOrientation());
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/
EngineResource.java 16 private ResourceListener listener; field in class:EngineResource
33 void setResourceListener(Key key, ResourceListener listener) {
35 this.listener = listener;
100 listener.onResourceReleased(key, this);
  /external/glide/library/src/main/java/com/bumptech/glide/manager/
DefaultConnectivityMonitor.java 12 private final ConnectivityListener listener; field in class:DefaultConnectivityMonitor
23 listener.onConnectivityChanged(isConnected);
28 public DefaultConnectivityMonitor(Context context, ConnectivityListener listener) {
30 this.listener = listener;
  /external/mockito/src/main/java/org/mockito/internal/framework/
DefaultMockitoSession.java 16 private final UniversalTestListener listener; field in class:DefaultMockitoSession
20 listener = new UniversalTestListener(strictness, logger);
22 //So that the listener can capture mock creation events
23 Mockito.framework().addListener(listener);
31 //Cleaning up the state, we no longer need the listener hooked up
32 //The listener implements MockCreationListener and at this point
34 Mockito.framework().removeListener(listener);
37 listener.testFinished(new TestFinishedEvent() {
  /external/mockito/src/test/java/org/mockitousage/debugging/
VerificationListenerCallBackTest.java 33 RememberingListener listener = new RememberingListener(); local
35 mockitoFramework.addListener(listener);
45 assertThat(listener).is(notifiedFor(foo, never, invocationWanted));
70 VerificationListener listener = mock(VerificationListener.class); local
71 framework().addListener(listener);
79 verify(listener, never()).onVerification(any(VerificationEvent.class));
86 RememberingListener listener = new RememberingListener(); local
88 mockitoFramework.addListener(listener);
97 assertThat(listener.cause).isInstanceOf(MockitoAssertionError.class);
104 RememberingListener listener = new RememberingListener() local
122 RememberingListener listener = new RememberingListener(); local
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTelephonyManager.java 11 private PhoneStateListener listener; field in class:ShadowTelephonyManager
22 public void listen(PhoneStateListener listener, int events) {
23 this.listener = listener;
28 * Non-Android accessor. Returns the most recent listener
34 return listener;
  /frameworks/base/core/java/android/os/
RemoteCallback.java 37 public RemoteCallback(OnResultListener listener) {
38 this(listener, null);
41 public RemoteCallback(@NonNull OnResultListener listener, @Nullable Handler handler) {
42 if (listener == null) {
43 throw new NullPointerException("listener cannot be null");
45 mListener = listener;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
PluginManager.java 31 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls);
32 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<?> cls,
34 <T extends Plugin> void addPluginListener(String action, PluginListener<T> listener,
36 <T extends Plugin> void addPluginListener(String action, PluginListener<T> listener,
39 void removePluginListener(PluginListener<?> listener);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
ConfigurationControllerImpl.java 51 public void addCallback(ConfigurationListener listener) {
52 mListeners.add(listener);
53 listener.onDensityOrFontScaleChanged();
57 public void removeCallback(ConfigurationListener listener) {
58 mListeners.remove(listener);
  /frameworks/support/compat/java/android/support/v4/view/
ActionProvider.java 287 public void setSubUiVisibilityListener(SubUiVisibilityListener listener) {
288 mSubUiVisibilityListener = listener;
292 * Set a listener to be notified when this ActionProvider's overridden visibility changes.
295 * @param listener listener to set
297 public void setVisibilityListener(VisibilityListener listener) {
298 if (mVisibilityListener != null && listener != null) {
303 mVisibilityListener = listener;
  /frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
ImageLoader.java 40 interface Listener {
46 final Listener listener) {
51 // call the listener now and return
53 if (listener != null) {
54 listener.onImageLoaded(cachedValue);
77 if (listener != null) {
78 listener.onImageLoaded(bitmap);
  /packages/apps/TV/src/com/android/tv/dvr/
BaseDvrDataManager.java 67 public void addDvrScheduleLoadFinishedListener(OnDvrScheduleLoadFinishedListener listener) {
68 mOnDvrScheduleLoadFinishedListeners.add(listener);
72 public void removeDvrScheduleLoadFinishedListener(OnDvrScheduleLoadFinishedListener listener) {
73 mOnDvrScheduleLoadFinishedListeners.remove(listener);
78 OnRecordedProgramLoadFinishedListener listener) {
79 mOnRecordedProgramLoadFinishedListeners.add(listener);
84 OnRecordedProgramLoadFinishedListener listener) {
85 mOnRecordedProgramLoadFinishedListeners.remove(listener);
89 public final void addScheduledRecordingListener(ScheduledRecordingListener listener) {
90 mScheduledRecordingListeners.add(listener);
    [all...]
  /frameworks/base/core/java/android/net/nsd/
NsdManager.java 48 * <p> The API is asynchronous and responses to requests from an application are on listener
349 Object listener = getListener(message.arg2); local
350 if (listener == null) {
358 ((DiscoveryListener) listener).onDiscoveryStarted(s);
362 ((DiscoveryListener) listener).onStartDiscoveryFailed(getNsdServiceInfoType(ns),
366 ((DiscoveryListener) listener).onServiceFound((NsdServiceInfo) message.obj); method
369 ((DiscoveryListener) listener).onServiceLost((NsdServiceInfo) message.obj); method
373 ((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns),
378 ((DiscoveryListener) listener).onDiscoveryStopped(getNsdServiceInfoType(ns));
382 ((RegistrationListener) listener).onRegistrationFailed(ns, message.arg1)
385 ((RegistrationListener) listener).onServiceRegistered( method
402 ((ResolveListener) listener).onServiceResolved((NsdServiceInfo) message.obj); method
    [all...]
  /external/volley/src/test/java/com/android/volley/
RequestQueueIntegrationTest.java 72 RequestFinishedListener listener = mock(RequestFinishedListener.class); local
85 queue.addRequestFinishedListener(listener);
92 verifyNoMoreInteractions(listener);
94 verify(listener, timeout(100)).onRequestFinished(higherPriorityReq);
96 verify(listener, timeout(10)).onRequestFinished(lowerPriorityReq);
110 RequestFinishedListener listener = mock(RequestFinishedListener.class); local
123 queue.addRequestFinishedListener(listener);
130 verifyNoMoreInteractions(listener);
131 verify(listener, timeout(100)).onRequestFinished(req1);
132 verify(listener, timeout(10)).onRequestFinished(req2)
142 RequestFinishedListener listener = mock(RequestFinishedListener.class); local
172 RequestFinishedListener listener = mock(RequestFinishedListener.class); local
193 RequestFinishedListener listener = mock(RequestFinishedListener.class); local
    [all...]
  /packages/services/Car/car-lib/src/android/car/vms/
VmsSubscriberManager.java 34 * API for interfacing with the VmsSubscriberService. It supports a single listener that can
134 * Sets the listener ({@link #mListener}) this manager is linked to. Subscriptions to the
139 * @param listener subscriber listener that will handle onVmsMessageReceived events.
140 * @throws IllegalStateException if the listener was already set.
142 public void setListener(VmsSubscriberClientListener listener) {
144 Log.d(TAG, "Setting listener.");
148 throw new IllegalStateException("Listener is already configured.");
150 mListener = listener;
155 * Removes the listener and unsubscribes from all the layer/version
175 VmsSubscriberClientListener listener; local
199 VmsSubscriberClientListener listener; local
228 VmsSubscriberClientListener listener; local
248 VmsSubscriberClientListener listener; local
260 VmsSubscriberClientListener listener; local
    [all...]

Completed in 1614 milliseconds

1 2 3 4 5 6 7 8 91011>>