diff options
-rw-r--r-- | media/mca/Android.mk | 21 | ||||
-rw-r--r-- | media/mca/samples/Android.mk | 21 | ||||
-rw-r--r-- | media/mca/samples/CameraEffectsRecordingSample/Android.bp | 26 | ||||
-rw-r--r-- | media/mca/samples/CameraEffectsRecordingSample/Android.mk | 35 | ||||
-rw-r--r-- | media/mca/tests/Android.bp | 12 | ||||
-rw-r--r-- | media/mca/tests/Android.mk | 20 | ||||
-rw-r--r-- | media/packages/BluetoothMidiService/Android.bp | 6 | ||||
-rw-r--r-- | media/packages/BluetoothMidiService/Android.mk | 13 | ||||
-rw-r--r-- | media/tests/CameraBrowser/Android.bp | 5 | ||||
-rw-r--r-- | media/tests/CameraBrowser/Android.mk | 12 | ||||
-rw-r--r-- | media/tests/EffectsTest/Android.bp | 5 | ||||
-rw-r--r-- | media/tests/EffectsTest/Android.mk | 11 | ||||
-rw-r--r-- | media/tests/MediaDump/Android.bp | 6 | ||||
-rw-r--r-- | media/tests/MediaDump/Android.mk | 16 | ||||
-rw-r--r-- | media/tests/ScoAudioTest/Android.bp | 5 | ||||
-rw-r--r-- | media/tests/ScoAudioTest/Android.mk | 13 | ||||
-rw-r--r-- | media/tests/SoundPoolTest/Android.bp | 5 | ||||
-rw-r--r-- | media/tests/SoundPoolTest/Android.mk | 11 | ||||
-rw-r--r-- | media/tests/players/Android.bp | 31 | ||||
-rw-r--r-- | media/tests/players/Android.mk | 32 |
20 files changed, 101 insertions, 205 deletions
diff --git a/media/mca/Android.mk b/media/mca/Android.mk deleted file mode 100644 index b1ce91ee8d8c..000000000000 --- a/media/mca/Android.mk +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (C) 2011 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. -# - -# -# Build all native libraries -# -include $(call all-subdir-makefiles) - - diff --git a/media/mca/samples/Android.mk b/media/mca/samples/Android.mk deleted file mode 100644 index b1ce91ee8d8c..000000000000 --- a/media/mca/samples/Android.mk +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (C) 2011 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. -# - -# -# Build all native libraries -# -include $(call all-subdir-makefiles) - - diff --git a/media/mca/samples/CameraEffectsRecordingSample/Android.bp b/media/mca/samples/CameraEffectsRecordingSample/Android.bp new file mode 100644 index 000000000000..96e81ab9b9cc --- /dev/null +++ b/media/mca/samples/CameraEffectsRecordingSample/Android.bp @@ -0,0 +1,26 @@ +// Copyright (C) 2011 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. +// + +// Build activity + +android_test { + name: "CameraEffectsRecordingSample", + srcs: ["**/*.java"], + platform_apis: true, + optimize: { + enabled: false, + }, +} + diff --git a/media/mca/samples/CameraEffectsRecordingSample/Android.mk b/media/mca/samples/CameraEffectsRecordingSample/Android.mk deleted file mode 100644 index c81f2fc57dc3..000000000000 --- a/media/mca/samples/CameraEffectsRecordingSample/Android.mk +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (C) 2011 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. -# - -# Build activity - -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_PACKAGE_NAME := CameraEffectsRecordingSample -LOCAL_PRIVATE_PLATFORM_APIS := true - -LOCAL_PROGUARD_ENABLED := disabled - -include $(BUILD_PACKAGE) - -# ============================================================ - -# Also build all of the sub-targets under this one: the shared library. -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/media/mca/tests/Android.bp b/media/mca/tests/Android.bp new file mode 100644 index 000000000000..6b11dd9db7ba --- /dev/null +++ b/media/mca/tests/Android.bp @@ -0,0 +1,12 @@ +android_test { + name: "CameraEffectsTests", + libs: [ + "android.test.runner", + "android.test.base", + ], + static_libs: ["junit"], + // Include all test java files. + srcs: ["src/**/*.java"], + platform_apis: true, + instrumentation_for: "CameraEffectsRecordingSample", +} diff --git a/media/mca/tests/Android.mk b/media/mca/tests/Android.mk deleted file mode 100644 index 648af4e48493..000000000000 --- a/media/mca/tests/Android.mk +++ /dev/null @@ -1,20 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -# We only want this apk build for tests. -LOCAL_MODULE_TAGS := tests - -LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base -LOCAL_STATIC_JAVA_LIBRARIES := junit - -# Include all test java files. -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := CameraEffectsTests -LOCAL_PRIVATE_PLATFORM_APIS := true - -LOCAL_INSTRUMENTATION_FOR := CameraEffectsRecordingSample - -include $(BUILD_PACKAGE) - - diff --git a/media/packages/BluetoothMidiService/Android.bp b/media/packages/BluetoothMidiService/Android.bp new file mode 100644 index 000000000000..f45114a277aa --- /dev/null +++ b/media/packages/BluetoothMidiService/Android.bp @@ -0,0 +1,6 @@ +android_app { + name: "BluetoothMidiService", + srcs: ["src/**/*.java"], + platform_apis: true, + certificate: "platform", +} diff --git a/media/packages/BluetoothMidiService/Android.mk b/media/packages/BluetoothMidiService/Android.mk deleted file mode 100644 index 6f262bf6007a..000000000000 --- a/media/packages/BluetoothMidiService/Android.mk +++ /dev/null @@ -1,13 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES += \ - $(call all-java-files-under,src) - -LOCAL_PACKAGE_NAME := BluetoothMidiService -LOCAL_PRIVATE_PLATFORM_APIS := true -LOCAL_CERTIFICATE := platform - -include $(BUILD_PACKAGE) diff --git a/media/tests/CameraBrowser/Android.bp b/media/tests/CameraBrowser/Android.bp new file mode 100644 index 000000000000..8e3ca1943b17 --- /dev/null +++ b/media/tests/CameraBrowser/Android.bp @@ -0,0 +1,5 @@ +android_test { + name: "CameraBrowser", + srcs: ["**/*.java"], + sdk_version: "current", +} diff --git a/media/tests/CameraBrowser/Android.mk b/media/tests/CameraBrowser/Android.mk deleted file mode 100644 index 46596a739451..000000000000 --- a/media/tests/CameraBrowser/Android.mk +++ /dev/null @@ -1,12 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_PACKAGE_NAME := CameraBrowser - -LOCAL_SDK_VERSION := current - -include $(BUILD_PACKAGE) diff --git a/media/tests/EffectsTest/Android.bp b/media/tests/EffectsTest/Android.bp new file mode 100644 index 000000000000..214e8c02f742 --- /dev/null +++ b/media/tests/EffectsTest/Android.bp @@ -0,0 +1,5 @@ +android_test { + name: "EffectsTest", + srcs: ["**/*.java"], + platform_apis: true, +} diff --git a/media/tests/EffectsTest/Android.mk b/media/tests/EffectsTest/Android.mk deleted file mode 100644 index a066950985a9..000000000000 --- a/media/tests/EffectsTest/Android.mk +++ /dev/null @@ -1,11 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_PACKAGE_NAME := EffectsTest -LOCAL_PRIVATE_PLATFORM_APIS := true - -include $(BUILD_PACKAGE) diff --git a/media/tests/MediaDump/Android.bp b/media/tests/MediaDump/Android.bp new file mode 100644 index 000000000000..0eba8b24f6cd --- /dev/null +++ b/media/tests/MediaDump/Android.bp @@ -0,0 +1,6 @@ +android_app { + name: "MediaDump", + // Only compile source java files in this apk. + srcs: ["src/**/*.java"], + sdk_version: "current", +} diff --git a/media/tests/MediaDump/Android.mk b/media/tests/MediaDump/Android.mk deleted file mode 100644 index 74afdd00b97b..000000000000 --- a/media/tests/MediaDump/Android.mk +++ /dev/null @@ -1,16 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -# Only compile source java files in this apk. -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := MediaDump - -LOCAL_SDK_VERSION := current - -include $(BUILD_PACKAGE) - -# Use the following include to make our test apk. -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/media/tests/ScoAudioTest/Android.bp b/media/tests/ScoAudioTest/Android.bp new file mode 100644 index 000000000000..ad2b91716145 --- /dev/null +++ b/media/tests/ScoAudioTest/Android.bp @@ -0,0 +1,5 @@ +android_test { + name: "scoaudiotest", + platform_apis: true, + srcs: ["**/*.java"], +} diff --git a/media/tests/ScoAudioTest/Android.mk b/media/tests/ScoAudioTest/Android.mk deleted file mode 100644 index 2ad91a4c36a2..000000000000 --- a/media/tests/ScoAudioTest/Android.mk +++ /dev/null @@ -1,13 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -#LOCAL_SDK_VERSION := current -LOCAL_PRIVATE_PLATFORM_APIS := true - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_PACKAGE_NAME := scoaudiotest - -include $(BUILD_PACKAGE) diff --git a/media/tests/SoundPoolTest/Android.bp b/media/tests/SoundPoolTest/Android.bp new file mode 100644 index 000000000000..473f531f675b --- /dev/null +++ b/media/tests/SoundPoolTest/Android.bp @@ -0,0 +1,5 @@ +android_test { + name: "SoundPoolTest", + srcs: ["**/*.java"], + platform_apis: true, +} diff --git a/media/tests/SoundPoolTest/Android.mk b/media/tests/SoundPoolTest/Android.mk deleted file mode 100644 index 9ca33c8c2ef2..000000000000 --- a/media/tests/SoundPoolTest/Android.mk +++ /dev/null @@ -1,11 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_PACKAGE_NAME := SoundPoolTest -LOCAL_PRIVATE_PLATFORM_APIS := true - -include $(BUILD_PACKAGE) diff --git a/media/tests/players/Android.bp b/media/tests/players/Android.bp new file mode 100644 index 000000000000..23c5f04c93a6 --- /dev/null +++ b/media/tests/players/Android.bp @@ -0,0 +1,31 @@ +// Copyright (C) 2009 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. + +cc_test_library { + name: "invoke_mock_media_player", + srcs: ["invoke_mock_media_player.cpp"], + shared_libs: [ + "libbinder", + "libmedia", + "libutils", + "liblog", + ], + cflags: [ + "-Wall", + "-Werror", + "-Wunused", + "-Wunreachable-code", + ], + gtest: false, +} diff --git a/media/tests/players/Android.mk b/media/tests/players/Android.mk deleted file mode 100644 index ee9d85099104..000000000000 --- a/media/tests/players/Android.mk +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (C) 2009 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. - -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES:= invoke_mock_media_player.cpp - -LOCAL_SHARED_LIBRARIES:= \ - libbinder \ - libmedia \ - libutils \ - liblog - -LOCAL_MODULE:= invoke_mock_media_player -LOCAL_MODULE_TAGS := tests - -LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code - -include $(BUILD_SHARED_LIBRARY) |