Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 63) sorted by relevance

123

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortConnector.java113 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
122 if (listener != null) { in connectToDevicePort()
123 listener.onPortsConnected(null); in connectToDevicePort()
140 listener, handler); in connectToDevicePort()
146 if (listener != null) { in connectToDevicePort()
147 listener.onPortsConnected(null); in connectToDevicePort()
167 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
176 if (listener != null) { in connectToDevicePort()
177 listener.onPortsConnected(null); in connectToDevicePort()
192 if (listener != null) { in connectToDevicePort()
[all …]
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortConnector.java113 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
122 if (listener != null) { in connectToDevicePort()
123 listener.onPortsConnected(null); in connectToDevicePort()
140 listener, handler); in connectToDevicePort()
146 if (listener != null) { in connectToDevicePort()
147 listener.onPortsConnected(null); in connectToDevicePort()
167 final OnPortsConnectedListener listener, final Handler handler) { in connectToDevicePort() argument
176 if (listener != null) { in connectToDevicePort()
177 listener.onPortsConnected(null); in connectToDevicePort()
192 if (listener != null) { in connectToDevicePort()
[all …]
/development/samples/ControllerSample/src/com/example/inputmanagercompat/
DInputManagerV9.java119 public void registerInputDeviceListener(InputDeviceListener listener, Handler handler) { in registerInputDeviceListener() argument
120 mListeners.remove(listener); in registerInputDeviceListener()
124 mListeners.put(listener, handler); in registerInputDeviceListener()
128 public void unregisterInputDeviceListener(InputDeviceListener listener) { in unregisterInputDeviceListener() argument
129 mListeners.remove(listener); in unregisterInputDeviceListener()
137 for (InputDeviceListener listener : mListeners.keySet()) { in notifyListeners()
138 Handler handler = mListeners.get(listener); in notifyListeners()
139 DeviceEvent odc = DeviceEvent.getDeviceEvent(why, deviceId, listener); in notifyListeners()
155 InputDeviceListener listener) { in getDeviceEvent() argument
162 curChanged.mListener = listener; in getDeviceEvent()
DInputManagerV16.java76 public void registerInputDeviceListener(InputDeviceListener listener, Handler handler) { in registerInputDeviceListener() argument
77 V16InputDeviceListener v16Listener = new V16InputDeviceListener(listener); in registerInputDeviceListener()
79 mListeners.put(listener, v16Listener); in registerInputDeviceListener()
83 public void unregisterInputDeviceListener(InputDeviceListener listener) { in unregisterInputDeviceListener() argument
84 V16InputDeviceListener curListener = mListeners.remove(listener); in unregisterInputDeviceListener()
DInputManagerCompat.java50 public void registerInputDeviceListener(InputManagerCompat.InputDeviceListener listener, in registerInputDeviceListener() argument
58 public void unregisterInputDeviceListener(InputManagerCompat.InputDeviceListener listener); in unregisterInputDeviceListener() argument
/development/samples/VoiceRecognitionService/src/com/example/android/voicerecognitionservice/
DVoiceRecognitionService.java38 protected void onCancel(Callback listener) { in onCancel() argument
43 protected void onStartListening(Intent recognizerIntent, Callback listener) { in onStartListening() argument
71 listener.results(bundle); in onStartListening()
78 protected void onStopListening(Callback listener) { in onStopListening() argument
/development/tools/hosttestlib/src/com/android/hosttest/
DDeviceConnector.java55 NewDeviceListener listener = new NewDeviceListener(deviceSerial); in connectToDevice() local
56 AndroidDebugBridge.addDeviceChangeListener(listener); in connectToDevice()
57 IDevice device = listener.waitForDevice(MAX_WAIT_DEVICE_TIME); in connectToDevice()
58 AndroidDebugBridge.removeDeviceChangeListener(listener); in connectToDevice()
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DBackgroundPickers.java42 private final OnBackgroundPickersChangedListener listener; field in BackgroundPickers
44 public BackgroundPickers(ViewGroup container, OnBackgroundPickersChangedListener listener) { in BackgroundPickers() argument
48 this.listener = listener; in BackgroundPickers()
135 if (listener != null) { in onClick()
136 listener.onBackgroundPickersChanged(BackgroundPickers.this); in onClick()
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DTextWatcherWrapper.java31 public TextWatcherWrapper(int id, OnTextChangedListener listener) { in TextWatcherWrapper() argument
33 mListener = listener; in TextWatcherWrapper()
/development/samples/devbytes/animation/SlidingFragments/src/com/example/android/slidingfragments/
DSlidingFragments.java108 AnimatorListener listener = new AnimatorListenerAdapter() { in switchFragments() local
119 slideBack (listener); in switchFragments()
136 public void slideBack(AnimatorListener listener) in slideBack() argument
156 s.addListener(listener); in slideBack()
167 public void slideForward(AnimatorListener listener) in slideForward() argument
DTextFragment.java60 public void setOnTextFragmentAnimationEnd(OnTextFragmentAnimationEndListener listener) in setOnTextFragmentAnimationEnd() argument
62 mListener = listener; in setOnTextFragmentAnimationEnd()
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DCompatActionBarNavHandler.java44 public CompatActionBarNavHandler(CompatActionBarNavListener listener) { in CompatActionBarNavHandler() argument
45 mNavListener = listener; in CompatActionBarNavHandler()
DHeadlinesFragment.java83 public void setOnHeadlineSelectedListener(OnHeadlineSelectedListener listener) { in setOnHeadlineSelectedListener() argument
84 mHeadlineSelectedListener = listener; in setOnHeadlineSelectedListener()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DAlbumArtCache.java80 public void fetch(final String artUrl, final FetchListener listener) { in fetch() argument
88 listener.onFetched(artUrl, bitmap[BIG_BITMAP_INDEX], bitmap[ICON_BITMAP_INDEX]); in fetch()
115 listener.onError(artUrl, new IllegalArgumentException("got null bitmaps")); in fetch()
117 listener.onFetched(artUrl, in fetch()
/development/samples/browseable/BatchStepSensor/
D_index.jd14 steps since a listener was first registered for this sensor.
15 … Both sensors only count steps while a listener is registered. This sample only covers the
16 basic case, where a listener is only registered while the app is running. Likewise,
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandingLayout.java76 public void setSizeChangedListener(OnSizeChangedListener listener) { in setSizeChangedListener() argument
77 mSizeChangedListener = listener; in setSizeChangedListener()
/development/samples/SipDemo/src/com/example/android/sip/
DIncomingCallReceiver.java40 SipAudioCall.Listener listener = new SipAudioCall.Listener() { in onReceive() local
53 incomingCall = wtActivity.manager.takeAudioCall(intent, listener); in onReceive()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DTracking.java169 for (Consumer<List<Task>> listener : mListeners) { in notifyListeners()
170 listener.accept(tasks); in notifyListeners()
174 public synchronized void addListener(Consumer<List<Task>> listener) { in addListener() argument
175 mListeners.add(listener); in addListener()
178 public synchronized void removeListener(Consumer<List<Task>> listener) { in removeListener() argument
179 mListeners.remove(listener); in removeListener()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DFixedAspectSurfaceView.java76 public void setGestureListener(Context context, GestureDetector.OnGestureListener listener) { in setGestureListener() argument
77 if (listener == null) { in setGestureListener()
80 mGestureDetector = new GestureDetector(context, listener); in setGestureListener()
DCameraOps.java153 final CameraCaptureSession.CaptureCallback listener, in setRepeatingRequest() argument
158 mCameraSession.setRepeatingRequest(request, listener, handler); in setRepeatingRequest()
171 final CameraCaptureSession.CaptureCallback listener, in setRepeatingBurst() argument
176 mCameraSession.setRepeatingBurst(requests, listener, handler); in setRepeatingBurst()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DStableArrayAdapter.java33 List<String> objects, View.OnTouchListener listener) { in StableArrayAdapter() argument
35 mTouchListener = listener; in StableArrayAdapter()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DStableArrayAdapter.java33 List<String> objects, View.OnTouchListener listener) { in StableArrayAdapter() argument
35 mTouchListener = listener; in StableArrayAdapter()
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/
DPlanetAdapter.java53 public PlanetAdapter(String[] myDataset, OnItemClickListener listener) { in PlanetAdapter() argument
55 mListener = listener; in PlanetAdapter()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageWorker.java76 public void loadImage(Object data, ImageView imageView, OnImageLoadedListener listener) { in loadImage() argument
90 if (listener != null) { in loadImage()
91 listener.onImageLoaded(true); in loadImage()
95 final BitmapWorkerTask task = new BitmapWorkerTask(data, imageView, listener); in loadImage()
268 public BitmapWorkerTask(Object data, ImageView imageView, OnImageLoadedListener listener) { in BitmapWorkerTask() argument
271 mOnImageLoadedListener = listener; in BitmapWorkerTask()
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DAppListFragment.java37 protected void onBindAction2(Button v, LauncherActivityInfo ai, OnClickListener listener) { in onBindAction2() argument
49 v.setOnClickListener(listener); in onBindAction2()

123