[Galaxy S Advance I9070 Original Android Developmen] jeffreyvh:
Error in Parcel.h

I ran to another error

target thumb C++: healthd <= system/core/healthd/healthd.cpp

target thumb C++: healthd <= system/core/healthd/healthd_mode_android.cpp

In file included from frameworks/native/include/batteryservice/BatteryService.h:20:0,

from system/core/healthd/healthd.h:21,

from system/core/healthd/healthd.cpp:21:

frameworks/native/include/binder/Parcel.h:33:7: error: template argument required for 'class Flattenable'

class Flattenable;

^

frameworks/native/include/binder/Parcel.h:114:37: error: invalid use of template-name 'android::Flattenable' without an argument list

status_t write(const Flattenable& val);

^

frameworks/native/include/binder/Parcel.h:182:30: error: 'Flattenable' is not a type

status_t read(Flattenable& val) const;

^

frameworks/native/include/binder/Parcel.h:319:15: error: invalid use of template-name 'android::Flattenable' without an argument list

const Flattenable& val;

^

frameworks/native/include/binder/Parcel.h:320:42: error: invalid use of template-name 'android::Flattenable' without an argument list

explicit FlattenableHelper(const Flattenable& val) : val(val) { }

^

frameworks/native/include/binder/Parcel.h: In constructor 'android::Parcel::FlattenableHelper::FlattenableHelper(const int&)':

frameworks/native/include/binder/Parcel.h:320:62: error: class 'android::Parcel::FlattenableHelper' does not have any field named 'val'

explicit FlattenableHelper(const Flattenable& val) : val(val) { }

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual size_t android::Parcel::FlattenableHelper::getFlattenedSize() const':

frameworks/native/include/binder/Parcel.h:328:20: error: 'val' was not declared in this scope

return val.getFlattenedSize();

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual size_t android::Parcel::FlattenableHelper::getFdCount() const':

frameworks/native/include/binder/Parcel.h:331:20: error: 'val' was not declared in this scope

return val.getFdCount();

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual android::status_t android::Parcel::FlattenableHelper::flatten(void*, size_t, int*, size_t) const':

frameworks/native/include/binder/Parcel.h:334:20: error: 'val' was not declared in this scope

return val.flatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual android::status_t android::Parcel::FlattenableHelper::unflatten(const void*, size_t, const int*, size_t)':

frameworks/native/include/binder/Parcel.h:338:31: error: expected type-specifier before 'Flattenable'

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:31: error: expected '>' before 'Flattenable'

frameworks/native/include/binder/Parcel.h:338:31: error: expected '(' before 'Flattenable'

frameworks/native/include/binder/Parcel.h:338:42: error: missing template arguments before '&' token

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:43: error: expected primary-expression before '>' token

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:45: error: 'val' was not declared in this scope

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:85: error: expected ')' before ';' token

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

build/core/binary.mk:619: recipe for target '/home/jeffreyvh/android/coderom/out/target/product/janice/obj/EXECUTABLES/healthd_intermediates/healthd.o' failed

make: *** [/home/jeffreyvh/android/coderom/out/target/product/janice/obj/EXECUTABLES/healthd_intermediates/healthd.o] Error 1

make: *** Waiting for unfinished jobs....

In file included from frameworks/native/include/batteryservice/BatteryService.h:20:0,

from system/core/healthd/healthd.h:21,

from system/core/healthd/healthd_mode_android.cpp:19:

frameworks/native/include/binder/Parcel.h:33:7: error: template argument required for 'class Flattenable'

class Flattenable;

^

frameworks/native/include/binder/Parcel.h:114:37: error: invalid use of template-name 'android::Flattenable' without an argument list

status_t write(const Flattenable& val);

^

frameworks/native/include/binder/Parcel.h:182:30: error: 'Flattenable' is not a type

status_t read(Flattenable& val) const;

^

frameworks/native/include/binder/Parcel.h:319:15: error: invalid use of template-name 'android::Flattenable' without an argument list

const Flattenable& val;

^

frameworks/native/include/binder/Parcel.h:320:42: error: invalid use of template-name 'android::Flattenable' without an argument list

explicit FlattenableHelper(const Flattenable& val) : val(val) { }

^

frameworks/native/include/binder/Parcel.h: In constructor 'android::Parcel::FlattenableHelper::FlattenableHelper(const int&)':

frameworks/native/include/binder/Parcel.h:320:62: error: class 'android::Parcel::FlattenableHelper' does not have any field named 'val'

explicit FlattenableHelper(const Flattenable& val) : val(val) { }

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual size_t android::Parcel::FlattenableHelper::getFlattenedSize() const':

frameworks/native/include/binder/Parcel.h:328:20: error: 'val' was not declared in this scope

return val.getFlattenedSize();

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual size_t android::Parcel::FlattenableHelper::getFdCount() const':

frameworks/native/include/binder/Parcel.h:331:20: error: 'val' was not declared in this scope

return val.getFdCount();

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual android::status_t android::Parcel::FlattenableHelper::flatten(void*, size_t, int*, size_t) const':

frameworks/native/include/binder/Parcel.h:334:20: error: 'val' was not declared in this scope

return val.flatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h: In member function 'virtual android::status_t android::Parcel::FlattenableHelper::unflatten(const void*, size_t, const int*, size_t)':

frameworks/native/include/binder/Parcel.h:338:31: error: expected type-specifier before 'Flattenable'

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:31: error: expected '>' before 'Flattenable'

frameworks/native/include/binder/Parcel.h:338:31: error: expected '(' before 'Flattenable'

frameworks/native/include/binder/Parcel.h:338:42: error: missing template arguments before '&' token

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:43: error: expected primary-expression before '>' token

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:45: error: 'val' was not declared in this scope

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

frameworks/native/include/binder/Parcel.h:338:85: error: expected ')' before ';' token

return const_cast<Flattenable&>(val).unflatten(buffer, size, fds, count);

^

build/core/binary.mk:619: recipe for target '/home/jeffreyvh/android/coderom/out/target/product/janice/obj/EXECUTABLES/healthd_intermediates/healthd_mode_android.o' failed

make: *** [/home/jeffreyvh/android/coderom/out/target/product/janice/obj/EXECUTABLES/healthd_intermediates/healthd_mode_android.o] Error 1

#### make failed to build some targets (04:14 (mm:ss)) ####