Home
last modified time | relevance | path

Searched refs:Callback (Results 1 – 25 of 541) sorted by relevance

12345678910>>...22

/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java47 public abstract static class Callback { class in RemoteConference
137 private final Set<CallbackRecord<Callback>> mCallbackRecords = new CopyOnWriteArraySet<>();
167 for (CallbackRecord<Callback> record : mCallbackRecords) { in setDestroyed()
169 final Callback callback = record.getCallback(); in setDestroyed()
192 for (CallbackRecord<Callback> record : mCallbackRecords) { in setState()
194 final Callback callback = record.getCallback(); in setState()
210 for (CallbackRecord<Callback> record : mCallbackRecords) { in addConnection()
212 final Callback callback = record.getCallback(); in addConnection()
228 for (CallbackRecord<Callback> record : mCallbackRecords) { in removeConnection()
230 final Callback callback = record.getCallback(); in removeConnection()
[all …]
DRemoteConnection.java56 public static abstract class Callback { class in RemoteConnection
289 public abstract static class Callback { class in RemoteConnection.VideoProvider
387 for (Callback l : mCallbacks) {
395 for (Callback l : mCallbacks) {
406 for (Callback l : mCallbacks) {
413 for (Callback l : mCallbacks) {
420 for (Callback l : mCallbacks) {
428 for (Callback l : mCallbacks) {
435 for (Callback l : mCallbacks) {
460 private final Set<Callback> mCallbacks = Collections.newSetFromMap(
[all …]
DCall.java1129 public static abstract class Callback { class in Call
1519 public static abstract class Listener extends Callback { }
1527 private final List<CallbackRecord<Callback>> mCallbackRecords = new CopyOnWriteArrayList<>();
2163 public void registerCallback(Callback callback) { in registerCallback()
2173 public void registerCallback(Callback callback, Handler handler) { in registerCallback()
2177 mCallbackRecords.add(new CallbackRecord<Callback>(callback, handler)); in registerCallback()
2186 public void unregisterCallback(Callback callback) { in unregisterCallback()
2189 for (CallbackRecord<Callback> record : mCallbackRecords) { in unregisterCallback()
2465 for (CallbackRecord<Callback> record : mCallbackRecords) { in internalOnRttUpgradeRequest()
2467 final Callback callback = record.getCallback(); in internalOnRttUpgradeRequest()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.h35 class Callback {
37 Callback() = default;
38 virtual ~Callback();
42 Callback(Callback const&) = delete;
43 Callback& operator=(Callback const&) = delete;
57 virtual status_t addEventListener(const char* name, nsecs_t phase, Callback* callback,
59 virtual status_t removeEventListener(Callback* callback, nsecs_t* outLastCallback) = 0;
60 virtual status_t changePhaseOffset(Callback* callback, nsecs_t phase) = 0;
150 status_t addEventListener(const char* name, nsecs_t phase, Callback* callback,
159 status_t removeEventListener(Callback* callback, nsecs_t* outLastCallbackTime) override;
[all …]
DDispSyncSource.cpp48 static_cast<DispSync::Callback*>(this), in setVSyncEnabled()
55 status_t err = mDispSync->removeEventListener(static_cast<DispSync::Callback*>(this), in setVSyncEnabled()
65 void DispSyncSource::setCallback(VSyncSource::Callback* callback) { in setCallback()
89 mDispSync->changePhaseOffset(static_cast<DispSync::Callback*>(this), mPhaseOffset); in setPhaseOffset()
96 VSyncSource::Callback* callback; in onDispSyncEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCastControllerImplTest.java20 import com.android.systemui.statusbar.policy.CastController.Callback;
59 Callback mockCallback = mock(Callback.class); in testAddCallback()
67 Callback mockCallback = mock(Callback.class); in testRemoveCallback()
78 Callback mockCallback = mock(Callback.class); in testRemoveCallbackFromEmptyList()
90 Callback[] callbackList = new Callback[callbackCount]; in testAddCallbackRemoveCallback_concurrently()
94 callbackList[cbIndex] = mock(Callback.class); in testAddCallbackRemoveCallback_concurrently()
97 final Callback mCallback = callbackList[i / 2]; in testAddCallbackRemoveCallback_concurrently()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java148 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testUpdateCpuTimeLocked()
153 any(KernelCpuUidFreqTimeReader.Callback.class)); in testUpdateCpuTimeLocked()
155 any(KernelCpuUidActiveTimeReader.Callback.class)); in testUpdateCpuTimeLocked()
157 any(KernelCpuUidClusterTimeReader.Callback.class)); in testUpdateCpuTimeLocked()
261 final KernelCpuUidUserSysTimeReader.Callback<long[]> callback = in testReadKernelUidCpuTimesLocked()
262 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked()
268 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testReadKernelUidCpuTimesLocked()
296 final KernelCpuUidUserSysTimeReader.Callback<long[]> callback = in testReadKernelUidCpuTimesLocked()
297 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked()
303 any(KernelCpuUidUserSysTimeReader.Callback.class)); in testReadKernelUidCpuTimesLocked()
[all …]
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java51 private final Map<Callback, CallbackRecord> mCallbacks;
55 mCallbacks = new ArrayMap<Callback, CallbackRecord>(); in MediaProjection()
74 public void registerCallback(Callback callback, Handler handler) { in registerCallback()
90 public void unregisterCallback(Callback callback) { in unregisterCallback()
102 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay()
143 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay()
170 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay()
197 public static abstract class Callback { class in MediaProjection
218 private final Callback mCallback;
221 public CallbackRecord(Callback callback, Handler handler) { in CallbackRecord()
DMediaProjectionManager.java55 private Map<Callback, CallbackDelegate> mCallbacks;
152 public void addCallback(@NonNull Callback callback, @Nullable Handler handler) { in addCallback()
169 public void removeCallback(@NonNull Callback callback) { in removeCallback()
184 public static abstract class Callback { class in MediaProjectionManager
191 private Callback mCallback;
194 public CallbackDelegate(Callback callback, Handler handler) { in CallbackDelegate()
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java58 /*package*/ ArrayMap<IBinder, Callback> mCallbacks
59 = new ArrayMap<IBinder, Callback>();
65 private final class Callback implements IBinder.DeathRecipient { class in RemoteCallbackList
69 Callback(E callback, Object cookie) { in Callback() method in RemoteCallbackList.Callback
125 Callback cb = new Callback(callback, cookie); in register()
155 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister()
175 Callback cb = mCallbacks.valueAt(cbi); in kill()
283 return ((Callback)mActiveBroadcast[index]).mCallback; in getBroadcastItem()
293 return ((Callback)mActiveBroadcast[index]).mCookie; in getBroadcastCookie()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DVisualStabilityManager.java45 private final ArrayList<Callback> mReorderingAllowedCallbacks = new ArrayList<>();
46 private final ArraySet<Callback> mPersistentReorderingCallbacks = new ArraySet<>();
47 private final ArrayList<Callback> mGroupChangesAllowedCallbacks = new ArrayList<>();
48 private final ArraySet<Callback> mPersistentGroupCallbacks = new ArraySet<>();
95 public void addReorderingAllowedCallback(Callback callback, boolean persistent) { in addReorderingAllowedCallback()
112 public void addGroupChangesAllowedCallback(Callback callback, boolean persistent) { in addGroupChangesAllowedCallback()
165 private void notifyChangeAllowed(ArrayList<Callback> callbacks, in notifyChangeAllowed()
166 ArraySet<Callback> persistentCallbacks) { in notifyChangeAllowed()
168 Callback callback = callbacks.get(i); in notifyChangeAllowed()
274 public interface Callback { interface in VisualStabilityManager
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DVolumeDialog.java17 import com.android.systemui.plugins.VolumeDialog.Callback;
26 @DependsOn(target = Callback.class)
31 void init(int windowType, Callback callback); in init()
35 public interface Callback { interface
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeKeyguardStateController.java25 private final BaseLeakChecker<Callback> mCallbackController;
28 mCallbackController = new BaseLeakChecker<Callback>(test, "keyguard"); in FakeKeyguardStateController()
32 public void addCallback(Callback callback) { in addCallback()
37 public void removeCallback(Callback callback) { in removeCallback()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanScanner.java49 public abstract static class Callback { class in LowpanScanner
60 private Callback mCallback = null;
72 public synchronized void setCallback(@Nullable Callback cb, @Nullable Handler handler) { in setCallback()
78 public void setCallback(@Nullable Callback cb) { in setCallback()
177 Callback callback; in startNetScan()
199 Callback callback; in startNetScan()
259 Callback callback = mCallback; in startEnergyScan()
285 Callback callback = mCallback; in startEnergyScan()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthBiometricViewTest.java54 @Mock private AuthBiometricView.Callback mCallback;
81 verify(mCallback).onAction(AuthBiometricView.Callback.ACTION_AUTHENTICATED); in testOnAuthenticationSucceeded_noConfirmationRequired_sendsActionAuthenticated()
112 verify(mCallback).onAction(AuthBiometricView.Callback.ACTION_AUTHENTICATED); in testPositiveButton_sendsActionAuthenticated()
130 verify(mCallback).onAction(AuthBiometricView.Callback.ACTION_BUTTON_NEGATIVE); in testNegativeButton_beforeAuthentication_sendsActionButtonNegative()
148 verify(mCallback).onAction(AuthBiometricView.Callback.ACTION_USER_CANCELED); in testNegativeButton_whenPendingConfirmation_sendsActionUserCanceled()
164 verify(mCallback).onAction(AuthBiometricView.Callback.ACTION_BUTTON_TRY_AGAIN); in testTryAgainButton_sendsActionTryAgain()
175 verify(mCallback).onAction(AuthBiometricView.Callback.ACTION_ERROR); in testError_sendsActionError()
186 verify(mCallback).onAction(eq(AuthBiometricView.Callback.ACTION_USER_CANCELED)); in testBackgroundClicked_sendsActionUserCanceled()
197 verify(mCallback, never()).onAction(eq(AuthBiometricView.Callback.ACTION_USER_CANCELED)); in testBackgroundClicked_afterAuthenticated_neverSendsUserCanceled()
208 verify(mCallback, never()).onAction(eq(AuthBiometricView.Callback.ACTION_USER_CANCELED)); in testBackgroundClicked_whenSmallDialog_neverSendsUserCanceled()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java34 public final ArrayList<SurfaceHolder.Callback> mCallbacks
35 = new ArrayList<SurfaceHolder.Callback>();
36 SurfaceHolder.Callback[] mGottenCallbacks;
74 public void addCallback(Callback callback) { in addCallback()
84 public void removeCallback(Callback callback) { in removeCallback()
90 public SurfaceHolder.Callback[] getCallbacks() { in getCallbacks()
99 mGottenCallbacks = new SurfaceHolder.Callback[N]; in getCallbacks()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockDispSync.h46 status_t addEventListener(const char* name, nsecs_t phase, Callback* callback,
48 status_t removeEventListener(Callback* callback, nsecs_t* outLastCallback) override;
49 status_t changePhaseOffset(Callback* callback, nsecs_t phase) override;
57 Callback* callback = nullptr;
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistRecognitionService.java28 protected void onStartListening(Intent recognizerIntent, Callback listener) { in onStartListening()
32 protected void onCancel(Callback listener) { in onCancel()
36 protected void onStopListening(Callback listener) { in onStopListening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileController.java17 import com.android.systemui.statusbar.phone.ManagedProfileController.Callback;
20 public interface ManagedProfileController extends CallbackController<Callback> {
28 public interface Callback { interface
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsController.java34 interface Callback { interface
47 void addCallback(int[] opsCodes, Callback cb); in addCallback()
58 void removeCallback(int[] opsCodes, Callback cb); in removeCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotController.java20 import com.android.systemui.statusbar.policy.HotspotController.Callback;
22 public interface HotspotController extends CallbackController<Callback>, Dumpable {
31 interface Callback { interface
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DISoundTriggerHw2.java68 SoundTriggerHw2Compat.Callback callback, int cookie); in loadSoundModel()
77 SoundTriggerHw2Compat.Callback callback, int cookie); in loadPhraseSoundModel()
101 SoundTriggerHw2Compat.Callback callback, int cookie); in startRecognition()
141 interface Callback { interface
/frameworks/base/core/java/android/view/
DSurfaceHolder.java72 public interface Callback { interface
113 public interface Callback2 extends Callback {
159 public void addCallback(Callback callback); in addCallback()
166 public void removeCallback(Callback callback); in removeCallback()
/frameworks/av/media/libaudiohal/impl/
DVersionUtils.h34 template <class T, class Callback>
36 hidl_vec<hidl_string> keys, Callback callback) { in getParameters()
46 template <class T, class Callback>
48 hidl_vec<hidl_string> keys, Callback callback) {
/frameworks/layoutlib/bridge/src/android/view/
DWindowCallback.java20 import android.view.ActionMode.Callback;
29 public class WindowCallback implements Window.Callback {
126 public ActionMode onWindowStartingActionMode(Callback callback) { in onWindowStartingActionMode()
131 public ActionMode onWindowStartingActionMode(Callback callback, int type) { in onWindowStartingActionMode()

12345678910>>...22