Searched defs:context (Results 1 - 25 of 2076) sorted by path

1234567891011>>

/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
H A DSmsMessageReceiver.java34 public void onReceive(Context context, Intent intent) { argument
49 addNotification(context, fromAddress, messageBody);
53 private void addNotification(Context context, String fromAddress, String message) { argument
56 Notification.Builder notification = new Notification.Builder(context)
62 .setContentIntent(createDisplayMessageIntent(context, fromAddress, message,
68 (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
73 private PendingIntent createDisplayMessageIntent(Context context, String fromAddress, argument
77 di.setClass(context, DialogSmsDisplay.class);
89 PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, di, 0);
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
H A DBluetoothMapEmailProvider.java90 public void attachInfo(Context context, ProviderInfo info) { argument
107 mResolver = context.getContentResolver();
108 super.attachInfo(context, info);
/packages/apps/Bluetooth/src/com/android/bluetooth/
H A DUtils.java212 * Enforce the context has android.Manifest.permission.BLUETOOTH_ADMIN permission. A
216 * @param context Context for the permission check.
218 public static void enforceAdminPermission(ContextWrapper context) { argument
219 context.enforceCallingOrSelfPermission(android.Manifest.permission.BLUETOOTH_ADMIN,
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpSinkStateMachine.java117 private A2dpSinkStateMachine(A2dpSinkService svc, Context context) { argument
120 mContext = context;
135 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
140 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
143 static A2dpSinkStateMachine make(A2dpSinkService svc, Context context) { argument
145 A2dpSinkStateMachine a2dpSm = new A2dpSinkStateMachine(svc, context);
H A DA2dpStateMachine.java113 private A2dpStateMachine(A2dpService svc, Context context) { argument
116 mContext = context;
131 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
136 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
140 static A2dpStateMachine make(A2dpService svc, Context context) { argument
142 A2dpStateMachine a2dpSm = new A2dpStateMachine(svc, context);
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcp.java144 private Avrcp(Context context) { argument
162 mContext = context;
166 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
182 public static Avrcp make(Context context) { argument
184 Avrcp ar = new Avrcp(context);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DAtPhonebook.java102 public AtPhonebook(Context context, HeadsetStateMachine headsetState) { argument
103 mContext = context;
104 mContentResolver = context.getContentResolver();
H A DHeadsetPhoneState.java66 HeadsetPhoneState(Context context, HeadsetStateMachine stateMachine) { argument
68 mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
H A DHeadsetStateMachine.java202 private HeadsetStateMachine(HeadsetService context) { argument
204 mService = context;
208 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
214 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
216 mPhoneState = new HeadsetPhoneState(context, this);
220 intent.setComponent(intent.resolveSystemService(context.getPackageManager(), 0));
221 if (intent.getComponent() == null || !context.bindService(intent, mConnection, 0)) {
254 static HeadsetStateMachine make(HeadsetService context) { argument
256 HeadsetStateMachine hssm = new HeadsetStateMachine(context);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientStateMachine.java1184 private HeadsetClientStateMachine(HeadsetClientService context) { argument
1186 mService = context;
1189 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
1245 static HeadsetClientStateMachine make(HeadsetClientService context) { argument
1247 HeadsetClientStateMachine hfcsm = new HeadsetClientStateMachine(context);
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapContent.java210 public BluetoothMapContent(final Context context, String emailBaseUri) { argument
211 mContext = context;
H A DBluetoothMapContentObserver.java152 public BluetoothMapContentObserver(final Context context, argument
157 mContext = context;
367 mns.sendMessageDelayed(msg, 10); // Send message without forcing a context switch
1702 public void onReceive(Context context, Intent intent) { argument
1725 actionMessageSent(context, intent, msgInfo);
1746 actionMessageDelivery(context, intent, msgInfo);
1753 private void actionMessageSent(Context context, Intent intent, PushMsgInfo msgInfo) { argument
1766 if (!Sms.moveMessageToFolder(context, msgInfo.uri,
1789 if (!Sms.moveMessageToFolder(context, msgInfo.uri,
1814 private void actionMessageDelivery(Context context, Inten argument
1854 actionMessageSentDisconnected(Context context, Intent intent, int result) argument
1985 handleSmsSendIntent(Context context, Intent intent) argument
[all...]
H A DBluetoothMapEmailAppObserver.java58 public BluetoothMapEmailAppObserver(final Context context, BluetoothMapService mapService) { argument
59 mContext = context;
61 mResolver = context.getContentResolver();
199 public void onReceive(Context context, Intent intent) {
H A DBluetoothMapMasInstance.java61 private Context mContext = null; // MAP service context
72 * @param context
77 Context context,
83 mContext = context;
307 public boolean handleSmsSendIntent(Context context, Intent intent){ argument
309 return mObserver.handleSmsSendIntent(context, intent);
76 BluetoothMapMasInstance(BluetoothMapService mapService, Context context, BluetoothMapEmailSettingsItem account, int masId, boolean enableSmsMms) argument
H A DBluetoothMapObexServer.java103 Context context,
110 mContext = context;
102 BluetoothMapObexServer(Handler callback, Context context, BluetoothMapContentObserver observer, int masId, BluetoothMapEmailSettingsItem account, boolean enableSmsMms) argument
H A DBluetoothMapService.java869 public void onReceive(Context context, Intent intent) { argument
937 Intent in = new Intent(context, BluetoothMapEmailSettings.class);
939 context.startActivity(in);
946 if(masInst.handleSmsSendIntent(context, intent)) {
955 BluetoothMapContentObserver.actionMessageSentDisconnected(context, intent, result);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppBatch.java102 * @param context, Context
105 public BluetoothOppBatch(Context context, BluetoothOppShareInfo info) { argument
107 mContext = context;
H A DBluetoothOppHandoverReceiver.java34 public void onReceive(Context context, Intent intent) { argument
52 BluetoothOppManager.getInstance(context).saveSendingFileInfo(type,
62 BluetoothOppManager.getInstance(context).saveSendingFileInfo(mimeType,
70 BluetoothOppManager.getInstance(context).startTransfer(device);
76 BluetoothOppManager.getInstance(context).addToWhitelist(device.getAddress());
83 context.getContentResolver().delete(contentUri, null, null);
H A DBluetoothOppLauncherActivity.java251 private Uri creatFileForSharedContent(Context context, CharSequence shareContent) { argument
260 context.deleteFile(fileName);
315 outStream = context.openFileOutput(fileName, Context.MODE_PRIVATE);
318 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName));
H A DBluetoothOppLiveFolder.java68 private static Intent createLiveFolder(Context context, Uri uri, String name, int icon) { argument
76 .fromContext(context, icon));
H A DBluetoothOppManager.java58 * a singleton got from BluetoothOppManager.getInstance(context);
123 public static BluetoothOppManager getInstance(Context context) { argument
128 INSTANCE.init(context);
137 private boolean init(Context context) { argument
142 mContext = context;
H A DBluetoothOppObexClientSession.java78 public BluetoothOppObexClientSession(Context context, ObexTransport transport) { argument
82 mContext = context;
145 public ClientThread(Context context, ObexTransport transport, int initialNumShares) { argument
147 mContext1 = context;
H A DBluetoothOppObexServerSession.java100 public BluetoothOppObexServerSession(Context context, ObexTransport transport) { argument
101 mContext = context;
H A DBluetoothOppPreference.java68 public static BluetoothOppPreference getInstance(Context context) { argument
73 if (!INSTANCE.init(context)) {
80 private boolean init(Context context) { argument
85 mContext = context;
H A DBluetoothOppProvider.java122 public DatabaseHelper(final Context context) { argument
123 super(context, DB_NAME, null, DB_VERSION);
278 Context context = getContext();
279 context.startService(new Intent(context, BluetoothOppService.class));
286 context.startService(new Intent(context, BluetoothOppService.class));
288 context.getContentResolver().notifyChange(uri, null);

Completed in 450 milliseconds

1234567891011>>