Home
last modified time | relevance | path

Searched refs:sCallbacks (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/print/mockservice/
DMockPrintService.java23 private static PrintServiceCallbacks sCallbacks; field in MockPrintService
27 sCallbacks = callbacks; in setCallbacks()
34 if (sCallbacks != null) { in getCallbacks()
35 sCallbacks.setService(this); in getCallbacks()
37 return sCallbacks; in getCallbacks()
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/mockservice/
DMockPrintService.java23 private static PrintServiceCallbacks sCallbacks; field in MockPrintService
27 sCallbacks = callbacks; in setCallbacks()
34 if (sCallbacks != null) { in getCallbacks()
35 sCallbacks.setService(this); in getCallbacks()
37 return sCallbacks; in getCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDockedStackExistsListener.java35 private static ArrayList<WeakReference<Consumer<Boolean>>> sCallbacks = new ArrayList<>(); field in DockedStackExistsListener
78 synchronized (sCallbacks) { in onDockedStackExistsChanged()
79 sCallbacks.removeIf(wf -> { in onDockedStackExistsChanged()
89 synchronized (sCallbacks) { in register()
90 sCallbacks.add(new WeakReference<>(callback)); in register()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
DGuidedStepAttributesTestFragment.java33 static HashMap<Long, Callback> sCallbacks = new HashMap(); field in GuidedStepAttributesTestFragment
57 Callback callback = sCallbacks.get(action.getId()); in onGuidedActionClicked()
81 Callback callback = sCallbacks.get(action.getId()); in onGuidedActionEditedAndProceed()
91 sCallbacks.put(id, callback); in setActionClickCallback()
97 sCallbacks.clear(); in clear()
/frameworks/layoutlib/bridge/src/android/os/
DHandler_Delegate.java37 IHandlerCallback callback = sCallbacks.get(); in sendMessageAtTime()
50 private final static ThreadLocal<IHandlerCallback> sCallbacks = field in Handler_Delegate
54 sCallbacks.set(callback); in setCallback()
/frameworks/base/core/java/android/net/
DConnectivityManager.java2844 synchronized (sCallbacks) { in handleMessage()
2845 callback = sCallbacks.get(request); in handleMessage()
2903 synchronized (sCallbacks) { in getDefaultHandler()
2911 private static final HashMap<NetworkRequest, NetworkCallback> sCallbacks = new HashMap<>(); field in ConnectivityManager
2923 synchronized(sCallbacks) { in sendRequestForNetwork()
2939 sCallbacks.put(request, callback); in sendRequestForNetwork()
3370 synchronized (sCallbacks) { in unregisterNetworkCallback()
3375 for (Map.Entry<NetworkRequest, NetworkCallback> e : sCallbacks.entrySet()) { in unregisterNetworkCallback()
3388 sCallbacks.remove(r); in unregisterNetworkCallback()