@Implements(value=android.telecom.TelecomManager.class, minSdk=21) public class ShadowTelecomManager extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ShadowTelecomManager.CallRecord |
Constructor and Description |
---|
ShadowTelecomManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptRingingCall() |
protected void |
addNewIncomingCall(android.telecom.PhoneAccountHandle phoneAccount,
android.os.Bundle extras) |
void |
addNewUnknownCall(android.telecom.PhoneAccountHandle phoneAccount,
android.os.Bundle extras) |
protected void |
cancelMissedCallsNotification() |
void |
clearAccounts()
Deprecated.
|
void |
clearAccountsForPackage(java.lang.String packageName) |
void |
enablePhoneAccount(android.telecom.PhoneAccountHandle handle,
boolean isEnabled) |
boolean |
endCall() |
protected android.net.Uri |
getAdnUriForPhoneAccount(android.telecom.PhoneAccountHandle accountHandle) |
java.util.List<ShadowTelecomManager.CallRecord> |
getAllIncomingCalls() |
java.util.List<android.telecom.PhoneAccountHandle> |
getAllPhoneAccountHandles() |
java.util.List<android.telecom.PhoneAccount> |
getAllPhoneAccounts() |
int |
getAllPhoneAccountsCount() |
java.util.List<ShadowTelecomManager.CallRecord> |
getAllUnknownCalls() |
protected java.util.List<android.telecom.PhoneAccountHandle> |
getCallCapablePhoneAccounts() |
java.util.List<android.telecom.PhoneAccountHandle> |
getCallCapablePhoneAccounts(boolean includeDisabledAccounts) |
int |
getCallState() |
android.telecom.PhoneAccountHandle |
getConnectionManager() |
int |
getCurrentTtyMode() |
protected java.lang.String |
getDefaultDialerPackage() |
protected android.telecom.PhoneAccountHandle |
getDefaultOutgoingPhoneAccount(java.lang.String uriScheme) |
android.content.ComponentName |
getDefaultPhoneApp()
Deprecated.
|
protected java.lang.String |
getLine1Number(android.telecom.PhoneAccountHandle accountHandle) |
protected android.telecom.PhoneAccount |
getPhoneAccount(android.telecom.PhoneAccountHandle account) |
java.util.List<android.telecom.PhoneAccountHandle> |
getPhoneAccountsForPackage() |
java.util.List<android.telecom.PhoneAccountHandle> |
getPhoneAccountsSupportingScheme(java.lang.String uriScheme) |
protected android.telecom.PhoneAccountHandle |
getSimCallManager() |
android.telecom.PhoneAccountHandle |
getSimCallManager(int userId) |
java.lang.String |
getSystemDialerPackage() |
android.telecom.PhoneAccountHandle |
getUserSelectedOutgoingPhoneAccount() |
protected java.lang.String |
getVoiceMailNumber(android.telecom.PhoneAccountHandle accountHandle) |
protected boolean |
handleMmi(java.lang.String dialString) |
protected boolean |
handleMmi(java.lang.String dialString,
android.telecom.PhoneAccountHandle accountHandle) |
protected boolean |
isInCall() |
boolean |
isRinging() |
protected boolean |
isTtySupported() |
protected boolean |
isVoiceMailNumber(android.telecom.PhoneAccountHandle accountHandle,
java.lang.String number) |
protected void |
placeCall(android.net.Uri address,
android.os.Bundle extras) |
protected void |
registerPhoneAccount(android.telecom.PhoneAccount account) |
boolean |
setDefaultDialer(java.lang.String packageName) |
void |
setSimCallManager(android.telecom.PhoneAccountHandle simCallManager) |
void |
setUserSelectedOutgoingPhoneAccount(android.telecom.PhoneAccountHandle accountHandle) |
protected void |
showInCallScreen(boolean showDialpad) |
protected void |
silenceRinger() |
protected void |
unregisterPhoneAccount(android.telecom.PhoneAccountHandle accountHandle) |
@Implementation protected android.telecom.PhoneAccountHandle getDefaultOutgoingPhoneAccount(java.lang.String uriScheme)
@Implementation @HiddenApi public android.telecom.PhoneAccountHandle getUserSelectedOutgoingPhoneAccount()
@Implementation @HiddenApi public void setUserSelectedOutgoingPhoneAccount(android.telecom.PhoneAccountHandle accountHandle)
@Implementation protected android.telecom.PhoneAccountHandle getSimCallManager()
@Implementation(minSdk=23) @HiddenApi public android.telecom.PhoneAccountHandle getSimCallManager(int userId)
@Implementation @HiddenApi public android.telecom.PhoneAccountHandle getConnectionManager()
@Implementation @HiddenApi public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String uriScheme)
@Implementation(minSdk=23) protected java.util.List<android.telecom.PhoneAccountHandle> getCallCapablePhoneAccounts()
@Implementation(minSdk=23) @HiddenApi public java.util.List<android.telecom.PhoneAccountHandle> getCallCapablePhoneAccounts(boolean includeDisabledAccounts)
@Implementation @HiddenApi public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsForPackage()
@Implementation protected android.telecom.PhoneAccount getPhoneAccount(android.telecom.PhoneAccountHandle account)
@Implementation @HiddenApi public int getAllPhoneAccountsCount()
@Implementation @HiddenApi public java.util.List<android.telecom.PhoneAccount> getAllPhoneAccounts()
@Implementation @HiddenApi public java.util.List<android.telecom.PhoneAccountHandle> getAllPhoneAccountHandles()
@Implementation protected void registerPhoneAccount(android.telecom.PhoneAccount account)
@Implementation protected void unregisterPhoneAccount(android.telecom.PhoneAccountHandle accountHandle)
@Deprecated @Implementation @HiddenApi public void clearAccounts()
@Implementation(minSdk=22) @HiddenApi public void clearAccountsForPackage(java.lang.String packageName)
@Deprecated @Implementation @HiddenApi public android.content.ComponentName getDefaultPhoneApp()
@Implementation(minSdk=23) protected java.lang.String getDefaultDialerPackage()
@Implementation(minSdk=23) @HiddenApi public boolean setDefaultDialer(java.lang.String packageName)
@Implementation(minSdk=23) @HiddenApi public java.lang.String getSystemDialerPackage()
@Implementation(minSdk=22) protected boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle accountHandle, java.lang.String number)
@Implementation(minSdk=23) protected java.lang.String getVoiceMailNumber(android.telecom.PhoneAccountHandle accountHandle)
@Implementation(minSdk=22) protected java.lang.String getLine1Number(android.telecom.PhoneAccountHandle accountHandle)
@Implementation protected boolean isInCall()
@Implementation @HiddenApi public int getCallState()
@Implementation @HiddenApi public boolean isRinging()
@Implementation @HiddenApi public boolean endCall()
@Implementation protected void acceptRingingCall()
@Implementation protected void silenceRinger()
@Implementation protected boolean isTtySupported()
@Implementation @HiddenApi public int getCurrentTtyMode()
@Implementation protected void addNewIncomingCall(android.telecom.PhoneAccountHandle phoneAccount, android.os.Bundle extras)
public java.util.List<ShadowTelecomManager.CallRecord> getAllIncomingCalls()
@Implementation @HiddenApi public void addNewUnknownCall(android.telecom.PhoneAccountHandle phoneAccount, android.os.Bundle extras)
public java.util.List<ShadowTelecomManager.CallRecord> getAllUnknownCalls()
@Implementation protected boolean handleMmi(java.lang.String dialString)
@Implementation(minSdk=23) protected boolean handleMmi(java.lang.String dialString, android.telecom.PhoneAccountHandle accountHandle)
@Implementation(minSdk=22) protected android.net.Uri getAdnUriForPhoneAccount(android.telecom.PhoneAccountHandle accountHandle)
@Implementation protected void cancelMissedCallsNotification()
@Implementation protected void showInCallScreen(boolean showDialpad)
@Implementation(minSdk=23) protected void placeCall(android.net.Uri address, android.os.Bundle extras)
@Implementation(minSdk=23) @HiddenApi public void enablePhoneAccount(android.telecom.PhoneAccountHandle handle, boolean isEnabled)
public void setSimCallManager(android.telecom.PhoneAccountHandle simCallManager)