Searched refs:current (Results 1 - 25 of 75) sorted by relevance

123

/system/sepolicy/tools/fc_sort/
H A Dfc_sort.c8 * account regular expression specificity. With the current
161 /* Insert b's nodes in between the current a node
214 file_context_bucket_t *current; local
221 current = master;
224 while (current) {
226 if (current->next) {
228 current->data =
229 fc_merge(current->data,
230 current->next->data);
234 temp = current
323 file_context_node_t *current; local
[all...]
/system/chre/util/include/chre/util/
H A Dheap_impl.h34 size_t current = index;
35 while (current > 0) {
36 size_t parent = (current - 1) / 2;
37 if (compare(container[parent], container[current])) {
38 container.swap(parent, current);
39 current = parent;
50 size_t current = index;
55 size_t child = 2 * current + 1; // left child
63 // If the current element is not childless and the dominant child dominates
66 compare(container[current], containe
[all...]
/system/extras/showmap/
H A Dshowmap.cpp135 mapinfo *current = *head; local
142 if (current && coalesce_by_name && !strcmp(map->name, current->name)) {
143 current->size += map->size;
144 current->rss += map->rss;
145 current->pss += map->pss;
146 current->shared_clean += map->shared_clean;
147 current->shared_dirty += map->shared_dirty;
148 current->private_clean += map->private_clean;
149 current
179 mapinfo *current = NULL; local
[all...]
/system/update_engine/
H A Dproxy_resolver.cc36 // MessageLoop::current() since the unit test using a FakeSystemState may
37 // have not define a MessageLoop for the current thread.
38 MessageLoop::current()->CancelTask(idle_callback_id_);
45 idle_callback_id_ = MessageLoop::current()->PostTask(
54 return MessageLoop::current()->CancelTask(request);
H A Ddbus_test_utils.h45 brillo::MessageLoop::current()->CancelTask(callback_connected_task_);
60 callback_connected_task_ = brillo::MessageLoop::current()->PostTask(
H A Dreal_system_state.cc135 // options. This initialization here pre-loads current channel and version, so
195 MessageLoop::current()->PostDelayedTask(
203 MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
208 MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
H A Dlibcurl_http_fetcher.cc83 if (!MessageLoop::current()->CancelTask(fd_task_pair->second)) {
450 retry_task_id_ = MessageLoop::current()->PostDelayedTask(
476 retry_task_id_ = MessageLoop::current()->PostTask(
503 retry_task_id_ = MessageLoop::current()->PostDelayedTask(
623 // Note that fd_exc is unused in the current version of libcurl so is_exc
642 MessageLoop::current()->CancelTask(fd_task_it->second);
653 fd_task_maps_[t][fd] = MessageLoop::current()->WatchFileDescriptor(
672 timeout_id_ = MessageLoop::current()->PostDelayedTask(
694 timeout_id_ = MessageLoop::current()->PostDelayedTask(
706 MessageLoop::current()
[all...]
/system/core/libsysutils/src/
H A DSocketClient.cpp134 char *current = result; local
143 *(current++) = '"';
148 *(current++) = '\\'; // fallthrough
150 *(current++) = *(arg++);
153 *(current++) = '"';
154 *(current++) = '\0';
156 result = (char *)realloc(result, current-result);
203 int current = 0; local
212 writev(mSocket, iov + current, iovcnt - current));
[all...]
/system/core/libcutils/
H A Dhashmap.c202 Entry* current = *p; local
205 if (current == NULL) {
217 if (equalKeys(current->key, current->hash, key, hash, map->equals)) {
218 void* oldValue = current->value;
219 current->value = value;
224 p = &current->next;
265 Entry* current = *p; local
268 if (current == NULL) {
282 if (equalKeys(current
297 Entry* current; local
[all...]
/system/core/libunwindstack/
H A DElfInterfaceArm.cpp43 size_t current = (first + last) / 2; local
44 uint32_t addr = addrs_[current];
46 if (!GetPrel31Addr(start_offset_ + current * 8, &addr)) {
49 addrs_[current] = addr;
52 *entry_offset = start_offset_ + current * 8;
56 last = current;
58 first = current + 1;
H A DSymbols.cpp43 size_t current = first + (last - first) / 2; local
44 const Info* info = &symbols_[current];
46 last = current;
50 first = current + 1;
H A DDwarfEhFrame.cpp116 size_t current = (first + last) / 2; local
117 const FdeInfo* info = GetFdeInfoFromIndex(current);
123 last = current;
125 first = current + 1;
163 for (size_t current = fde_info_.size();
164 current < fde_count_ && memory_.cur_offset() < entries_end_; current++) {
172 FdeInfo* info = &fde_info_[current];
174 fde_info_.erase(current);
/system/update_engine/update_manager/
H A Dgeneric_variables_unittest.cc175 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
183 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
203 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
208 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
213 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
218 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
H A Devaluation_context_unittest.cc221 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
228 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
243 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
255 MessageLoopRunMaxIterations(MessageLoop::current(), 10);
257 MessageLoopRunUntil(MessageLoop::current(),
272 MessageLoopRunMaxIterations(MessageLoop::current(), 10);
274 MessageLoopRunUntil(MessageLoop::current(),
299 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
318 MessageLoopRunUntil(MessageLoop::current(),
349 MessageLoopRunUntil(MessageLoop::current(),
[all...]
H A Dreal_device_policy_provider.cc46 MessageLoop::current()->CancelTask(scheduled_refresh_);
75 MessageLoop::current()->CancelTask(scheduled_refresh_);
96 scheduled_refresh_ = MessageLoop::current()->PostDelayedTask(
H A Dvariable_unittest.cc118 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
127 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
176 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
H A Dupdate_manager_unittest.cc59 // Generates a fixed timestamp for use in faking the current time.
257 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
274 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
281 MessageLoopRunMaxIterations(MessageLoop::current(), 10);
302 MessageLoopRunMaxIterations(MessageLoop::current(), 100);
311 MessageLoopRunMaxIterations(MessageLoop::current(), 10);
319 MessageLoopRunMaxIterations(MessageLoop::current(), 10);
/system/core/init/parser/
H A Dtokenizer.h25 // The current token can be accessed with current(), which returns
49 const Token& current();
H A Dtokenizer_test.cpp27 ASSERT_EQ(Tokenizer::TOK_START, tokenizer.current().type)
31 ASSERT_EQ(test_text, tokenizer.current().text); \
32 ASSERT_EQ(Tokenizer::TOK_TEXT, tokenizer.current().type)
36 ASSERT_EQ(Tokenizer::TOK_NEWLINE, tokenizer.current().type)
/system/update_engine/common/
H A Dmock_http_fetcher.cc89 timeout_id_ = MessageLoop::current()->PostDelayedTask(
101 timeout_id_ = MessageLoop::current()->PostDelayedTask(
116 MessageLoop::current()->CancelTask(timeout_id_);
136 MessageLoop::current()->CancelTask(timeout_id_);
H A Dcpu_limiter.cc48 manage_shares_id_ = brillo::MessageLoop::current()->PostDelayedTask(
59 brillo::MessageLoop::current()->CancelTask(manage_shares_id_);
H A Dhttp_fetcher.cc53 no_resolver_idle_id_ = MessageLoop::current()->PostTask(
82 ret = MessageLoop::current()->CancelTask(no_resolver_idle_id_);
H A Dhttp_fetcher_unittest.cc428 MessageLoop::current()->BreakLoop();
436 MessageLoop::current()->BreakLoop();
570 MessageLoop::current()->BreakLoop();
589 *my_id = MessageLoop::current()->PostDelayedTask(
648 MessageLoop::current()->BreakLoop();
665 MessageLoop::current()->BreakLoop();
676 *my_id = MessageLoop::current()->PostTask(
746 MessageLoop::current()->BreakLoop();
815 MessageLoop::current()->BreakLoop();
819 MessageLoop::current()
[all...]
/system/extras/tests/lib/testUtil/
H A DtestUtil.c167 // Obtain pointer to current log to logcat error interface tag
265 struct timespec start, current, delta; local
272 // Get current time
273 clock_gettime(CLOCK_MONOTONIC, &current);
276 delta = tsDelta(&start, &current);
291 struct timespec start, current, delta; local
297 // Get current time
298 clock_gettime(CLOCK_MONOTONIC, &current);
301 delta = tsDelta(&start, &current);
362 // Obtain the current he
[all...]
/system/extras/tests/workloads/
H A Dpwrsummary.sh166 current=$(echo $1 $baselineCurrent | awk '{ printf "%.2f", $1-$2; }')
196 printf "%s,%s,%f,%f,%f,%f,%f,%f," $testdir "$build" $minperf $aveperf $maxperf $current $baselinePower $power
199 printf "%-30s %-8s %12.2f %12.2f %12.2f %12.2f %12.2f %12.2f " $testdir "$build" $minperf $aveperf $maxperf $current $baselinePower $power
231 echo "$i : no baseline current"

Completed in 342 milliseconds

123