/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/ |
D | Chat.kt | 31 fun addListener(listener: ChatThreadListener) { in <lambda>() 32 listeners.add(listener) in <lambda>() 35 fun removeListener(listener: ChatThreadListener) { in <lambda>() 36 listeners.remove(listener) in <lambda>() 42 listeners.forEach { listener -> listener(_messages) } in <lambda>() method
|
D | ChatRepository.kt | 85 private val listener = { messages: List<Message> -> in findMessages() constant 91 chat.addListener(listener) in findMessages() 95 chat.removeListener(listener) in findMessages()
|
/developers/samples/android/common/src/java/com/example/android/common/midi/ |
D | MidiPortConnector.java | 113 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 …]
|
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/ |
D | MidiPortConnector.java | 113 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 …]
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/ |
D | MidiPortConnector.java | 113 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 …]
|
/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/util/ |
D | SystemUiHider.java | 160 public void setOnVisibilityChangeListener(OnVisibilityChangeListener listener) { in setOnVisibilityChangeListener() argument 161 if (listener == null) { in setOnVisibilityChangeListener() 162 listener = sDummyListener; in setOnVisibilityChangeListener() 165 mOnVisibilityChangeListener = listener; in setOnVisibilityChangeListener()
|
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
D | BackgroundPickers.java | 42 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()
|
/developers/samples/android/deprecated/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
D | BackgroundPickers.java | 42 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()
|
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/data/ |
D | TestChatRepository.kt | 48 private val listener = { messages: List<Message> -> in <lambda>() constant 54 chat.addListener(listener) in <lambda>() 58 chat.removeListener(listener) in <lambda>()
|
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ |
D | TextWatcherWrapper.java | 31 public TextWatcherWrapper(int id, OnTextChangedListener listener) { in TextWatcherWrapper() argument 33 mListener = listener; in TextWatcherWrapper()
|
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ |
D | TextWatcherWrapper.java | 31 public TextWatcherWrapper(int id, OnTextChangedListener listener) { in TextWatcherWrapper() argument 33 mListener = listener; in TextWatcherWrapper()
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | FixedAspectSurfaceView.java | 74 public void setGestureListener(Context context, GestureDetector.OnGestureListener listener) { in setGestureListener() argument 75 if (listener == null) { in setGestureListener() 78 mGestureDetector = new GestureDetector(context, listener); in setGestureListener()
|
D | CameraOps.java | 155 final CameraCaptureSession.CaptureCallback listener, in setRepeatingRequest() argument 160 mCameraSession.setRepeatingRequest(request, listener, handler); in setRepeatingRequest() 173 final CameraCaptureSession.CaptureCallback listener, in setRepeatingBurst() argument 178 mCameraSession.setRepeatingBurst(requests, listener, handler); in setRepeatingBurst()
|
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | FixedAspectSurfaceView.java | 74 public void setGestureListener(Context context, GestureDetector.OnGestureListener listener) { in setGestureListener() argument 75 if (listener == null) { in setGestureListener() 78 mGestureDetector = new GestureDetector(context, listener); in setGestureListener()
|
D | CameraOps.java | 155 final CameraCaptureSession.CaptureCallback listener, in setRepeatingRequest() argument 160 mCameraSession.setRepeatingRequest(request, listener, handler); in setRepeatingRequest() 173 final CameraCaptureSession.CaptureCallback listener, in setRepeatingBurst() argument 178 mCameraSession.setRepeatingBurst(requests, listener, handler); in setRepeatingBurst()
|
/developers/samples/android/ui/views/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.kt | 30 private val listener: OnItemClickListener in <lambda>() constant in com.example.android.navigationdrawer.PlanetAdapter 53 textView.setOnClickListener { view -> listener.onClick(view, position) } in <lambda>()
|
/developers/build/prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.kt | 30 private val listener: OnItemClickListener in <lambda>() constant in com.example.android.navigationdrawer.PlanetAdapter 53 textView.setOnClickListener { view -> listener.onClick(view, position) } in <lambda>()
|
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.java | 53 public PlanetAdapter(String[] myDataset, OnItemClickListener listener) { in PlanetAdapter() argument 55 mListener = listener; in PlanetAdapter()
|
/developers/samples/android/ui/views/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
D | PlanetAdapter.java | 53 public PlanetAdapter(String[] myDataset, OnItemClickListener listener) { in PlanetAdapter() argument 55 mListener = listener; in PlanetAdapter()
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | ImageWorker.java | 76 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()
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | ImageWorker.java | 76 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()
|
/developers/samples/android/common/src/java/com/example/android/common/actionbarcompat/ |
D | MultiSelectionUtil.java | 51 final AppCompatActivity activity, final MultiChoiceModeListener listener) { in attachMultiSelectionController() argument 52 return new Controller(listView, activity, listener); in attachMultiSelectionController() 87 MultiChoiceModeListener listener) { in Controller() argument 90 mListener = listener; in Controller()
|
/developers/build/prebuilts/gradle/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/ |
D | FloatingActionButton.java | 120 public void setOnCheckedChangeListener(OnCheckedChangeListener listener) { in setOnCheckedChangeListener() argument 121 mOnCheckedChangeListener = listener; in setOnCheckedChangeListener()
|
/developers/samples/android/ui/views/FloatingActionButton/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/ |
D | FloatingActionButton.java | 120 public void setOnCheckedChangeListener(OnCheckedChangeListener listener) { in setOnCheckedChangeListener() argument 121 mOnCheckedChangeListener = listener; in setOnCheckedChangeListener()
|
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
D | SwipeRefreshListFragment.java | 69 public void setOnRefreshListener(SwipeRefreshLayout.OnRefreshListener listener) { in setOnRefreshListener() argument 70 mSwipeRefreshLayout.setOnRefreshListener(listener); in setOnRefreshListener()
|