/packages/apps/Dialer/InCallUI/src/com/android/incallui/util/ |
H A D | TelecomCallUtil.java | 26 * on occasion we need to interact with the telecom.Call directly (eg. call blocking, 31 // Whether the call handle is an emergency number. 32 public static boolean isEmergencyCall(Call call) { argument 33 Uri handle = call.getDetails().getHandle(); 38 public static String getNumber(Call call) { argument 39 if (call == null) { 42 if (call.getDetails().getGatewayInfo() != null) { 43 return call.getDetails().getGatewayInfo() 46 Uri handle = getHandle(call); 50 public static Uri getHandle(Call call) { argument [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
H A D | CallFilterResultCallback.java | 21 void onCallFilteringComplete(Call call, CallFilteringResult result); argument
|
H A D | DirectToVoicemailCallFilter.java | 36 public void startFilterLookup(final Call call, CallFilterResultCallback callback) { argument 37 Log.event(call, Log.Events.DIRECT_TO_VM_INITIATED); 38 final Uri callHandle = call.getHandle(); 61 Log.event(call, Log.Events.DIRECT_TO_VM_FINISHED, result); 62 callback.onCallFilteringComplete(call, result);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
H A D | CallSdkCompat.java | 34 * TODO: This API is hidden in the N release; replace the implementation with a call to the 37 public static void pullExternalCall(Call call) { argument 44 pullExternalCallMethod.invoke(call); 46 // Ignore requests to pull call if there is a problem. 48 // Ignore requests to pull call if there is a problem. 50 // Ignore requests to pull call if there is a problem.
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | InCallWakeLockController.java | 22 * Handles acquisition and release of wake locks relating to call state. 39 public void onCallAdded(Call call) { argument 40 if (call.isExternalCall()) { 47 public void onCallRemoved(Call call) { argument 48 if (call.isExternalCall()) { 55 public void onCallStateChanged(Call call, int oldState, int newState) { argument 56 if (call.isExternalCall()) { 63 // We grab a full lock as long as there exists a ringing call.
|
H A D | MissedCallNotifier.java | 28 void showMissedCallNotification(Call call); argument
|
H A D | ProximitySensorManager.java | 40 public void onCallRemoved(Call call) { argument 41 if (call.isExternalCall()) { 48 super.onCallRemoved(call); 57 Log.w(this, "Asking to turn on prox sensor without a call? I don't think so.");
|
H A D | RingbackPlayer.java | 23 * audio for a call, whereas most tones play as simple timed events. This means ringback must be 32 * The current call for which the ringback tone is being played. 46 * Starts ringback for the specified dialing call as needed. 48 * @param call The call for which to ringback. 50 public void startRingbackForCall(Call call) { argument 51 Preconditions.checkState(call.getState() == CallState.DIALING); 53 if (mCall == call) { 54 Log.w(this, "Ignoring duplicate requests to ring for %s.", call); 59 // We only get here for the foreground call s 77 stopRingbackForCall(Call call) argument [all...] |
H A D | StatusBarNotifier.java | 49 public void onCallRemoved(Call call) { argument
|
H A D | CallIntentProcessor.java | 25 * captures call intents for individual users and forwards it to the {@link CallIntentProcessor} 57 * Whether or not the dialer initiating this outgoing call is the default dialer, or system 63 * The user initiating the outgoing call. 93 * @param intent Call intent containing data about the handle to call. 120 // Ensure call subject is passed on to the connection service. 133 // Show the toast to warn user that it is a personal call though initiated in work profile. 141 Call call = callsManager 144 if (call != null) { 148 // process will be running throughout the duration of the phone call and should never 151 context, callsManager, call, inten 230 disconnectCallAndShowErrorDialog( Context context, Call call, int errorCode) argument [all...] |
H A D | CreateConnectionTimeout.java | 30 * Registers a timeout for a call and disconnects the call when the timeout expires. 42 ConnectionServiceWrapper service, Call call) { 47 mCall = call; 70 // Timeout is only supported for SIM call managers that are set by the carrier. 73 Log.d(this, "isTimeoutNeededForCall, not a system sim call manager"); 107 Log.i(this, "run, call timed out, calling disconnect"); 113 static boolean isCallBeingPlaced(Call call) { argument 114 int state = call.getState(); 41 CreateConnectionTimeout(Context context, PhoneAccountRegistrar phoneAccountRegistrar, ConnectionServiceWrapper service, Call call) argument
|
H A D | DtmfLocalTonePlayer.java | 34 * class employs a concept of a call "session" that starts and stops when the foreground call 41 /** The current call associated with an existing dtmf session. */ 64 * @param call The associated call. 67 void playTone(Call call, char c) { argument 68 // Do nothing if it is not the right call. 69 if (mCall != call) { 88 * @param call The associated call 90 stopTone(Call call) argument 110 startDtmfSession(Call call) argument 136 endDtmfSession(Call call) argument [all...] |
H A D | HeadsetMediaButton.java | 110 * Handles the wired headset button while in-call. 128 public void onCallAdded(Call call) { argument 129 if (call.isExternalCall()) { 137 public void onCallRemoved(Call call) { argument 138 if (call.isExternalCall()) { 148 public void onExternalCallChanged(Call call, boolean isExternalCall) { argument 150 onCallRemoved(call); 152 onCallAdded(call);
|
H A D | ParcelableCallUtils.java | 34 public ParcelableCall toParcelableCall(Call call, boolean includeVideoProvider, argument 37 call, includeVideoProvider, phoneAccountRegistrar, false); 44 * @param call The {@link Call} to parcel. 50 * @param supportsExternalCalls Indicates whether the call should be parcelled for an 54 Call call, 58 return toParcelableCall(call, includeVideoProvider, phoneAccountRegistrar, 65 * @param call The {@link Call} to parcel. 71 * @param supportsExternalCalls Indicates whether the call should be parcelled for an 74 * override to whatever is defined in the call. 75 * @return The {@link ParcelableCall} containing all call informatio 53 toParcelableCall( Call call, boolean includeVideoProvider, PhoneAccountRegistrar phoneAccountRegistrar, boolean supportsExternalCalls) argument 77 toParcelableCall( Call call, boolean includeVideoProvider, PhoneAccountRegistrar phoneAccountRegistrar, boolean supportsExternalCalls, int overrideState) argument 181 getParcelableState(Call call, boolean supportsExternalCalls) argument [all...] |
H A D | PhoneStateBroadcaster.java | 26 * Send a {@link TelephonyManager#ACTION_PHONE_STATE_CHANGED} broadcast when the call state 45 public void onCallStateChanged(Call call, int oldState, int newState) { argument 46 if (call.isExternalCall()) { 49 updateStates(call); 53 public void onCallAdded(Call call) { argument 54 if (call.isExternalCall()) { 57 updateStates(call); 61 public void onCallRemoved(Call call) { argument 62 if (call.isExternalCall()) { 65 updateStates(call); 77 onExternalCallChanged(Call call, boolean isExternalCall) argument 81 updateStates(Call call) argument 100 sendPhoneStateChangedBroadcast(Call call, int phoneState) argument [all...] |
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
H A D | InCallServiceImpl.java | 29 * dialing (outgoing), and active calls. When the last call is disconnected, Telecom will unbind to 46 public void onCallAdded(Call call) { argument 47 InCallPresenter.getInstance().onCallAdded(call); 51 public void onCallRemoved(Call call) { argument 52 InCallPresenter.getInstance().onCallRemoved(call);
|
H A D | VideoUtils.java | 27 public static boolean isVideoCall(Call call) { argument 28 return call != null && isVideoCall(call.getVideoState()); 40 public static boolean isBidirectionalVideoCall(Call call) { argument 45 return VideoProfile.isBidirectional(call.getVideoState()); 48 public static boolean isTransmissionEnabled(Call call) { argument 53 return VideoProfile.isTransmissionEnabled(call.getVideoState()); 56 public static boolean isIncomingVideoCall(Call call) { argument 57 if (!VideoUtils.isVideoCall(call)) { 60 final int state = call 64 isActiveVideoCall(Call call) argument 68 isOutgoingVideoCall(Call call) argument 77 isAudioCall(Call call) argument 86 canVideoPause(Call call) argument 90 makeVideoPauseProfile(Call call) argument 96 makeVideoUnPauseProfile(Call call) argument [all...] |
H A D | CallerInfoUtils.java | 38 * This is called to get caller info for a call. This will return a CallerInfo 39 * object immediately based off information in the call, but 43 public static CallerInfo getCallerInfoForCall(Context context, Call call, argument 45 CallerInfo info = buildCallerInfo(context, call); 47 // TODO: Have phoneapp send a Uri when it knows the contact that triggered this call. 50 // Start the query with the number provided from the call. 52 CallerInfoAsyncQuery.startQuery(QUERY_TOKEN, context, info, listener, call); 57 public static CallerInfo buildCallerInfo(Context context, Call call) { argument 62 info.cnapName = call.getCnapName(); 64 info.numberPresentation = call 120 isVoiceMailNumber(Context context, Call call) argument [all...] |
H A D | ConferenceManagerPresenter.java | 32 * Logic for call buttons. 44 // register for call state changes last 62 final Call call = callList.getActiveOrBackgroundCall(); 63 if (call != null && call.isConferenceCall()) { 65 String.valueOf(call.getChildCallIds().size())); 77 public void onDetailsChanged(Call call, android.telecom.Call.Details details) { argument 83 if (call.can(android.telecom.Call.Details.CAPABILITY_DISCONNECT_FROM_CONFERENCE) 85 || call.can(android.telecom.Call.Details.CAPABILITY_SEPARATE_FROM_CONFERENCE) 87 getUi().refreshCall(call); 97 onIncomingCall(InCallState oldState, InCallState newState, Call call) argument 142 refreshCall(Call call) argument [all...] |
H A D | ExternalCallList.java | 24 void onExternalCallAdded(Call call); argument 25 void onExternalCallRemoved(Call call); argument 26 void onExternalCallUpdated(Call call); argument 34 public void onDetailsChanged(Call call, Call.Details details) { 35 notifyExternalCallUpdated(call); 44 * Begins tracking an external call and notifies listeners of the new call. 55 * Stops tracking an external call and notifies listeners of the removal of the call. 65 * Adds a new listener to external call event 82 notifyExternalCallAdded(Call call) argument 91 notifyExternalCallRemoved(Call call) argument 100 notifyExternalCallUpdated(Call call) argument [all...] |
H A D | InCallVideoCallCallback.java | 31 * The call associated with this {@link InCallVideoCallCallback}. 36 * Creates an instance of the call video client, specifying the call it is related to. 38 * @param call The call. 40 public InCallVideoCallCallback(Call call) { argument 41 mCall = call; 47 * @param videoProfile The requested video call profile. 101 * Handles a call session event. 122 * Handles a change to the video quality of the call [all...] |
/packages/apps/Dialer/src/com/android/dialer/logging/ |
H A D | Logger.java | 38 * Logs a call event. PII like the call's number or caller details should never be logged. 40 * @param call to log. 42 public static void logCall(Call call) { argument 45 logger.logCallImpl(call); 82 public abstract void logCallImpl(Call call); argument
|
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ |
H A D | ExternalCallListTest.java | 39 public void onExternalCallAdded(Call call) { argument 44 public void onExternalCallRemoved(Call call) { argument 49 public void onExternalCallUpdated(Call call) { argument 90 TestTelecomCall call = getTestCall(Call.Details.PROPERTY_IS_EXTERNAL_CALL); 91 mExternalCallList.onCallAdded(call.getCall()); 96 TestTelecomCall call = getTestCall(0 /* no properties */); 98 mExternalCallList.onCallAdded(call.getCall()); 105 TestTelecomCall call = getTestCall(Call.Details.PROPERTY_IS_EXTERNAL_CALL); 106 mExternalCallList.onCallAdded(call.getCall()); 109 call [all...] |
H A D | TestTelecomCall.java | 70 android.telecom.Call call = (android.telecom.Call) cons.newInstance(null, callId, null); 72 // Create an instance of the call details. 99 // Finally, set this as the details of the call. 100 Field detailsField = call.getClass().getDeclaredField("mDetails"); 102 detailsField.set(call, details); 104 return new TestTelecomCall(call); 120 private TestTelecomCall(android.telecom.Call call) { argument 121 mCall = call; 158 public void setCall(android.telecom.Call call) { argument 159 mCall = call; [all...] |
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
H A D | InstallPackageTaskTest.java | 170 public Bundle call(String method, String request, Bundle args) { method in class:InstallPackageTaskTest.MyMockContentProvider
|