Loading telephony/java/android/telephony/TelephonyManager.java +21 −0 Original line number Diff line number Diff line Loading @@ -3528,4 +3528,25 @@ public class TelephonyManager { } return -1; } /** @hide */ @SystemApi public void enableVideoCalling(boolean enable) { try { getITelephony().enableVideoCalling(enable); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#enableVideoCalling", e); } } /** @hide */ @SystemApi public boolean isVideoCallingEnabled() { try { return getITelephony().isVideoCallingEnabled(); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isVideoCallingEnabled", e); } return false; } } telephony/java/com/android/internal/telephony/ITelephony.aidl +15 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ import java.util.List; /** * Interface used to interact with the phone. Mostly this is used by the * TelephonyManager class. A few places are still using this directly. * Please clean them up if possible and use TelephonyManager insteadl. * Please clean them up if possible and use TelephonyManager instead. * * {@hide} */ Loading Loading @@ -831,4 +831,18 @@ interface ITelephony { * @return phone radio type and access technology */ int getRadioAccessFamily(in int phoneId); /** * Enables or disables video calling. * * @param enable Whether to enable video calling. */ void enableVideoCalling(boolean enable); /** * Whether video calling has been enabled by the user. * * @return {@code True} if the user has enabled video calling, {@code false} otherwise. */ boolean isVideoCallingEnabled(); } Loading
telephony/java/android/telephony/TelephonyManager.java +21 −0 Original line number Diff line number Diff line Loading @@ -3528,4 +3528,25 @@ public class TelephonyManager { } return -1; } /** @hide */ @SystemApi public void enableVideoCalling(boolean enable) { try { getITelephony().enableVideoCalling(enable); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#enableVideoCalling", e); } } /** @hide */ @SystemApi public boolean isVideoCallingEnabled() { try { return getITelephony().isVideoCallingEnabled(); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isVideoCallingEnabled", e); } return false; } }
telephony/java/com/android/internal/telephony/ITelephony.aidl +15 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ import java.util.List; /** * Interface used to interact with the phone. Mostly this is used by the * TelephonyManager class. A few places are still using this directly. * Please clean them up if possible and use TelephonyManager insteadl. * Please clean them up if possible and use TelephonyManager instead. * * {@hide} */ Loading Loading @@ -831,4 +831,18 @@ interface ITelephony { * @return phone radio type and access technology */ int getRadioAccessFamily(in int phoneId); /** * Enables or disables video calling. * * @param enable Whether to enable video calling. */ void enableVideoCalling(boolean enable); /** * Whether video calling has been enabled by the user. * * @return {@code True} if the user has enabled video calling, {@code false} otherwise. */ boolean isVideoCallingEnabled(); }