From bb9ebde20c351863a04190896142c63be88284fb Mon Sep 17 00:00:00 2001 From: Lujiang Xue Date: Mon, 7 Aug 2017 14:18:32 -0700 Subject: remove Map monitoring from kitchenSink Bug: 64391322 Test: build and flash Change-Id: Ie99928fc9ec7e6b5a063e6afae406ba42b5d8295 --- tests/EmbeddedKitchenSinkApp/AndroidManifest.xml | 8 ----- .../car/kitchensink/bluetooth/MapReceiver.java | 37 ---------------------- 2 files changed, 45 deletions(-) delete mode 100644 tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/MapReceiver.java 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 @@ - - - - - - - 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(); - } - } -} -- cgit v1.2.3