implement new boolean methods

Change-Id: Ideec6bbc157b877973a2726f3d4d6b052d79cdc4
Signed-off-by: zwliew <zhaoweiliew@gmail.com>