/system/core/libcutils/ |
D | multiuser_test.cpp | 23 EXPECT_EQ(0U, multiuser_get_uid(0, 0)); in TEST() 24 EXPECT_EQ(1000U, multiuser_get_uid(0, 1000)); in TEST() 25 EXPECT_EQ(10000U, multiuser_get_uid(0, 10000)); in TEST() 26 EXPECT_EQ(50000U, multiuser_get_uid(0, 50000)); in TEST() 27 EXPECT_EQ(1000000U, multiuser_get_uid(10, 0)); in TEST() 28 EXPECT_EQ(1001000U, multiuser_get_uid(10, 1000)); in TEST() 29 EXPECT_EQ(1010000U, multiuser_get_uid(10, 10000)); in TEST() 30 EXPECT_EQ(1050000U, multiuser_get_uid(10, 50000)); in TEST() 34 EXPECT_EQ(0U, multiuser_get_user_id(0)); in TEST() 35 EXPECT_EQ(0U, multiuser_get_user_id(1000)); in TEST() [all …]
|
/system/core/libunwindstack/tests/ |
D | UnwindOfflineTest.cpp | 218 EXPECT_EQ( in TEST_F() 224 EXPECT_EQ(0xf31ea9f8U, unwinder.frames()[0].pc); in TEST_F() 225 EXPECT_EQ(0xe9c866f8U, unwinder.frames()[0].sp); in TEST_F() 226 EXPECT_EQ(0xf2da0a1bU, unwinder.frames()[1].pc); in TEST_F() 227 EXPECT_EQ(0xe9c86728U, unwinder.frames()[1].sp); in TEST_F() 228 EXPECT_EQ(0xf2da1441U, unwinder.frames()[2].pc); in TEST_F() 229 EXPECT_EQ(0xe9c86730U, unwinder.frames()[2].sp); in TEST_F() 230 EXPECT_EQ(0xf3367147U, unwinder.frames()[3].pc); in TEST_F() 231 EXPECT_EQ(0xe9c86778U, unwinder.frames()[3].sp); in TEST_F() 240 EXPECT_EQ( in TEST_F() [all …]
|
D | UnwinderTest.cpp | 170 EXPECT_EQ(ERROR_NONE, unwinder.LastErrorCode()); in TEST_F() 176 EXPECT_EQ(0U, frame->num); in TEST_F() 177 EXPECT_EQ(0U, frame->rel_pc); in TEST_F() 178 EXPECT_EQ(0x1000U, frame->pc); in TEST_F() 179 EXPECT_EQ(0x10000U, frame->sp); in TEST_F() 180 EXPECT_EQ("Frame0", frame->function_name); in TEST_F() 181 EXPECT_EQ(0U, frame->function_offset); in TEST_F() 182 EXPECT_EQ("/system/fake/libc.so", frame->map_name); in TEST_F() 183 EXPECT_EQ(0U, frame->map_elf_start_offset); in TEST_F() 184 EXPECT_EQ(0U, frame->map_exact_offset); in TEST_F() [all …]
|
D | LocalUpdatableMapsTest.cpp | 61 EXPECT_EQ(0x3000U, map_info->start); in SetUp() 62 EXPECT_EQ(0x4000U, map_info->end); in SetUp() 63 EXPECT_EQ(0U, map_info->offset); in SetUp() 64 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags); in SetUp() 69 EXPECT_EQ(0x8000U, map_info->start); in SetUp() 70 EXPECT_EQ(0x9000U, map_info->end); in SetUp() 71 EXPECT_EQ(0U, map_info->offset); in SetUp() 72 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags); in SetUp() 86 EXPECT_EQ(0U, maps_.TestGetSavedMaps().size()); in TEST_F() 90 EXPECT_EQ(0x3000U, map_info->start); in TEST_F() [all …]
|
D | DwarfDebugFrameTest.cpp | 131 EXPECT_EQ(0x5000U, fdes[0]->cie_offset); in TYPED_TEST_P() 132 EXPECT_EQ(0x5110U, fdes[0]->cfa_instructions_offset); in TYPED_TEST_P() 133 EXPECT_EQ(0x5200U, fdes[0]->cfa_instructions_end); in TYPED_TEST_P() 134 EXPECT_EQ(0x1500U, fdes[0]->pc_start); in TYPED_TEST_P() 135 EXPECT_EQ(0x1700U, fdes[0]->pc_end); in TYPED_TEST_P() 136 EXPECT_EQ(0U, fdes[0]->lsda_address); in TYPED_TEST_P() 139 EXPECT_EQ(0x5000U, fdes[1]->cie_offset); in TYPED_TEST_P() 140 EXPECT_EQ(0x5210U, fdes[1]->cfa_instructions_offset); in TYPED_TEST_P() 141 EXPECT_EQ(0x5300U, fdes[1]->cfa_instructions_end); in TYPED_TEST_P() 142 EXPECT_EQ(0x2500U, fdes[1]->pc_start); in TYPED_TEST_P() [all …]
|
D | RegsTest.cpp | 96 EXPECT_EQ(4U, GetPcAdjustment(0x10, elf_.get(), ARCH_ARM64)); in TEST_F() 97 EXPECT_EQ(4U, GetPcAdjustment(0x4, elf_.get(), ARCH_ARM64)); in TEST_F() 98 EXPECT_EQ(0U, GetPcAdjustment(0x3, elf_.get(), ARCH_ARM64)); in TEST_F() 99 EXPECT_EQ(0U, GetPcAdjustment(0x2, elf_.get(), ARCH_ARM64)); in TEST_F() 100 EXPECT_EQ(0U, GetPcAdjustment(0x1, elf_.get(), ARCH_ARM64)); in TEST_F() 101 EXPECT_EQ(0U, GetPcAdjustment(0x0, elf_.get(), ARCH_ARM64)); in TEST_F() 103 EXPECT_EQ(1U, GetPcAdjustment(0x100, elf_.get(), ARCH_X86)); in TEST_F() 104 EXPECT_EQ(1U, GetPcAdjustment(0x2, elf_.get(), ARCH_X86)); in TEST_F() 105 EXPECT_EQ(1U, GetPcAdjustment(0x1, elf_.get(), ARCH_X86)); in TEST_F() 106 EXPECT_EQ(0U, GetPcAdjustment(0x0, elf_.get(), ARCH_X86)); in TEST_F() [all …]
|
D | MapsTest.cpp | 88 EXPECT_EQ(1U, info.start); in TEST() 89 EXPECT_EQ(2U, info.end); in TEST() 90 EXPECT_EQ(PROT_READ | PROT_WRITE | PROT_EXEC, info.flags); in TEST() 91 EXPECT_EQ(3U, info.offset); in TEST() 92 EXPECT_EQ("", info.name); in TEST() 95 EXPECT_EQ(0xaU, info.start); in TEST() 96 EXPECT_EQ(0xbU, info.end); in TEST() 97 EXPECT_EQ(0U, info.flags); in TEST() 98 EXPECT_EQ(0xcU, info.offset); in TEST() 99 EXPECT_EQ("/fake/name", info.name); in TEST() [all …]
|
D | DwarfEhFrameTest.cpp | 67 EXPECT_EQ(0x5000U, fde->cie_offset); in TYPED_TEST_P() 68 EXPECT_EQ(0x5110U, fde->cfa_instructions_offset); in TYPED_TEST_P() 69 EXPECT_EQ(0x5200U, fde->cfa_instructions_end); in TYPED_TEST_P() 70 EXPECT_EQ(0x6608U, fde->pc_start); in TYPED_TEST_P() 71 EXPECT_EQ(0x6808U, fde->pc_end); in TYPED_TEST_P() 72 EXPECT_EQ(0U, fde->lsda_address); in TYPED_TEST_P() 76 EXPECT_EQ(1U, cie->version); in TYPED_TEST_P() 77 EXPECT_EQ(DW_EH_PE_sdata4, cie->fde_address_encoding); in TYPED_TEST_P() 78 EXPECT_EQ(DW_EH_PE_omit, cie->lsda_encoding); in TYPED_TEST_P() 79 EXPECT_EQ(0U, cie->segment_size); in TYPED_TEST_P() [all …]
|
/system/tools/xsdc/tests/ |
D | main.cpp | 48 EXPECT_EQ(simple.getListInt()[i], i + 1); in TEST_F() 50 EXPECT_EQ(*simple.getFirstUnionTest(), "100"); in TEST_F() 51 EXPECT_EQ(simple.getYesOrNo()[0], EnumType::YES); in TEST_F() 52 EXPECT_EQ(simple.getYesOrNo()[1], EnumType::EMPTY); in TEST_F() 57 EXPECT_EQ(simple.getListInt()[i], simple2.getListInt()[i]); in TEST_F() 59 EXPECT_EQ(*simple.getFirstUnionTest(), *simple2.getFirstUnionTest()); in TEST_F() 60 EXPECT_EQ(simple.getYesOrNo()[0], simple2.getYesOrNo()[0]); in TEST_F() 61 EXPECT_EQ(simple.getYesOrNo()[1], simple2.getYesOrNo()[1]); in TEST_F() 74 EXPECT_EQ(stringTypes.getString(), "abcd"); in TEST_F() 75 EXPECT_EQ(stringTypes.getToken(), "abcd"); in TEST_F() [all …]
|
/system/netd/libnetdutils/ |
D | InternetAddressesTest.cpp | 127 EXPECT_EQ(kExpectations.size(), tests_run); in TEST() 133 EXPECT_EQ(0U, ones.scope_id()); in TEST() 135 EXPECT_EQ(0U, ones22.scope_id()); in TEST() 136 EXPECT_EQ(ones, ones22); in TEST() 138 EXPECT_EQ(0U, ones23.scope_id()); in TEST() 139 EXPECT_EQ(ones22, ones23); in TEST() 141 EXPECT_EQ("fe80::1%22", IPAddress(FE80_1, 22).toString()); in TEST() 142 EXPECT_EQ("fe80::2%23", IPAddress(FE80_2, 23).toString()); in TEST() 147 EXPECT_EQ(22U, fe80_intf22.scope_id()); in TEST() 148 EXPECT_EQ(fe80_intf22, IPAddress(fe80_intf22)); in TEST() [all …]
|
D | BackoffSequenceTest.cpp | 28 EXPECT_EQ(0x00000001U, backoff.getNextTimeout()); in TEST() 29 EXPECT_EQ(0x00000002U, backoff.getNextTimeout()); in TEST() 30 EXPECT_EQ(0x00000004U, backoff.getNextTimeout()); in TEST() 31 EXPECT_EQ(0x00000008U, backoff.getNextTimeout()); in TEST() 32 EXPECT_EQ(0x00000010U, backoff.getNextTimeout()); in TEST() 33 EXPECT_EQ(0x00000020U, backoff.getNextTimeout()); in TEST() 34 EXPECT_EQ(0x00000040U, backoff.getNextTimeout()); in TEST() 35 EXPECT_EQ(0x00000080U, backoff.getNextTimeout()); in TEST() 36 EXPECT_EQ(0x00000100U, backoff.getNextTimeout()); in TEST() 37 EXPECT_EQ(0x00000200U, backoff.getNextTimeout()); in TEST() [all …]
|
/system/tools/hidl/test/host_utils_test/ |
D | main.cpp | 61 EXPECT_EQ("", StringHelper::LTrim("", "")); in TEST_F() 62 EXPECT_EQ("", StringHelper::LTrim("", "a")); in TEST_F() 63 EXPECT_EQ("", StringHelper::LTrim("a", "a")); in TEST_F() 64 EXPECT_EQ("a", StringHelper::LTrim("a", "")); in TEST_F() 65 EXPECT_EQ("a", StringHelper::LTrim("a", "b")); in TEST_F() 66 EXPECT_EQ("a", StringHelper::LTrim("ba", "b")); in TEST_F() 67 EXPECT_EQ("f", StringHelper::LTrim("abcdef", "abcde")); in TEST_F() 68 EXPECT_EQ("cdef", StringHelper::LTrim("abcdef", "ab")); in TEST_F() 69 EXPECT_EQ("abcdef", StringHelper::LTrim("abcdef", "")); in TEST_F() 71 EXPECT_EQ("", StringHelper::RTrim("", "")); in TEST_F() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | l2cap_sdu_test.cc | 47 EXPECT_EQ(0x72aa, packet_1->get_fcs()); in TEST_F() 48 EXPECT_EQ(0x5b57, packet_2->get_fcs()); in TEST_F() 49 EXPECT_EQ(0xe644, packet_3->get_fcs()); in TEST_F() 50 EXPECT_EQ(0x21b0, packet_4->get_fcs()); in TEST_F() 51 EXPECT_EQ(0xae96, packet_5->get_fcs()); in TEST_F() 52 EXPECT_EQ(0x9254, packet_6->get_fcs()); in TEST_F() 53 EXPECT_EQ(0xf6fa, packet_7->get_fcs()); in TEST_F() 54 EXPECT_EQ(0x1da4, packet_8->get_fcs()); in TEST_F() 55 EXPECT_EQ(0x781a, packet_9->get_fcs()); in TEST_F() 59 EXPECT_EQ(l2cap_test_packet_1.size() - 4, packet_1->get_payload_length()); in TEST_F() [all …]
|
/system/tools/aidl/ |
D | options_unittest.cpp | 115 EXPECT_EQ(Options::Task::PREPROCESS, options->GetTask()); in TEST() 116 EXPECT_EQ(false, options->FailOnParcelable()); in TEST() 117 EXPECT_EQ(0u, options->ImportDirs().size()); in TEST() 118 EXPECT_EQ(0u, options->PreprocessedFiles().size()); in TEST() 119 EXPECT_EQ(string{kPreprocessCommandOutputFile}, options->OutputFile()); in TEST() 120 EXPECT_EQ(false, options->AutoDepFile()); in TEST() 124 EXPECT_EQ(expected_input, options->InputFiles()); in TEST() 129 EXPECT_EQ(Options::Task::COMPILE, options->GetTask()); in TEST() 130 EXPECT_EQ(Options::Language::JAVA, options->TargetLanguage()); in TEST() 131 EXPECT_EQ(true, options->FailOnParcelable()); in TEST() [all …]
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 33 #define EXPECT_NULL(x) EXPECT_EQ((void*)0, x) 46 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); \ 57 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST() 58 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST() 59 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST() 60 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST() 71 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST() 72 EXPECT_EQ((size_t)1, get_camera_metadata_entry_capacity(m)); in TEST() 73 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST() 74 EXPECT_EQ((size_t)0, get_camera_metadata_data_capacity(m)); in TEST() [all …]
|
/system/memory/libmeminfo/ |
D | libmeminfo_test.cpp | 51 EXPECT_EQ(usage.rss, 0); in TEST() 52 EXPECT_EQ(usage.vss, 0); in TEST() 53 EXPECT_EQ(usage.pss, 0); in TEST() 54 EXPECT_EQ(usage.uss, 0); in TEST() 55 EXPECT_EQ(usage.swap, 0); in TEST() 194 EXPECT_EQ(wss.rss, 0); in TEST() 195 EXPECT_EQ(wss.vss, 0); in TEST() 196 EXPECT_EQ(wss.pss, 0); in TEST() 197 EXPECT_EQ(wss.uss, 0); in TEST() 198 EXPECT_EQ(wss.swap, 0); in TEST() [all …]
|
/system/core/liblog/tests/ |
D | liblog_global_state.cpp | 37 EXPECT_EQ(DEFAULT, log_id); in TEST() 38 EXPECT_EQ(expected_severity, severity); in TEST() 40 EXPECT_EQ(expected_file, file); in TEST() 41 EXPECT_EQ(expected_line, line); in TEST() 42 EXPECT_EQ(expected_message, message); in TEST() 64 EXPECT_EQ(sizeof(__android_log_message), log_message->struct_size); in TEST() 65 EXPECT_EQ(LOG_ID_DEFAULT, log_message->buffer_id); in TEST() 66 EXPECT_EQ(ANDROID_LOG_WARN, log_message->priority); in TEST() 68 EXPECT_EQ(expected_file, log_message->file); in TEST() 69 EXPECT_EQ(expected_line, log_message->line); in TEST() [all …]
|
/system/extras/libfscrypt/tests/ |
D | fscrypt_test.cpp | 36 EXPECT_EQ(outstring, options_string); in TestString() 62 EXPECT_EQ(1, options.version); in TEST() 63 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST() 64 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST() 65 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_4, options.flags); in TEST() 70 EXPECT_EQ(2, options.version); in TEST() 71 EXPECT_EQ(FSCRYPT_MODE_AES_256_XTS, options.contents_mode); in TEST() 72 EXPECT_EQ(FSCRYPT_MODE_AES_256_CTS, options.filenames_mode); in TEST() 73 EXPECT_EQ(FSCRYPT_POLICY_FLAGS_PAD_16, options.flags); in TEST() 81 EXPECT_EQ(1, options.version); in TEST() [all …]
|
/system/connectivity/wifilogd/tests/ |
D | protocol_unittest.cpp | 42 EXPECT_EQ(tagLen, ascii_message_header.tag_len); in TEST() 43 EXPECT_EQ(dataLen, ascii_message_header.data_len); in TEST() 53 EXPECT_EQ(tagLen, ascii_message_header.tag_len); in TEST() 54 EXPECT_EQ(dataLen, ascii_message_header.data_len); in TEST() 61 EXPECT_EQ(0U, offsetof(AsciiMessage, data_len)); in TEST() 62 EXPECT_EQ(2U, sizeof(AsciiMessage::data_len)); in TEST() 64 EXPECT_EQ(2U, offsetof(AsciiMessage, tag_len)); in TEST() 65 EXPECT_EQ(1U, sizeof(AsciiMessage::tag_len)); in TEST() 67 EXPECT_EQ(3U, offsetof(AsciiMessage, severity)); in TEST() 68 EXPECT_EQ(1U, sizeof(AsciiMessage::severity)); in TEST() [all …]
|
/system/bt/test/suite/adapter/ |
D | adapter_unittest.cc | 35 EXPECT_EQ(GetState(), BT_STATE_OFF) in TEST_F() 38 EXPECT_EQ(bt_interface()->enable(), BT_STATUS_SUCCESS); in TEST_F() 40 EXPECT_EQ(GetState(), BT_STATE_ON) << "Adapter did not turn on."; in TEST_F() 42 EXPECT_EQ(bt_interface()->disable(), BT_STATUS_SUCCESS); in TEST_F() 44 EXPECT_EQ(GetState(), BT_STATE_OFF) << "Adapter did not turn off."; in TEST_F() 48 EXPECT_EQ(GetState(), BT_STATE_OFF) in TEST_F() 52 EXPECT_EQ(bt_interface()->enable(), BT_STATUS_SUCCESS); in TEST_F() 54 EXPECT_EQ(GetState(), BT_STATE_ON) << "Adapter did not turn on."; in TEST_F() 56 EXPECT_EQ(bt_interface()->disable(), BT_STATUS_SUCCESS); in TEST_F() 58 EXPECT_EQ(GetState(), BT_STATE_OFF) << "Adapter did not turn off."; in TEST_F() [all …]
|
/system/bt/osi/test/ |
D | ringbuffer_test.cc | 9 EXPECT_EQ((size_t)4096, ringbuffer_available(rb)); in TEST() 10 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 20 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 21 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 25 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 26 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 27 EXPECT_EQ((size_t)10, peeked); in TEST() 41 EXPECT_EQ((size_t)5, added); in TEST() 42 EXPECT_EQ((size_t)0, ringbuffer_available(rb)); in TEST() 43 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() [all …]
|
/system/nfc/utils/test/ |
D | ringbuffer_test.cc | 8 EXPECT_EQ((size_t)4096, ringbuffer_available(rb)); in TEST() 9 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 19 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 20 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 24 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 25 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 26 EXPECT_EQ((size_t)10, peeked); in TEST() 40 EXPECT_EQ((size_t)5, added); in TEST() 41 EXPECT_EQ((size_t)0, ringbuffer_available(rb)); in TEST() 42 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() [all …]
|
/system/keymaster/tests/ |
D | keymaster_configuration_test.cpp | 36 EXPECT_EQ(612334U, GetOsVersion("61.23.34")); in TEST() 37 EXPECT_EQ(680000U, GetOsVersion("681.23.24")); in TEST() 38 EXPECT_EQ(682300U, GetOsVersion("68.231.24")); in TEST() 39 EXPECT_EQ(682324U, GetOsVersion("68.23.241")); in TEST() 40 EXPECT_EQ(60102U, GetOsVersion("6.1.2-extrajunk")); in TEST() 41 EXPECT_EQ(0U, GetOsVersion("extra6.1.2")); in TEST() 47 EXPECT_EQ(60000U, GetOsVersion("6")); in TEST() 48 EXPECT_EQ(680000U, GetOsVersion("68")); in TEST() 49 EXPECT_EQ(680000U, GetOsVersion("681")); in TEST() 50 EXPECT_EQ(60000U, GetOsVersion("6.junk")); in TEST() [all …]
|
/system/core/healthd/tests/ |
D | AnimationParser_test.cpp | 68 EXPECT_EQ(CENTER_VAL, out.pos_x); in TEST() 69 EXPECT_EQ(CENTER_VAL, out.pos_y); in TEST() 70 EXPECT_EQ(TEST_R, out.color_r); in TEST() 71 EXPECT_EQ(TEST_G, out.color_g); in TEST() 72 EXPECT_EQ(TEST_B, out.color_b); in TEST() 73 EXPECT_EQ(TEST_A, out.color_a); in TEST() 77 EXPECT_EQ(CENTER_VAL, out.pos_x); in TEST() 78 EXPECT_EQ(TEST_Y, out.pos_y); in TEST() 79 EXPECT_EQ(TEST_R, out.color_r); in TEST() 80 EXPECT_EQ(TEST_G, out.color_g); in TEST() [all …]
|
/system/bt/bta/test/gatt/ |
D | database_builder_test.cc | 64 EXPECT_EQ(service->handle, 0x0001); in TEST() 65 EXPECT_EQ(service->end_handle, 0x0001); in TEST() 66 EXPECT_EQ(service->is_primary, true); in TEST() 67 EXPECT_EQ(service->uuid, SERVICE_1_UUID); in TEST() 85 EXPECT_EQ(service->handle, 0x0001); in TEST() 86 EXPECT_EQ(service->end_handle, 0x000f); in TEST() 87 EXPECT_EQ(service->is_primary, true); in TEST() 88 EXPECT_EQ(service->uuid, SERVICE_1_UUID); in TEST() 90 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST() 91 EXPECT_EQ(service->characteristics[0].declaration_handle, 0x0002); in TEST() [all …]
|