From cd0f3088ef4c0f211d68235d9aa0556bd4e0984b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Tue, 21 Feb 2012 13:19:58 -0800 Subject: [PATCH] Add stubs for improved compatibility Change-Id: I77b348b4c592e0b694aabb069812c94b9cb79a00 --- include/androidfw/Asset.h | 17 +++++++++++++++++ include/androidfw/AssetManager.h | 17 +++++++++++++++++ include/androidfw/KeycodeLabels.h | 17 +++++++++++++++++ include/androidfw/ResourceTypes.h | 17 +++++++++++++++++ libs/androidfw/Android.mk | 21 +++++++++++++++++++++ libs/androidfw/Dummy.cpp | 18 ++++++++++++++++++ 6 files changed, 107 insertions(+) create mode 100644 include/androidfw/Asset.h create mode 100644 include/androidfw/AssetManager.h create mode 100644 include/androidfw/KeycodeLabels.h create mode 100644 include/androidfw/ResourceTypes.h create mode 100644 libs/androidfw/Android.mk create mode 100644 libs/androidfw/Dummy.cpp diff --git a/include/androidfw/Asset.h b/include/androidfw/Asset.h new file mode 100644 index 000000000000..3c57b1cf0d34 --- /dev/null +++ b/include/androidfw/Asset.h @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2012 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. + */ + +#include diff --git a/include/androidfw/AssetManager.h b/include/androidfw/AssetManager.h new file mode 100644 index 000000000000..8cc35319dba5 --- /dev/null +++ b/include/androidfw/AssetManager.h @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2012 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. + */ + +#include diff --git a/include/androidfw/KeycodeLabels.h b/include/androidfw/KeycodeLabels.h new file mode 100644 index 000000000000..615a6278df62 --- /dev/null +++ b/include/androidfw/KeycodeLabels.h @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2012 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. + */ + +#include diff --git a/include/androidfw/ResourceTypes.h b/include/androidfw/ResourceTypes.h new file mode 100644 index 000000000000..70cdc88cd073 --- /dev/null +++ b/include/androidfw/ResourceTypes.h @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2012 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. + */ + +#include diff --git a/libs/androidfw/Android.mk b/libs/androidfw/Android.mk new file mode 100644 index 000000000000..a0e1dad96af4 --- /dev/null +++ b/libs/androidfw/Android.mk @@ -0,0 +1,21 @@ +# Copyright (C) 2012 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:= Dummy.cpp +LOCAL_MODULE:= libandroidfw +LOCAL_MODULE_TAGS := optional +include $(BUILD_SHARED_LIBRARY) diff --git a/libs/androidfw/Dummy.cpp b/libs/androidfw/Dummy.cpp new file mode 100644 index 000000000000..f4f0f5457c2c --- /dev/null +++ b/libs/androidfw/Dummy.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2012 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. + */ + +void Dummy() { +} -- 2.11.0