Searched refs:CallbackEntry (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkProviderTest.kt | 25 import android.net.NetworkProviderTest.TestNetworkCallback.CallbackEntry.OnUnavailable in <lambda>() 26 import android.net.NetworkProviderTest.TestNetworkProvider.CallbackEntry.OnNetworkRequested in <lambda>() 27 import android.net.NetworkProviderTest.TestNetworkProvider.CallbackEntry.OnNetworkRequestWithdrawn in <lambda>() 66 private val seenEvents = ArrayTrackRecord<CallbackEntry>().newReadHead() in <lambda>() 68 sealed class CallbackEntry { in <lambda>() class 73 ) : CallbackEntry() in <lambda>() 74 data class OnNetworkRequestWithdrawn(val request: NetworkRequest) : CallbackEntry() in <lambda>() 85 inline fun <reified T : CallbackEntry> expectCallback( in <lambda>() 156 private val seenEvents = ArrayTrackRecord<CallbackEntry>().newReadHead() in <lambda>() 157 sealed class CallbackEntry { in <lambda>() class in TestNetworkCallback [all …]
|
/frameworks/base/core/java/android/app/ |
D | VrManager.java | 30 private static class CallbackEntry { class in VrManager 48 CallbackEntry(VrStateCallback callback, Executor executor) { in CallbackEntry() method in VrManager.CallbackEntry 56 private Map<VrStateCallback, CallbackEntry> mCallbackMap = new ArrayMap<>(); 80 CallbackEntry entry = new CallbackEntry(callback, executor); in registerVrStateCallback() 104 CallbackEntry entry = mCallbackMap.remove(callback); in unregisterVrStateCallback()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | FuseAppLoop.java | 59 private final SparseArray<CallbackEntry> mCallbackMap = new SparseArray<>(); 119 mCallbackMap.put(id, new CallbackEntry( in registerCallback() 150 final CallbackEntry entry = args.entry; 266 final CallbackEntry entry = getCallbackEntryOrThrowLocked(inode); 293 private CallbackEntry getCallbackEntryOrThrowLocked(long inode) throws ErrnoException { 294 final CallbackEntry entry = mCallbackMap.get(checkInode(inode)); 333 private static class CallbackEntry { 338 CallbackEntry(ProxyFileDescriptorCallback callback, Handler handler) { 392 CallbackEntry entry;
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 246 import com.android.testutils.RecorderCallback.CallbackEntry; 1452 callback.expectCallback(CallbackEntry.AVAILABLE, mCellNetworkAgent); in testNetworkFeature() 1745 public <T extends CallbackEntry> T expectCallback(final KClass<T> type, final HasNetwork n, in expectCallback() 1748 if (callback instanceof CallbackEntry.Losing) { in expectCallback() 1750 final CallbackEntry.Losing losing = (CallbackEntry.Losing) callback; in expectCallback() 1811 genericNetworkCallback.expectCallback(CallbackEntry.LOST, mWiFiNetworkAgent); in testStateChangeNetworkCallbacks() 1812 wifiNetworkCallback.expectCallback(CallbackEntry.LOST, mWiFiNetworkAgent); in testStateChangeNetworkCallbacks() 1819 genericNetworkCallback.expectCallback(CallbackEntry.LOST, mCellNetworkAgent); in testStateChangeNetworkCallbacks() 1820 cellNetworkCallback.expectCallback(CallbackEntry.LOST, mCellNetworkAgent); in testStateChangeNetworkCallbacks() 1841 genericNetworkCallback.expectCallback(CallbackEntry.LOSING, mCellNetworkAgent); in testStateChangeNetworkCallbacks() [all …]
|