Loading telephony/java/android/telephony/TelephonyManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -782,7 +782,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; Bundle bundle = telephony.getCellLocation(); Bundle bundle = telephony.getCellLocation(mContext.getOpPackageName()); if (bundle.isEmpty()) return null; CellLocation cl = CellLocation.newFromBundle(bundle); if (cl.isEmpty()) Loading Loading @@ -2729,7 +2729,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; return telephony.getAllCellInfo(); return telephony.getAllCellInfo(mContext.getOpPackageName()); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -343,7 +343,7 @@ interface ITelephony { */ boolean isDataConnectivityPossible(); Bundle getCellLocation(); Bundle getCellLocation(String callingPkg); /** * Returns the neighboring cell information of the device. Loading Loading @@ -507,7 +507,7 @@ interface ITelephony { /** * Returns the all observed cell information of the device. */ List<CellInfo> getAllCellInfo(); List<CellInfo> getAllCellInfo(String callingPkg); /** * Sets minimum time in milli-seconds between onCellInfoChanged Loading Loading
telephony/java/android/telephony/TelephonyManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -782,7 +782,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; Bundle bundle = telephony.getCellLocation(); Bundle bundle = telephony.getCellLocation(mContext.getOpPackageName()); if (bundle.isEmpty()) return null; CellLocation cl = CellLocation.newFromBundle(bundle); if (cl.isEmpty()) Loading Loading @@ -2729,7 +2729,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; return telephony.getAllCellInfo(); return telephony.getAllCellInfo(mContext.getOpPackageName()); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -343,7 +343,7 @@ interface ITelephony { */ boolean isDataConnectivityPossible(); Bundle getCellLocation(); Bundle getCellLocation(String callingPkg); /** * Returns the neighboring cell information of the device. Loading Loading @@ -507,7 +507,7 @@ interface ITelephony { /** * Returns the all observed cell information of the device. */ List<CellInfo> getAllCellInfo(); List<CellInfo> getAllCellInfo(String callingPkg); /** * Sets minimum time in milli-seconds between onCellInfoChanged Loading