Loading location/java/com/android/internal/location/GpsNetInitiatedHandler.java +7 −9 Original line number Original line Diff line number Diff line Loading @@ -16,8 +16,6 @@ package com.android.internal.location; package com.android.internal.location; import java.io.UnsupportedEncodingException; import android.app.Notification; import android.app.Notification; import android.app.NotificationManager; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.PendingIntent; Loading @@ -25,21 +23,21 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Context; import android.content.Intent; import android.content.Intent; import android.content.IntentFilter; import android.content.IntentFilter; import android.location.LocationManager; import android.location.INetInitiatedListener; import android.location.INetInitiatedListener; import android.telephony.TelephonyManager; import android.location.LocationManager; import android.telephony.PhoneNumberUtils; import android.telephony.PhoneStateListener; import android.os.Bundle; import android.os.Bundle; import android.os.RemoteException; import android.os.RemoteException; import android.os.UserHandle; import android.os.SystemProperties; import android.os.SystemProperties; import android.os.UserHandle; import android.telephony.PhoneNumberUtils; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.util.Log; import android.util.Log; import com.android.internal.notification.SystemNotificationChannels; import com.android.internal.R; import com.android.internal.R; import com.android.internal.notification.SystemNotificationChannels; import com.android.internal.telephony.GsmAlphabet; import com.android.internal.telephony.GsmAlphabet; import com.android.internal.telephony.TelephonyProperties; import com.android.internal.telephony.TelephonyProperties; import java.io.UnsupportedEncodingException; /** /** * A GPS Network-initiated Handler class used by LocationManager. * A GPS Network-initiated Handler class used by LocationManager. Loading services/core/java/com/android/server/location/GnssLocationProvider.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -729,12 +729,11 @@ public class GnssLocationProvider implements LocationProviderInterface { // while IO initialization and registration is delegated to our internal handler // while IO initialization and registration is delegated to our internal handler // this approach is just fine because events are posted to our handler anyway // this approach is just fine because events are posted to our handler anyway mProperties = new Properties(); mProperties = new Properties(); sendMessage(INITIALIZE_HANDLER, 0, null); // Create a GPS net-initiated handler (also needed by handleInitialize) // Create a GPS net-initiated handler. mNIHandler = new GpsNetInitiatedHandler(context, mNIHandler = new GpsNetInitiatedHandler(context, mNetInitiatedListener, mNetInitiatedListener, mSuplEsEnabled); mSuplEsEnabled); sendMessage(INITIALIZE_HANDLER, 0, null); mListenerHelper = new GnssStatusListenerHelper(mHandler) { mListenerHelper = new GnssStatusListenerHelper(mHandler) { @Override @Override Loading Loading
location/java/com/android/internal/location/GpsNetInitiatedHandler.java +7 −9 Original line number Original line Diff line number Diff line Loading @@ -16,8 +16,6 @@ package com.android.internal.location; package com.android.internal.location; import java.io.UnsupportedEncodingException; import android.app.Notification; import android.app.Notification; import android.app.NotificationManager; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.PendingIntent; Loading @@ -25,21 +23,21 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Context; import android.content.Intent; import android.content.Intent; import android.content.IntentFilter; import android.content.IntentFilter; import android.location.LocationManager; import android.location.INetInitiatedListener; import android.location.INetInitiatedListener; import android.telephony.TelephonyManager; import android.location.LocationManager; import android.telephony.PhoneNumberUtils; import android.telephony.PhoneStateListener; import android.os.Bundle; import android.os.Bundle; import android.os.RemoteException; import android.os.RemoteException; import android.os.UserHandle; import android.os.SystemProperties; import android.os.SystemProperties; import android.os.UserHandle; import android.telephony.PhoneNumberUtils; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.util.Log; import android.util.Log; import com.android.internal.notification.SystemNotificationChannels; import com.android.internal.R; import com.android.internal.R; import com.android.internal.notification.SystemNotificationChannels; import com.android.internal.telephony.GsmAlphabet; import com.android.internal.telephony.GsmAlphabet; import com.android.internal.telephony.TelephonyProperties; import com.android.internal.telephony.TelephonyProperties; import java.io.UnsupportedEncodingException; /** /** * A GPS Network-initiated Handler class used by LocationManager. * A GPS Network-initiated Handler class used by LocationManager. Loading
services/core/java/com/android/server/location/GnssLocationProvider.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -729,12 +729,11 @@ public class GnssLocationProvider implements LocationProviderInterface { // while IO initialization and registration is delegated to our internal handler // while IO initialization and registration is delegated to our internal handler // this approach is just fine because events are posted to our handler anyway // this approach is just fine because events are posted to our handler anyway mProperties = new Properties(); mProperties = new Properties(); sendMessage(INITIALIZE_HANDLER, 0, null); // Create a GPS net-initiated handler (also needed by handleInitialize) // Create a GPS net-initiated handler. mNIHandler = new GpsNetInitiatedHandler(context, mNIHandler = new GpsNetInitiatedHandler(context, mNetInitiatedListener, mNetInitiatedListener, mSuplEsEnabled); mSuplEsEnabled); sendMessage(INITIALIZE_HANDLER, 0, null); mListenerHelper = new GnssStatusListenerHelper(mHandler) { mListenerHelper = new GnssStatusListenerHelper(mHandler) { @Override @Override Loading