Lines Matching refs:m2

477     camera_metadata_t *m2 = copy_camera_metadata(buf, buf_size, m);  in TEST()  local
478 EXPECT_NOT_NULL(m2); in TEST()
479 EXPECT_EQ(buf, (uint8_t*)m2); in TEST()
481 get_camera_metadata_entry_count(m2)); in TEST()
483 get_camera_metadata_data_count(m2)); in TEST()
484 EXPECT_EQ(get_camera_metadata_entry_capacity(m2), in TEST()
485 get_camera_metadata_entry_count(m2)); in TEST()
486 EXPECT_EQ(get_camera_metadata_data_capacity(m2), in TEST()
487 get_camera_metadata_data_count(m2)); in TEST()
494 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
507 EXPECT_EQ(OK, validate_camera_metadata_structure(m2, &buf_size)); in TEST()
531 camera_metadata_t *m2 = copy_camera_metadata(buf, buf_size, m); in TEST() local
532 EXPECT_NOT_NULL(m2); in TEST()
533 EXPECT_EQ(buf, (uint8_t*)m2); in TEST()
535 get_camera_metadata_entry_count(m2)); in TEST()
537 get_camera_metadata_data_count(m2)); in TEST()
538 EXPECT_EQ(get_camera_metadata_entry_capacity(m2), in TEST()
539 get_camera_metadata_entry_count(m2)); in TEST()
540 EXPECT_EQ(get_camera_metadata_data_capacity(m2), in TEST()
541 get_camera_metadata_data_count(m2)); in TEST()
543 (uint8_t*)m2 + get_camera_metadata_size(m2) ); in TEST()
552 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
565 EXPECT_EQ(OK, validate_camera_metadata_structure(m2, &buf_size)); in TEST()
588 camera_metadata_t *m2 = copy_camera_metadata(buf, buf_size, m); in TEST() local
589 EXPECT_NULL(m2); in TEST()
607 camera_metadata_t *m2 = NULL; in TEST() local
609 m2 = allocate_camera_metadata(entry_capacity*2, data_capacity*2); in TEST()
610 EXPECT_NOT_NULL(m2); in TEST()
612 result = append_camera_metadata(m2, m); in TEST()
617 get_camera_metadata_entry_count(m2)); in TEST()
619 get_camera_metadata_data_count(m2)); in TEST()
620 EXPECT_EQ(entry_capacity*2, get_camera_metadata_entry_capacity(m2)); in TEST()
621 EXPECT_EQ(data_capacity*2, get_camera_metadata_data_capacity(m2)); in TEST()
629 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
642 result = append_camera_metadata(m2, m); in TEST()
647 get_camera_metadata_entry_count(m2)); in TEST()
649 get_camera_metadata_data_count(m2)); in TEST()
650 EXPECT_EQ(entry_capacity*2, get_camera_metadata_entry_capacity(m2)); in TEST()
651 EXPECT_EQ(data_capacity*2, get_camera_metadata_data_capacity(m2)); in TEST()
653 for (unsigned int i=0; i < get_camera_metadata_entry_count(m2); i++) { in TEST()
661 result = get_camera_metadata_entry(m2, in TEST()
676 FINISH_USING_CAMERA_METADATA(m2); in TEST()
690 camera_metadata_t *m2 = NULL; in TEST() local
692 m2 = allocate_camera_metadata(entry_capacity-1, data_capacity); in TEST()
693 EXPECT_NOT_NULL(m2); in TEST()
695 result = append_camera_metadata(m2, m); in TEST()
698 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m2)); in TEST()
699 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m2)); in TEST()
702 FINISH_USING_CAMERA_METADATA(m2); in TEST()
717 camera_metadata_t *m2 = NULL; in TEST() local
719 m2 = allocate_camera_metadata(entry_capacity2, data_capacity2); in TEST()
720 EXPECT_NOT_NULL(m2); in TEST()
722 result = append_camera_metadata(m2, m); in TEST()
727 get_camera_metadata_entry_count(m2)); in TEST()
729 get_camera_metadata_data_count(m2)); in TEST()
730 EXPECT_EQ(entry_capacity2, get_camera_metadata_entry_capacity(m2)); in TEST()
731 EXPECT_EQ(data_capacity2, get_camera_metadata_data_capacity(m2)); in TEST()
740 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
753 result = append_camera_metadata(m2, m); in TEST()
756 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_count(m2)); in TEST()
758 get_camera_metadata_data_count(m2)); in TEST()
759 EXPECT_EQ(entry_capacity2, get_camera_metadata_entry_capacity(m2)); in TEST()
760 EXPECT_EQ(data_capacity2, get_camera_metadata_data_capacity(m2)); in TEST()
762 for (unsigned int i=0; i < get_camera_metadata_entry_count(m2); i++) { in TEST()
770 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
784 FINISH_USING_CAMERA_METADATA(m2); in TEST()
1526 camera_metadata_t *m2; in TEST() local
1527 m2 = allocate_camera_metadata(get_camera_metadata_entry_count(m), in TEST()
1529 EXPECT_NOT_NULL(m2); in TEST()
1531 result = append_camera_metadata(m2, m); in TEST()
1534 result = find_camera_metadata_entry(m2, in TEST()
1546 result = update_camera_metadata_entry(m2, in TEST()
1550 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1551 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1562 result = update_camera_metadata_entry(m2, in TEST()
1566 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1567 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1575 result = find_camera_metadata_entry(m2, in TEST()
1585 result = get_camera_metadata_entry(m2, 1, &e); in TEST()
1595 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
1608 result = update_camera_metadata_entry(m2, in TEST()
1612 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1613 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1622 result = find_camera_metadata_entry(m2, in TEST()
1634 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
1645 result = update_camera_metadata_entry(m2, in TEST()
1652 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m2)); in TEST()
1653 EXPECT_EQ(num_data, get_camera_metadata_data_count(m2)); in TEST()
1661 result = find_camera_metadata_entry(m2, in TEST()
1673 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
1700 camera_metadata_t *m2 = reinterpret_cast<camera_metadata_t*>(dst); in TEST() local
1703 get_camera_metadata_size(m2)); in TEST()
1705 get_camera_metadata_compact_size(m2)); in TEST()
1707 get_camera_metadata_entry_count(m2)); in TEST()
1709 get_camera_metadata_entry_capacity(m2)); in TEST()
1711 get_camera_metadata_data_count(m2)); in TEST()
1713 get_camera_metadata_data_capacity(m2)); in TEST()
1719 result = get_camera_metadata_entry(m2, i, &e2); in TEST()
1742 result = get_camera_metadata_entry(m2, 0, &e2); in TEST()
1757 result = update_camera_metadata_entry(m2, 0, in TEST()
1764 result = get_camera_metadata_entry(m2, 0, &e2); in TEST()
1777 EXPECT_EQ(OK, validate_camera_metadata_structure(m2, &m_size)); in TEST()