Searched refs:connectionStateCallback (Results 1 – 1 of 1) sorted by relevance
195 MonitorTelephonyCallback connectionStateCallback = new MonitorTelephonyCallback(); in execute() local197 listenToDataConnectionState(connectionStateCallback); in execute()243 stopListeningToDataConnectionState(connectionStateCallback); in execute()254 private void listenToDataConnectionState(MonitorTelephonyCallback connectionStateCallback) { in listenToDataConnectionState() argument257 telephonyManager.registerTelephonyCallback(r -> r.run(), connectionStateCallback); in listenToDataConnectionState()261 MonitorTelephonyCallback connectionStateCallback) { in stopListeningToDataConnectionState() argument264 telephonyManager.unregisterTelephonyCallback(connectionStateCallback); in stopListeningToDataConnectionState()