Пример #1
0
ssize_t StringPool::add(const String16& value, const Vector<entry_style_span>& spans)
{
    ssize_t res = add(String16(), value, false);
    if (res >= 0) {
        addStyleSpans(res, spans);
    }
    return res;
}
Пример #2
0
ssize_t StringPool::add(const String16 &value, const Vector<entry_style_span> &spans,
                        const String8 *configTypeName, const ResTable_config *config) {
    ssize_t res = add(value, false, configTypeName, config);
    if (res >= 0) {
        addStyleSpans(res, spans);
    }
    return res;
}