ITelecomService.aidl revision c35ad0252d1ad9ae50e2dadd670783d4a6259df6
13afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon/* 23afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * Copyright (C) 2014 The Android Open Source Project 33afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * 43afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * Licensed under the Apache License, Version 2.0 (the "License"); 53afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * you may not use this file except in compliance with the License. 63afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * You may obtain a copy of the License at 73afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * 83afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * http://www.apache.org/licenses/LICENSE-2.0 93afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * 103afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * Unless required by applicable law or agreed to in writing, software 113afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * distributed under the License is distributed on an "AS IS" BASIS, 123afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * See the License for the specific language governing permissions and 143afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * limitations under the License. 153afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon */ 163afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon 173afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordonpackage com.android.internal.telecomm; 183afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon 19c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awadimport android.telecomm.Subscription; 202e024708b1447b2e7e139ee523673a4c3d589493Yorke Leeimport android.content.ComponentName; 212e024708b1447b2e7e139ee523673a4c3d589493Yorke Lee 223afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon/** 233afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * Interface used to interact with Telecomm. Mostly this is used by TelephonyManager for passing 243afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * commands that were previously handled by ITelephony. 253afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * {@hide} 263afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon */ 273534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordoninterface ITelecommService { 283afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon 293afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon /** 303afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * Silence the ringer if an incoming call is currently ringing. 313afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * (If vibrating, stop the vibrator also.) 323afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * 333afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * It's safe to call this if the ringer has already been silenced, or 343afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon * even if there's no incoming call. (If so, this method will do nothing.) 353afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon */ 363afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon void silenceRinger(); 373534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon 383534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon /** 393534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon * Brings the in-call screen to the foreground if there is an active call. 403534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon * 413534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon * @param showDialpad if true, make the dialpad visible initially. 423534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon */ 433534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon void showCallScreen(boolean showDialpad); 442e024708b1447b2e7e139ee523673a4c3d589493Yorke Lee 452e024708b1447b2e7e139ee523673a4c3d589493Yorke Lee /** 462e024708b1447b2e7e139ee523673a4c3d589493Yorke Lee * Returns the component name of the phone application installed on the system partition. 472e024708b1447b2e7e139ee523673a4c3d589493Yorke Lee */ 482e024708b1447b2e7e139ee523673a4c3d589493Yorke Lee ComponentName getSystemPhoneApplication(); 49c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad 50c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad /** 51c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad * Gets a list of Subscriptions. 52c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad */ 53c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad List<Subscription> getSubscriptions(); 54c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad 55c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad /** 56c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad * Sets the enabled state of a given Subscription. 57c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad */ 58c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad void setEnabled(in Subscription subscription, boolean enabled); 59c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad 60c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad /** 61c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad * Sets a given Subscription as the system default. 62c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad */ 63c35ad0252d1ad9ae50e2dadd670783d4a6259df6Ihab Awad void setSystemDefault(in Subscription subscription); 643afed57a7d8a6e9d9fcaaa483a3c3e3652e2199aSantos Cordon} 65