summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/simulator/service/ISimulatorService.aidl
blob: 77511cc9c88a9a713210cf94f1d3ef0dca0cf09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.android.dialer.simulator.service;

interface ISimulatorService {
 /**
  * Makes an incoming call by simulator api.
  * @param callerId is the number showing on incall UI.
  * @param presentation is one of types of a call e.g. Payphone, Restricted, etc.. check
  * {@link TelecomManager} for more information.
  * */
 void makeIncomingCall(String callerId, int presentation);
 /**
  * Makes an incoming call.
  * @param callerId the number showing on incall UI.
  * @param presentation one of types of a call e.g. Payphone, Restricted, etc.. check
  * {@link TelecomManager} for more information.
  * */
 void makeOutgoingCall(String callerId, int presentation);
 /**
  * Makes an incoming enriched call.
  * Note: simulator mode should be enabled first.
  * */
 void makeIncomingEnrichedCall();
 /**
  * Makes an outgoing enriched call.
  * Note: simulator mode should be enabled first.
  * */
 void makeOutgoingEnrichedCall();
 /**
  * Populate missed call logs.
  * @param num the number of missed call to make with this api.
  * */
 void populateMissedCall(int num);
 /** Populate contacts database to get contacts, call logs, voicemails, etc.. */
 void populateDataBase();
 /** Clean contacts database to clean all exsting contacts, call logs. voicemails, etc.. */
 void cleanDataBase();
 /**
  * Enable simulator mode. After entering simulator mode, all calls made by dialer will be handled
  * by simulator connection service, meaning users can directly make fake calls through simulator.
  * It is also a prerequisite to make an enriched call.
  * */
 void enableSimulatorMode();
 /** Disable simulator mode to use system connection service. */
 void disableSimulatorMode();
}