aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLujiang Xue <rogerxue@google.com>2017-08-07 14:18:32 -0700
committerLujiang Xue <rogerxue@google.com>2017-08-07 14:18:32 -0700
commitbb9ebde20c351863a04190896142c63be88284fb (patch)
tree793eae855faaa034575175f38ef05ccb30fb3816
parent035428a4c6e8ea9b640c98f6e0347daca2389c48 (diff)
downloadCar-bb9ebde20c351863a04190896142c63be88284fb.tar.gz
remove Map monitoring from kitchenSink
Bug: 64391322 Test: build and flash Change-Id: Ie99928fc9ec7e6b5a063e6afae406ba42b5d8295
-rw-r--r--tests/EmbeddedKitchenSinkApp/AndroidManifest.xml8
-rw-r--r--tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/MapReceiver.java37
2 files changed, 0 insertions, 45 deletions
diff --git a/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml b/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml
index 2f7279802b..2a968987a9 100644
--- a/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml
+++ b/tests/EmbeddedKitchenSinkApp/AndroidManifest.xml
@@ -102,13 +102,5 @@
<category android:name="android.car.cluster.NAVIGATION"/>
</intent-filter>
</activity>
-
- <receiver android:name=".bluetooth.MapReceiver"
- android:permission="android.permission.READ_SMS">
- <intent-filter>
- <action android:name="android.bluetooth.mapmce.profile.action.MESSAGE_RECEIVED"/>
- <action android:name="android.provider.action.VOICE_SEND_MESSAGE_TO_CONTACTS"/>
- </intent-filter>
- </receiver>
</application>
</manifest>
diff --git a/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/MapReceiver.java b/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/MapReceiver.java
deleted file mode 100644
index e0d1ca06bc..0000000000
--- a/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/MapReceiver.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2016 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.android.car.kitchensink.bluetooth;
-
-import android.bluetooth.BluetoothMapClient;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.util.Log;
-import android.widget.Toast;
-
-public class MapReceiver extends BroadcastReceiver {
- private static final String TAG = "CAR.BLUETOOTH.KS";
- @Override
- public void onReceive(Context context, Intent intent) {
- Log.d(TAG, "MAP onReceive");
- String action = intent.getAction();
- if (action.equals(BluetoothMapClient.ACTION_MESSAGE_RECEIVED)) {
- Toast.makeText(context, intent.getStringExtra(android.content.Intent.EXTRA_TEXT),
- Toast.LENGTH_LONG).show();
- }
- }
-}