Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 27) sorted by relevance

12

/system/chre/util/include/chre/util/
Dheap_impl.h31 void siftUp(ContainerType& container, size_t index, in siftUp() argument
33 CHRE_ASSERT(index < container.size()); in siftUp()
37 if (compare(container[parent], container[current])) { in siftUp()
38 container.swap(parent, current); in siftUp()
47 void siftDown(ContainerType& container, size_t index, in siftDown() argument
49 CHRE_ASSERT(index < container.size()); in siftDown()
54 while (index < container.size() - 1) { in siftDown()
58 if (child + 1 < container.size() - 1 && in siftDown()
59 compare(container[child], container[child + 1])) { in siftDown()
65 if (child < container.size() - 1 && in siftDown()
[all …]
Dheap.h39 void push_heap(ContainerType& container, const CompareFunction& compare);
50 void pop_heap(ContainerType& container, const CompareFunction& compare);
63 void remove_heap(ContainerType& container, size_t index,
/system/chre/platform/android/
Dhost_link.cc60 fbs::MessageContainerT container; in sendFlatbufferToHost() local
61 container.message.Set(std::move(message)); in sendFlatbufferToHost()
62 container.host_addr.reset(new fbs::HostAddress(hostClientId)); in sendFlatbufferToHost()
65 auto containerOffset = CreateMessageContainer(builder, &container, nullptr); in sendFlatbufferToHost()
185 fbs::MessageContainerT container; in handleMessageFromHost() local
186 fbs::GetMessageContainer(message)->UnPackTo(&container); in handleMessageFromHost()
187 uint16_t hostClientId = container.host_addr->client_id(); in handleMessageFromHost()
188 switch (container.message.type) { in handleMessageFromHost()
190 handleNanoappMessage(*container.message.AsNanoappMessage()); in handleMessageFromHost()
203 *container.message.AsLoadNanoappRequest()); in handleMessageFromHost()
[all …]
/system/chre/util/tests/
Doptional_test.cc161 Optional<MovableButNonCopyable> container; in TEST() local
162 EXPECT_FALSE(container.has_value()); in TEST()
164 container = std::move(transferee1); in TEST()
165 EXPECT_TRUE(container.has_value()); in TEST()
166 EXPECT_EQ(container->getValue(), kValue1); in TEST()
169 container.reset(); in TEST()
170 EXPECT_FALSE(container.has_value()); in TEST()
172 container = std::move(transferee2); in TEST()
173 EXPECT_TRUE(container.has_value()); in TEST()
174 EXPECT_EQ(container->getValue(), kValue2); in TEST()
/system/chre/host/common/
Dhost_protocol_host.cc52 std::unique_ptr<fbs::MessageContainerT> container = in decodeMessageFromChre() local
54 fbs::ChreMessageUnion& msg = container->message; in decodeMessageFromChre()
56 switch (container->message.type) { in decodeMessageFromChre()
141 const fbs::MessageContainer *container = fbs::GetMessageContainer(message); in extractHostClientIdAndType() local
144 *hostClientId = container->host_addr()->client_id(); in extractHostClientIdAndType()
145 *messageType = container->message_type(); in extractHostClientIdAndType()
159 fbs::MessageContainer *container = fbs::GetMutableMessageContainer(message); in mutateHostClientId() local
162 container->mutable_host_addr()->mutate_client_id(hostClientId); in mutateHostClientId()
/system/security/keystore/
Dauth_token_table.cpp61 typename Container::iterator find_if(Container& container, Predicate pred) { in find_if() argument
62 return std::find_if(container.begin(), container.end(), pred); in find_if()
66 typename Container::iterator remove_if(Container& container, Predicate pred) { in remove_if() argument
67 return std::remove_if(container.begin(), container.end(), pred); in remove_if()
70 template <typename Container> typename Container::iterator min_element(Container& container) { in min_element() argument
71 return std::min_element(container.begin(), container.end()); in min_element()
/system/chre/platform/shared/
Dhost_protocol_chre.cc52 const fbs::MessageContainer *container = fbs::GetMessageContainer(message); in decodeMessageFromHost() local
53 uint16_t hostClientId = container->host_addr()->client_id(); in decodeMessageFromHost()
55 switch (container->message_type()) { in decodeMessageFromHost()
58 container->message()); in decodeMessageFromHost()
78 container->message()); in decodeMessageFromHost()
92 container->message()); in decodeMessageFromHost()
101 container->message()); in decodeMessageFromHost()
112 static_cast<uint8_t>(container->message_type())); in decodeMessageFromHost()
Dhost_protocol_common.cc50 auto container = fbs::CreateMessageContainer( in finalize() local
52 builder.Finish(container); in finalize()
/system/core/libcutils/include/cutils/
Dlist.h32 #define node_to_item(node, container, member) \ argument
33 (container *) (((char*) (node)) - offsetof(container, member))
/system/core/libcutils/include_vndk/cutils/
Dlist.h32 #define node_to_item(node, container, member) \ argument
33 (container *) (((char*) (node)) - offsetof(container, member))
/system/tools/aidl/
Dtype_namespace.h316 std::string container = aidl_type.GetName(); in CanonicalizeContainerType() local
343 if ((container == "List" || container == "java.util.List") && in CanonicalizeContainerType()
349 if ((container == "Map" || container == "java.util.Map") && in CanonicalizeContainerType()
356 LOG(ERROR) << "Unknown find container with name " << container << " and " << args.size() in CanonicalizeContainerType()
/system/core/property_service/libpropertyinfoserializer/
Dtrie_builder.cpp98 std::set<std::string>* container) { in StringPointerFromContainer() argument
100 auto [iterator, _] = container->emplace(string); in StringPointerFromContainer()
Dtrie_builder.h113 std::set<std::string>* container);
/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/
DCameraActivity.java30 .replace(R.id.container, CameraAvgFragment.newInstance()) in onCreate()
DCameraAvgFragment.java423 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
425 return inflater.inflate(R.layout.fragment_camera_avg, container, false); in onCreateView()
/system/media/camera/docs/
Dmetadata_template.mako115 % if prop.container is not None:
116 container="${prop.container}"
136 % if prop.container == 'array':
142 % elif prop.container == 'tuple':
Dmetadata_helpers.py192 if entry.container == 'array':
413 if entry.container == 'array':
487 if entry.container == 'array':
Dhtml.mako267 % if prop.container is not None:
271 % if prop.container == 'array':
275 % elif prop.container == 'tuple':
Dcamera_metadata_tags.mako36 if entry.container == 'array':
Dndk_camera_metadata_tags.mako49 if entry.container == 'array':
DHidlMetadata.mako23 if entry.container == 'array':
/system/chre/host/msm/daemon/
Dchre_daemon.cc186 const fbs::MessageContainer *container = fbs::GetMessageContainer(message); in parseAndEmitLogMessages() local
188 container->message()); in parseAndEmitLogMessages()
706 std::unique_ptr<fbs::MessageContainerT> container = in handleDaemonMessage() local
708 if (container->message.type in handleDaemonMessage()
712 const auto *response = container->message.AsLoadNanoappResponse(); in handleDaemonMessage()
/system/tools/hidl/
Dhidl-gen_y.yy45 void enterScope(AST* /* ast */, Scope** scope, Scope* container) {
46 CHECK(container->parent() == (*scope));
47 *scope = container;
910 CompoundType *container = new CompoundType(
912 enterScope(ast, scope, container);
917 CompoundType *container = static_cast<CompoundType *>(*scope);
918 container->setFields($4);
921 ast->addScopedType(container, *scope);
922 $$ = container;
/system/extras/boottime_tools/io_analysis/
Dcheck_file_read.py59 def add_if_single_block(self, container, size, offset, process_name): argument
62 offsets = container.get(process_name)
65 container[process_name] = offsets
/system/media/audio_utils/tests/
Dprimitives_tests.cpp44 static void zeroFill(T &container) { in zeroFill() argument
45 memset(container.data(), 0, container.size() * sizeof(container[0])); in zeroFill()

12