Files
frameworks_base/libs/androidfw/tests/data/lib_two/R.h
Ryan Mitchell b3ae42e976 Copy common resources between styles
The docuemntation of setTo states that the resources two styles from
different AssetManagers have in common will be set in the destination
theme. This change adds this functionality. The package ids of the
attributes, the package ids of reference values, and the cookie of
attribute values have to be rewritten to match the destination
AssetManager. This change can later be made more generic if rewriting
references between packages is needed elsewhere.

Bug: 115897657
Test: libandroidfw_tests and manual test of app specified in the bug
Change-Id: Iee999ea2cc8473168cac11aaf3c34e14c958e5ae
2018-11-01 17:01:28 -07:00

52 lines
1.2 KiB
C++

/*
* Copyright (C) 2014 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.
*/
#ifndef TEST_DATA_LIB_TWO_R_H_
#define TEST_DATA_LIB_TWO_R_H_
#include <cstdint>
namespace com {
namespace android {
namespace lib_two {
struct R {
struct attr {
enum : uint32_t {
attr3 = 0x02010000, // default
};
};
struct string {
enum : uint32_t {
LibraryString = 0x02020000, // default
foo = 0x02020001, // default
};
};
struct style {
enum : uint32_t {
Theme = 0x02030000, // default
};
};
};
} // namespace lib_two
} // namespace android
} // namespace com
#endif // TEST_DATA_LIB_TWO_R_H_