Home
last modified time | relevance | path

Searched refs:sharedLog (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketClient.java108 private final SharedLog sharedLog; field in MdnsSocketClient
113 SharedLog sharedLog, @NonNull MdnsFeatureFlags mdnsFeatureFlags) { in MdnsSocketClient() argument
114 this.sharedLog = sharedLog; in MdnsSocketClient()
123 this.interfaceProvider = new MulticastNetworkInterfaceProvider(context, sharedLog); in MdnsSocketClient()
135 sharedLog.w("Discovery is already in progress."); in startDiscovery()
147 multicastSocket = createMdnsSocket(MdnsConstants.MDNS_PORT, sharedLog); in startDiscovery()
151 unicastSocket = createMdnsSocket(0, sharedLog); in startDiscovery()
175 sharedLog.log("Stop discovery."); in stopDiscovery()
245 sharedLog.w("sendMdnsPacket() is called after discovery already stopped"); in sendMdnsPackets()
277 sharedLog.w("A socket thread already exists."); in createAndStartSendThread()
[all …]
DMulticastNetworkInterfaceProvider.java44 private final SharedLog sharedLog; field in MulticastNetworkInterfaceProvider
55 @NonNull SharedLog sharedLog) { in MulticastNetworkInterfaceProvider() argument
56 this.sharedLog = sharedLog; in MulticastNetworkInterfaceProvider()
59 context, this::onConnectivityChanged, sharedLog); in MulticastNetworkInterfaceProvider()
88 sharedLog.log("No network interface available for mDNS scanning."); in getMulticastNetworkInterfaces()
98 if (canScanOnInterface(interfaceWrapper, sharedLog)) { in updateMulticastNetworkInterfaces()
138 sharedLog.e("Failed to get network interfaces.", e); in getNetworkInterfaces()
141 sharedLog.e("Failed to call getNetworkInterfaces API", e); in getNetworkInterfaces()
154 @NonNull SharedLog sharedLog) { in canScanOnInterface() argument
166 sharedLog.e(String.format("Failed to check interface %s.", in canScanOnInterface()
DConnectivityMonitorWithConnectivityManager.java33 private final SharedLog sharedLog; field in ConnectivityMonitorWithConnectivityManager
45 SharedLog sharedLog) { in ConnectivityMonitorWithConnectivityManager() argument
47 this.sharedLog = sharedLog; in ConnectivityMonitorWithConnectivityManager()
55 sharedLog.log("network available."); in ConnectivityMonitorWithConnectivityManager()
62 sharedLog.log("network lost."); in ConnectivityMonitorWithConnectivityManager()
68 sharedLog.log("network unavailable."); in ConnectivityMonitorWithConnectivityManager()
86 sharedLog.log("Start watching connectivity changes"); in startWatchingConnectivityChanges()
102 sharedLog.log("Stop watching connectivity changes"); in stopWatchingConnectivityChanges()
DMdnsSocket.java48 private final SharedLog sharedLog; field in MdnsSocket
52 SharedLog sharedLog) in MdnsSocket() argument
54 this(multicastNetworkInterfaceProvider, new MulticastSocket(port), sharedLog); in MdnsSocket()
59 MulticastSocket multicastSocket, SharedLog sharedLog) throws IOException { in MdnsSocket() argument
62 this.sharedLog = sharedLog; in MdnsSocket()
130 sharedLog.e("Socket is closed"); in getInterfaceIndex()
136 sharedLog.e("Failed to retrieve interface index for socket.", e); in getInterfaceIndex()
DMdnsInterfaceAdvertiser.java188 @NonNull SharedLog sharedLog, @NonNull MdnsFeatureFlags mdnsFeatureFlags) { in makeReplySender() argument
190 sharedLog.forSubComponent( in makeReplySender()
199 @NonNull SharedLog sharedLog) { in makeMdnsAnnouncer() argument
201 sharedLog.forSubComponent( in makeMdnsAnnouncer()
209 @NonNull SharedLog sharedLog) { in makeMdnsProber() argument
210 return new MdnsProber(looper, replySender, cb, sharedLog.forSubComponent( in makeMdnsProber()
218 @NonNull String[] deviceHostName, @NonNull SharedLog sharedLog, in MdnsInterfaceAdvertiser() argument
221 new Dependencies(), deviceHostName, sharedLog, mdnsFeatureFlags); in MdnsInterfaceAdvertiser()
227 @NonNull String[] deviceHostName, @NonNull SharedLog sharedLog, in MdnsInterfaceAdvertiser() argument
234 mReplySender = deps.makeReplySender(sharedLog.getTag(), looper, socket, in MdnsInterfaceAdvertiser()
[all …]
DMdnsServiceTypeClient.java73 @NonNull private final SharedLog sharedLog; field in MdnsServiceTypeClient
186 calculateTimeToNextTask(args, now, sharedLog)); in handleMessage()
190 sharedLog.e("Unrecognized event " + msg.what); in handleMessage()
261 @NonNull SharedLog sharedLog, in MdnsServiceTypeClient() argument
265 this(serviceType, socketClient, executor, new Clock(), socketKey, sharedLog, looper, in MdnsServiceTypeClient()
276 @NonNull SharedLog sharedLog, in MdnsServiceTypeClient() argument
288 this.sharedLog = sharedLog; in MdnsServiceTypeClient()
420 calculateTimeToNextTask(args, now, sharedLog)); in startSendAndReceive()
452 sharedLog.log("Remove EVENT_START_QUERYTASK" in removeScheduledTask()
544 calculateTimeToNextTask(args, now, sharedLog)); in processResponse()
[all …]
DMdnsDiscoveryManager.java53 @NonNull private final SharedLog sharedLog; field in MdnsDiscoveryManager
126 @NonNull MdnsSocketClientBase socketClient, @NonNull SharedLog sharedLog, in MdnsDiscoveryManager() argument
130 this.sharedLog = sharedLog; in MdnsDiscoveryManager()
225 sharedLog.i("Registering listener for serviceType: " + serviceType); in registerListener()
239 sharedLog.e("Failed to start discover.", e); in handleRegisterListener()
263 sharedLog.i("Skipping " + socketKey + " as ifIndex " in handleRegisterListener()
304 sharedLog.i("Unregistering listener for serviceType:" + serviceType); in unregisterListener()
330 sharedLog.i("All service type listeners unregistered; stopping discovery"); in handleUnregisterListener()
374 sharedLog.log("createServiceTypeClient for type:" + serviceType + " " + socketKey); in createServiceTypeClient()
384 sharedLog.forSubComponent(tag), looper, serviceCache, mdnsFeatureFlags); in createServiceTypeClient()
DEnqueueMdnsQueryCallable.java80 private final SharedLog sharedLog; field in EnqueueMdnsQueryCallable
100 @NonNull SharedLog sharedLog, in EnqueueMdnsQueryCallable() argument
114 this.sharedLog = sharedLog; in EnqueueMdnsQueryCallable()
224 sharedLog.e(String.format("Failed to create mDNS packet for subtype: %s.", in call()
263 sharedLog.e("Can't send packet to IPv4", e); in sendPacketToIpv4AndIpv6()
269 sharedLog.e("Can't send packet to IPv6", e); in sendPacketToIpv4AndIpv6()
DMdnsAdvertiser.java108 @NonNull SharedLog sharedLog, in makeAdvertiser() argument
112 packetCreationBuffer, cb, deviceHostName, sharedLog, mdnsFeatureFlags); in makeAdvertiser()
812 @NonNull AdvertiserCallback cb, @NonNull SharedLog sharedLog, in MdnsAdvertiser() argument
814 this(looper, socketProvider, cb, new Dependencies(), sharedLog, mDnsFeatureFlags, in MdnsAdvertiser()
821 @NonNull SharedLog sharedLog, @NonNull MdnsFeatureFlags mDnsFeatureFlags, in MdnsAdvertiser() argument
828 mSharedLog = sharedLog; in MdnsAdvertiser()
832 res.get().getStringArray(R.array.config_nsdOffloadServicesPriority), sharedLog); in MdnsAdvertiser()
836 @NonNull String[] resValues, SharedLog sharedLog) { in parseOffloadPriorityList() argument
841 sharedLog.wtf("Invalid config_nsdOffloadServicesPriority ignored: " + entry); in parseOffloadPriorityList()
849 sharedLog.wtf("Invalid priority in config_nsdOffloadServicesPriority: " + entry); in parseOffloadPriorityList()
DMdnsSocketProvider.java161 @NonNull SharedLog sharedLog, in MdnsSocketProvider() argument
163 this(context, looper, new Dependencies(), sharedLog, socketRequestMonitor); in MdnsSocketProvider()
167 @NonNull Dependencies deps, @NonNull SharedLog sharedLog, in MdnsSocketProvider() argument
173 mSharedLog = sharedLog; in MdnsSocketProvider()
237 @NonNull byte[] packetReadBuffer, @NonNull SharedLog sharedLog) throws IOException { in createMdnsInterfaceSocket() argument
239 sharedLog); in createMdnsInterfaceSocket()
244 @NonNull SharedLog sharedLog) { in getNetworkInterfaceIndexByName() argument
249 sharedLog.e("Error querying interface", e); in getNetworkInterfaceIndexByName()
253 sharedLog.e("Interface not found: " + ifaceName); in getNetworkInterfaceIndexByName()
DMdnsReplySender.java106 @NonNull byte[] packetCreationBuffer, @NonNull SharedLog sharedLog, in MdnsReplySender() argument
108 this(looper, socket, packetCreationBuffer, sharedLog, enableDebugLog, new Dependencies(), in MdnsReplySender()
114 @NonNull byte[] packetCreationBuffer, @NonNull SharedLog sharedLog, in MdnsReplySender() argument
120 mSharedLog = sharedLog; in MdnsReplySender()
DMdnsAnnouncer.java112 @NonNull SharedLog sharedLog) { in MdnsAnnouncer() argument
113 super(looper, replySender, cb, sharedLog, MdnsAdvertiser.DBG); in MdnsAnnouncer()
DMdnsProber.java43 @NonNull PacketRepeaterCallback<ProbingInfo> cb, @NonNull SharedLog sharedLog) { in MdnsProber() argument
44 super(looper, replySender, cb, sharedLog, MdnsAdvertiser.DBG); in MdnsProber()
DMdnsPacketRepeater.java148 @Nullable PacketRepeaterCallback<T> cb, @NonNull SharedLog sharedLog, in MdnsPacketRepeater() argument
153 mSharedLog = sharedLog; in MdnsPacketRepeater()
DMdnsInterfaceSocket.java66 @NonNull Looper looper, @NonNull byte[] packetReadBuffer, @NonNull SharedLog sharedLog) in MdnsInterfaceSocket() argument
89 mSharedLog = sharedLog; in MdnsInterfaceSocket()
DMdnsMultinetworkSocketClient.java63 @NonNull MdnsSocketProvider provider, @NonNull SharedLog sharedLog, in MdnsMultinetworkSocketClient() argument
67 mSharedLog = sharedLog; in MdnsMultinetworkSocketClient()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsProberTest.kt59 private val sharedLog = mock(SharedLog::class.java) in <lambda>() constant in com.android.server.connectivity.mdns.MdnsProberTest
89 sharedLog: SharedLog in <lambda>()
90 ) : MdnsProber(looper, replySender, cb, sharedLog) { in <lambda>()
124 thread.looper, socket, buffer, sharedLog, true /* enableDebugLog */, flags) in <lambda>()
125 val prober = TestProber(thread.looper, replySender, cb, sharedLog) in <lambda>()
149 thread.looper, socket, buffer, sharedLog, true /* enableDebugLog */, flags) in <lambda>()
150 val prober = TestProber(thread.looper, replySender, cb, sharedLog) in <lambda>()
188 thread.looper, socket, buffer, sharedLog, true /* enableDebugLog */, flags) in <lambda>()
189 val prober = TestProber(thread.looper, replySender, cb, sharedLog) in <lambda>()
DMdnsSocketTests.java54 @Mock private SharedLog sharedLog; field in MdnsSocketTests
81 sharedLog); in mdnsSocket_basicFunctionality()
108 sharedLog); in ipv6OnlyNetwork_ipv6Enabled()
133 sharedLog); in ipv6OnlyNetwork_ipv6Toggle()
DMdnsSocketClientTests.java87 @Mock private SharedLog sharedLog; field in MdnsSocketClientTests
102 mdnsClient = new MdnsSocketClient(mContext, mockMulticastLock, sharedLog, flags) { in setup()
104 MdnsSocket createMdnsSocket(int port, SharedLog sharedLog) throws IOException { in setup()
537 mdnsClient = new MdnsSocketClient(mContext, mockMulticastLock, sharedLog, flags) { in startDiscovery_andPropagateInterfaceIndex_includesInterfaceIndex()
539 MdnsSocket createMdnsSocket(int port, SharedLog sharedLog) { in startDiscovery_andPropagateInterfaceIndex_includesInterfaceIndex()
560 mdnsClient = new MdnsSocketClient(mContext, mockMulticastLock, sharedLog, flags) { in startDiscovery_andDoNotPropagateInterfaceIndex_doesNotIncludeInterfaceIndex()
562 MdnsSocket createMdnsSocket(int port, SharedLog sharedLog) { in startDiscovery_andDoNotPropagateInterfaceIndex_doesNotIncludeInterfaceIndex()
DMdnsAnnouncerTest.kt56 private val sharedLog = mock(SharedLog::class.java) in <lambda>() constant
87 thread.looper, socket, buffer, sharedLog, true /* enableDebugLog */, flags) in <lambda>()
91 val announcer = MdnsAnnouncer(thread.looper, replySender, cb, sharedLog) in <lambda>()
DConnectivityMonitorWithConnectivityManagerTests.java53 @Mock private SharedLog sharedLog; field in ConnectivityMonitorWithConnectivityManagerTests
62 monitor = new ConnectivityMonitorWithConnectivityManager(mContext, mockListener, sharedLog); in setUp()
DMulticastNetworkInterfaceProviderTests.java69 @Mock private SharedLog sharedLog; field in MulticastNetworkInterfaceProviderTests
162 new MulticastNetworkInterfaceProvider(context, sharedLog) { in setUp()
DMdnsReplySenderTest.kt113 private val sharedLog = SharedLog(MdnsReplySenderTest::class.simpleName) constant in com.android.server.connectivity.mdns.MdnsReplySenderTest
150 MdnsReplySender(thread.looper, socket, buffer, sharedLog, false /* enableDebugLog */, in createSender()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DSkDestroyListenerTest.kt37 @Mock lateinit var sharedLog: SharedLog variable in com.android.server.net.SkDestroyListenerTest
54 doReturn(sharedLog).`when`(sharedLog).forSubComponent(any()) in testDump()
57 val skDestroylistener = SkDestroyListener(null /* cookieTagMap */, handler, sharedLog) in testDump()
61 verify(sharedLog).reverseDump(pw) in testDump()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHalAidlImpl.java240 Handler h, OffloadHalCallback cb, SharedLog sharedLog) { in TetheringOffloadCallback() argument
243 log = sharedLog; in TetheringOffloadCallback()

12