/external/libtextclassifier/util/gtl/ |
stl_util.h | 22 // Deletes all the elements in an STL container and clears the container. This 24 // container which defines sensible begin(), end(), and clear() methods. 25 // If container is NULL, this function is a no-op. 27 void STLDeleteElements(T *container) { 28 if (!container) return; 29 auto it = container->begin(); 30 while (it != container->end()) { 35 container->clear(); 38 // Given an STL container consisting of (key, value) pairs, STLDeleteValue [all...] |
/system/chre/util/include/chre/util/ |
heap_impl.h | 31 void siftUp(ContainerType& container, size_t index, 33 CHRE_ASSERT(index < container.size()); 37 if (compare(container[parent], container[current])) { 38 container.swap(parent, current); 47 void siftDown(ContainerType& container, size_t index, 49 CHRE_ASSERT(index < container.size()); 54 while (index < container.size() - 1) { 58 if (child + 1 < container.size() - 1 && 59 compare(container[child], container[child + 1])) [all...] |
/external/freetype/src/raster/ |
rastpic.c | 42 RasterPIC* container = (RasterPIC*)pic_container->raster; local 45 if ( --container->ref_count ) 47 FT_FREE( container ); 58 RasterPIC* container = NULL; local 71 /* allocate pointer, clear and set global container pointer */ 72 if ( FT_ALLOC( container, sizeof ( *container ) ) ) 74 FT_MEM_SET( container, 0, sizeof ( *container ) ); 75 pic_container->raster = container; [all...] |
/external/freetype/src/sfnt/ |
sfntpic.c | 75 sfntModulePIC* container = (sfntModulePIC*)pic_container->sfnt; local 78 if ( container->sfnt_services ) 80 container->sfnt_services ); 81 container->sfnt_services = NULL; 83 if ( container->tt_cmap_classes ) 85 container->tt_cmap_classes ); 86 container->tt_cmap_classes = NULL; 88 FT_FREE( container ); 99 sfntModulePIC* container = NULL; local 103 /* allocate pointer, clear and set global container pointer * [all...] |
/external/tensorflow/tensorflow/contrib/kafka/python/kernel_tests/ |
kafka_test.sh | 21 echo "Usage: $0 start|stop <kafka container name>" >&2 25 container=$2 27 docker run -d --rm --net=host --name=$container spotify/kafka 31 docker exec $container bash -c '/opt/kafka_2.11-0.10.1.0/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test' 33 docker exec $container bash -c 'echo -e "D0\nD1\nD2\nD3\nD4\nD5\nD6\nD7\nD8\nD9" > /test' 35 docker exec $container bash -c '/opt/kafka_2.11-0.10.1.0/bin/kafka-console-producer.sh --topic test --broker-list 127.0.0.1:9092 < /test' 37 echo Container $container started successfully 39 docker rm -f $container 41 echo Container $container stopped successfull [all...] |
/external/freetype/src/autofit/ |
afpic.c | 62 AFModulePIC* container = (AFModulePIC*)pic_container->autofit; local 65 if ( container->af_services ) 67 container->af_services ); 68 container->af_services = NULL; 70 FT_FREE( container ); 82 AFModulePIC* container = NULL; local 86 /* allocate pointer, clear and set global container pointer */ 87 if ( FT_ALLOC ( container, sizeof ( *container ) ) ) 89 FT_MEM_SET( container, 0, sizeof ( *container ) ) [all...] |
/external/freetype/src/truetype/ |
ttpic.c | 52 TTModulePIC* container = (TTModulePIC*)pic_container->truetype; local 55 if ( container->tt_services ) 56 FT_Destroy_Class_tt_services( library, container->tt_services ); 57 container->tt_services = NULL; 58 FT_FREE( container ); 69 TTModulePIC* container = NULL; local 73 /* allocate pointer, clear and set global container pointer */ 74 if ( FT_ALLOC( container, sizeof ( *container ) ) ) 76 FT_MEM_SET( container, 0, sizeof ( *container ) ) [all...] |
/external/freetype/src/psnames/ |
pspic.c | 50 PSModulePIC* container = (PSModulePIC*)pic_container->psnames; local 53 if ( container->pscmaps_services ) 55 container->pscmaps_services ); 56 container->pscmaps_services = NULL; 57 FT_FREE( container ); 68 PSModulePIC* container = NULL; local 72 /* allocate pointer, clear and set global container pointer */ 73 if ( FT_ALLOC( container, sizeof ( *container ) ) ) 75 FT_MEM_SET( container, 0, sizeof ( *container ) ) [all...] |
/external/freetype/src/cff/ |
cffpic.c | 70 CffModulePIC* container = (CffModulePIC*)pic_container->cff; local 73 if ( container->cff_services ) 75 container->cff_services ); 76 container->cff_services = NULL; 77 if ( container->cff_field_handlers ) 79 library, container->cff_field_handlers ); 80 container->cff_field_handlers = NULL; 81 FT_FREE( container ); 92 CffModulePIC* container = NULL; local 96 /* allocate pointer, clear and set global container pointer * [all...] |
/frameworks/rs/rsov/compiler/spirit/ |
stl_util.h | 25 ContainerDeleter(T &container) : mContainer(container) {}
|
/external/google-breakpad/src/testing/gtest/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/external/googletest/googletest/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/external/protobuf/gtest/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/external/v8/testing/gtest/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/prebuilts/ndk/r16/sources/third_party/googletest/googletest/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/prebuilts/ndk/r16/sources/third_party/vulkan/src/tests/gtest-1.7.0/test/ |
gtest-typed-test_test.h | 53 TypeParam container; local 57 TypeParam container; local 58 EXPECT_EQ(0U, container.size());
|
/external/libchrome/base/ |
stl_util.h | 30 template <typename Container, typename Predicate> 31 void IterateAndEraseIf(Container& container, Predicate pred) { 32 for (auto it = container.begin(); it != container.end();) { 34 it = container.erase(it); 54 // Counts the number of instances of val in a container. 55 template <typename Container, typename T> 57 typename Container::const_iterator>::difference_type 58 STLCount(const Container& container, const T& val) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
PagerAdapter.java | 91 * @param container The containing View which is displaying this adapter's 94 public void startUpdate(ViewGroup container) { 95 startUpdate((View) container); 100 * for adding the view to the container given here, although it only 104 * @param container The containing View in which the page will be shown. 107 * need to be a View, but can be some other container of the page. 109 public Object instantiateItem(ViewGroup container, int position) { 110 return instantiateItem((View) container, position); 115 * for removing the view from its container, although it only must ensure 118 * @param container The containing View from which the page will be removed [all...] |
/external/freetype/src/smooth/ |
ftspic.c | 42 SmoothPIC* container = (SmoothPIC*)pic_container->smooth; local 45 if ( --container->ref_count ) 48 FT_FREE( container ); 59 SmoothPIC* container = NULL; local 71 /* allocate pointer, clear and set global container pointer */ 72 if ( FT_ALLOC( container, sizeof ( *container ) ) ) 74 FT_MEM_SET( container, 0, sizeof ( *container ) ); 75 pic_container->smooth = container; [all...] |
/external/freetype/src/pshinter/ |
pshpic.c | 53 PSHinterPIC* container = NULL; local 57 /* allocate pointer, clear and set global container pointer */ 58 if ( FT_ALLOC( container, sizeof ( *container ) ) ) 60 FT_MEM_SET( container, 0, sizeof ( *container ) ); 61 pic_container->pshinter = container; 65 library, &container->pshinter_interface );
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
ClassTest.java | 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 65 @Container({@Repeated(1)}) 69 @Container({@Repeated(2), @Repeated(3)}) 104 Class<Container> container = Container.class; local 106 assertIsAnnotationPresent(SingleAnnotation.class, container, false); 107 assertIsAnnotationPresent(MultipleAnnotation.class, container, true); 108 assertIsAnnotationPresent(MultipleAnnotationExplicitSingle.class, container, true); 109 assertIsAnnotationPresent(MultipleAnnotationOddity.class, container, true) 135 Class<Container> container = Container.class; local 182 Class<Container> container = Container.class; local 238 Class<Container> container = Container.class; local [all...] |
/external/libnetfilter_conntrack/src/ |
callback.c | 38 struct __data_container *container = data; local 46 if (!(type & container->type)) 57 if (container->h->cb) { 58 ret = container->h->cb(type, ct, container->data); 59 } else if (container->h->cb2) { 60 ret = container->h->cb2(nlh, type, ct, 61 container->data); 71 if (container->h->expect_cb) { 72 ret = container->h->expect_cb(type, exp [all...] |
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
AnyTest.java | 47 TestAny container = TestAny.newBuilder() local 50 assertTrue(container.getValue().is(TestAllTypes.class)); 51 assertFalse(container.getValue().is(TestAny.class)); 53 TestAllTypes result = container.getValue().unpack(TestAllTypes.class); 59 TestAny wrongMessage = container.getValue().unpack(TestAny.class); 66 TestAny.Builder containerBuilder = container.toBuilder(); 69 container = containerBuilder.build(); 71 TestAllTypes parsingFailed = container.getValue().unpack(TestAllTypes.class); 83 TestAny container = TestAny.newBuilder() local 88 container.getValue().getTypeUrl()) 128 TestAny container = TestAny.newBuilder() local [all...] |
/external/tensorflow/tensorflow/core/lib/gtl/ |
stl_util.h | 66 // Note: If you're calling this on an entire container, you probably want to 67 // call STLDeleteValues(&container) instead, or use ValueDeleter. 78 // Deletes all the elements in an STL container and clears the container. This 80 // container which defines sensible begin(), end(), and clear() methods. 82 // If container is NULL, this function is a no-op. 84 void STLDeleteElements(T* container) { 85 if (!container) return; 86 auto it = container->begin(); 87 while (it != container->end()) [all...] |