Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 30) 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.cc55 fbs::MessageContainerT container; in sendFlatbufferToHost() local
56 container.message.Set(std::move(message)); in sendFlatbufferToHost()
57 container.host_addr.reset(new fbs::HostAddress(hostClientId)); in sendFlatbufferToHost()
60 auto containerOffset = CreateMessageContainer(builder, &container, nullptr); in sendFlatbufferToHost()
178 fbs::MessageContainerT container; in handleMessageFromHost() local
179 fbs::GetMessageContainer(message)->UnPackTo(&container); in handleMessageFromHost()
180 uint16_t hostClientId = container.host_addr->client_id(); in handleMessageFromHost()
181 switch (container.message.type) { in handleMessageFromHost()
183 handleNanoappMessage(*container.message.AsNanoappMessage()); in handleMessageFromHost()
196 *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.cc53 std::unique_ptr<fbs::MessageContainerT> container = in decodeMessageFromChre() local
55 fbs::ChreMessageUnion &msg = container->message; in decodeMessageFromChre()
57 switch (container->message.type) { in decodeMessageFromChre()
146 const fbs::MessageContainer *container = in extractHostClientIdAndType() local
150 *hostClientId = container->host_addr()->client_id(); in extractHostClientIdAndType()
151 *messageType = container->message_type(); in extractHostClientIdAndType()
165 fbs::MessageContainer *container = fbs::GetMutableMessageContainer(message); in mutateHostClientId() local
168 container->mutable_host_addr()->mutate_client_id(hostClientId); in mutateHostClientId()
Ddaemon_base.cc176 std::unique_ptr<fbs::MessageContainerT> container = in onMessageReceived() local
178 const auto *logMessage = container->message.AsLogMessage(); in onMessageReceived()
184 std::unique_ptr<fbs::MessageContainerT> container = in onMessageReceived() local
186 const auto *logMessage = container->message.AsLogMessageV2(); in onMessageReceived()
231 std::unique_ptr<fbs::MessageContainerT> container = in handleDaemonMessage() local
233 if (container->message.type != fbs::ChreMessage::LoadNanoappResponse) { in handleDaemonMessage()
236 const auto *response = container->message.AsLoadNanoappResponse(); in handleDaemonMessage()
/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 static_cast<const fbs::NanoappMessage *>(container->message()); in decodeMessageFromHost()
78 static_cast<const fbs::LoadNanoappRequest *>(container->message()); in decodeMessageFromHost()
93 container->message()); in decodeMessageFromHost()
102 static_cast<const fbs::TimeSyncMessage *>(container->message()); in decodeMessageFromHost()
114 container->message()); in decodeMessageFromHost()
127 static_cast<uint8_t>(container->message_type())); in decodeMessageFromHost()
Dhost_protocol_common.cc53 auto container = in finalize() local
55 builder.Finish(container); in finalize()
/system/core/libcutils/include_outside_system/cutils/
Dlist.h32 #define node_to_item(node, container, member) \ argument
33 (container *) (((char*) (node)) - offsetof(container, member))
/system/core/libcutils/include/cutils/
Dlist.h32 #define node_to_item(node, container, member) \ argument
33 (container *) (((char*) (node)) - offsetof(container, member))
/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.py194 if entry.container == 'array':
415 if entry.container == 'array':
489 if entry.container == 'array':
Dcamera_metadata_tags.mako36 if entry.container == 'array':
Dhtml.mako267 % if prop.container is not None:
271 % if prop.container == 'array':
275 % elif prop.container == 'tuple':
Dndk_camera_metadata_tags.mako48 if entry.container == 'array':
DHidlMetadata.mako23 if entry.container == 'array':
/system/tools/hidl/
Dhidl-gen_y.yy46 void enterScope(AST* /* ast */, Scope** scope, Scope* container) {
47 CHECK(container->parent() == (*scope));
48 *scope = container;
926 CompoundType *container = new CompoundType(
928 enterScope(ast, scope, container);
933 CompoundType *container = static_cast<CompoundType *>(*scope);
936 ast->addScopedType(container, *scope);
937 $$ = 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/core/fs_mgr/libsnapshot/
Dmake_cow_from_ab_ota.cpp476 ExtentIter(const ContainerType& container) in ExtentIter() argument
477 : iter_(container.cbegin()), end_(container.cend()), dst_index_(0) {} in ExtentIter()
/system/media/audio_utils/tests/
Dprimitives_tests.cpp40 static void zeroFill(T &container) { in zeroFill() argument
41 memset(container.data(), 0, container.size() * sizeof(container[0])); in zeroFill()
/system/apex/docs/
Dhowto.md216 The public key is included in the zip container of the APEX as a file entry
242 ### APK (APEX container) signing
294 [APK (APEX container) signing](#apk-apex-container_signing) sections require the

12