Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 564) sorted by relevance

12345678910>>...23

/system/chre/util/tests/
Dtime_test.cc41 Seconds t(5); in TEST() local
42 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST()
46 Seconds t(UINT64_MAX / kOneSecondInNanoseconds + 1); in TEST() local
47 EXPECT_EQ(t.toRawNanoseconds(), UINT64_MAX); in TEST()
51 Seconds t(5); in TEST() local
52 EXPECT_EQ(t.getMilliseconds(), 5 * kOneSecondInMilliseconds); in TEST()
56 Seconds t(UINT64_MAX / kOneSecondInMilliseconds + 1); in TEST() local
57 EXPECT_EQ(t.getMilliseconds(), UINT64_MAX); in TEST()
62 Milliseconds t; in TEST() local
63 EXPECT_EQ(t.getMilliseconds(), 0); in TEST()
[all …]
/system/core/libutils/
DTimers.cpp41 timespec t = {}; in systemTime() local
42 clock_gettime(clocks[clock], &t); in systemTime()
43 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
53 timeval t = {}; in systemTime() local
54 gettimeofday(&t, nullptr); in systemTime()
55 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
/system/libufdt/tests/
Drun_performance_test.sh113 for t in $(seq 200 50 1000); do
114 run_performance_test 2 0 $t 100 100
117 for t in $(seq 200 50 1000); do
118 run_performance_test 2 $t $t 100 100
121 for t in $(seq 50 50 1000); do
122 run_performance_test 2 0 2000 $t 0
125 for t in $(seq 50 50 1000); do
126 run_performance_test 2 0 2000 0 $t
/system/chre/external/flatbuffers/include/flatbuffers/
Dbase.h265 template<typename T> FLATBUFFERS_CONSTEXPR inline bool IsConstTrue(T t) { in IsConstTrue() argument
266 return !!t; in IsConstTrue()
319 template<typename T> T EndianSwap(T t) { in EndianSwap() argument
341 return t; in EndianSwap()
343 union { T t; uint16_t i; } u = { t }; in EndianSwap() member
345 return u.t; in EndianSwap()
347 union { T t; uint32_t i; } u = { t }; in EndianSwap() member
349 return u.t; in EndianSwap()
351 union { T t; uint64_t i; } u = { t }; in EndianSwap() member
353 return u.t; in EndianSwap()
[all …]
/system/tools/aidl/
Daidl_dumpapi.cpp92 void DumpVisitor::Visit(const AidlInterface& t) { in Visit() argument
93 DumpType(t, "interface"); in Visit()
95 void DumpVisitor::Visit(const AidlParcelable& t) { in Visit() argument
96 DumpType(t, "parcelable"); in Visit()
98 void DumpVisitor::Visit(const AidlStructuredParcelable& t) { in Visit() argument
99 DumpType(t, "parcelable"); in Visit()
101 void DumpVisitor::Visit(const AidlUnionDecl& t) { in Visit() argument
102 DumpType(t, "union"); in Visit()
104 void DumpVisitor::Visit(const AidlEnumDeclaration& t) { in Visit() argument
105 DumpComments(t); in Visit()
[all …]
Daidl_dumpapi.h33 void Visit(const AidlInterface& t) override;
34 void Visit(const AidlParcelable& t) override;
35 void Visit(const AidlStructuredParcelable& t) override;
36 void Visit(const AidlUnionDecl& t) override;
37 void Visit(const AidlEnumDeclaration& t) override;
42 void Visit(const AidlTypeSpecifier& t) override;
Daidl_typenames.cpp218 for (const auto& t : d->DefinedTypes()) { in AllDefinedTypes() local
219 res.push_back(t.get()); in AllDefinedTypes()
249 [this](const auto& t) { return CanBeJavaOnlyImmutable(*t); }); in CanBeJavaOnlyImmutable() argument
257 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeJavaOnlyImmutable() local
258 if (t == nullptr) { in CanBeJavaOnlyImmutable()
263 if (t->AsEnumDeclaration()) { in CanBeJavaOnlyImmutable()
266 return t->IsJavaOnlyImmutable(); in CanBeJavaOnlyImmutable()
281 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeFixedSize() local
282 AIDL_FATAL_IF(t == nullptr, type) in CanBeFixedSize()
285 if (t->AsEnumDeclaration()) { in CanBeFixedSize()
[all …]
/system/extras/tests/workloads/
Dfeedly-chrome.sh45 t=$(forceStartActivity feedly)
47 echo Feedly start time = ${t}ms
50 t=$(forceStartActivity chrome)
52 echo Chrome start time = ${t}ms
64 t=$(startActivity feedly)
65 if [ $(checkStartTime "$t" $feedlySwitchToTime) != true ]; then
66 handleError Feedly took too long to start: $t v $feedlySwitchToTime: $?
72 echo feedly started in ${t}ms
/system/extras/tests/timetest/
Dtimetest.c15 struct timespec t; in nanotime() local
17 if(clock_gettime(CLOCK_MONOTONIC, &t)) { in nanotime()
22 return (((long long) t.tv_sec) * 1000000000LL) + in nanotime()
23 ((long long) t.tv_nsec); in nanotime()
80 struct timespec t, dt; in main() local
81 clock_gettime(clock_id, &t); in main()
82 dt = ts_sub(t, t1); in main()
83 t1 = t; in main()
91 t.tv_sec, t.tv_nsec, dt.tv_sec, dt.tv_nsec, in main()
/system/tools/aidl/build/
Daidl_interface_metadata_singleton.go93 switch t := m.(type) {
95 info := moduleInfos[t.ModuleBase.Name()]
96 info.Stability = proptools.StringDefault(t.properties.Stability, "")
97 info.ComputedTypes = t.computedTypes
98 moduleInfos[t.ModuleBase.Name()] = info
100 info := moduleInfos[t.properties.BaseName]
101 if t.hashFile != nil {
102 info.HashFiles = append(info.HashFiles, t.hashFile.String())
104 moduleInfos[t.properties.BaseName] = info
Daidl_test.go57 func _testAidl(t *testing.T, bp string, customizers ...android.FixturePreparer) android.FixturePrep…
58 t.Helper()
178 func testAidl(t *testing.T, bp string, customizers ...android.FixturePreparer) (*android.TestContex…
179 t.Helper()
180 preparer := _testAidl(t, bp, customizers...)
181 result := preparer.RunTest(t)
185 func testAidlError(t *testing.T, pattern, bp string, customizers ...android.FixturePreparer) {
186 t.Helper()
187 preparer := _testAidl(t, bp, customizers...)
190 RunTest(t)
[all …]
/system/memory/libmemunreachable/
DScopedAlarm.h38 itimerval t = itimerval{}; in ScopedAlarm()
39 t.it_value.tv_sec = s.count(); in ScopedAlarm()
40 t.it_value.tv_usec = (us - s).count(); in ScopedAlarm()
41 setitimer(ITIMER_REAL, &t, NULL); in ScopedAlarm()
44 itimerval t = itimerval{}; in ~ScopedAlarm()
45 setitimer(ITIMER_REAL, &t, NULL); in ~ScopedAlarm()
/system/extras/tests/pftest/
Dpftest.c39 struct timespec t; in stop_watch() local
40 t.tv_sec = t.tv_nsec = 0; in stop_watch()
41 clock_gettime(CLOCK_MONOTONIC, &t); in stop_watch()
42 return t.tv_sec*1000000000ULL + t.tv_nsec; in stop_watch()
/system/logging/liblog/include_vndk/log/
Dlog_time.h36 #define LOG_TIME_SEC(t) ((t)->tv_sec) argument
38 #define LOG_TIME_NSEC(t) ((t)->tv_nsec & (UINT32_MAX >> 2)) argument
/system/extras/tests/framebuffer/
Drefresh.c21 struct timespec t; in systemTime() local
22 t.tv_sec = t.tv_nsec = 0; in systemTime()
23 clock_gettime(CLOCK_MONOTONIC, &t); in systemTime()
24 return (int64_t)(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime()
134 int l,t,w,h; in main() local
136 t=0; in main()
140 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); in main()
141 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
/system/extras/memory_replay/
DUtils.h23 struct timespec t = {}; in Nanotime() local
24 clock_gettime(CLOCK_MONOTONIC, &t); in Nanotime()
25 return static_cast<uint64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in Nanotime()
/system/timezone/input_tools/android/common/src/main/java/com/android/libcore/timezone/util/
DErrors.java60 public HaltExecutionException addFatalAndHalt(String msg, Throwable t) in addFatalAndHalt() argument
62 addInternal(msg, t, LEVEL_FATAL); in addFatalAndHalt()
70 public void addError(String msg, Throwable t) { in addError() argument
71 addInternal(msg, t, LEVEL_ERROR); in addError()
101 private void addInternal(String msg, Throwable t, int level) { in addInternal() argument
104 if (t != null) { in addInternal()
107 t.printStackTrace(printWriter); in addInternal()
/system/core/libutils/include/utils/
DStrongPointer.h129 static inline bool operator _op_(const sp<T>& t, const sp<U>& u) { \
130 return t.get() _op_ u.get(); \
133 static inline bool operator _op_(const T* t, const sp<U>& u) { \
134 return t _op_ u.get(); \
137 static inline bool operator _op_(const sp<T>& t, const U* u) { \
138 return t.get() _op_ u; \
141 static inline bool operator _op_(const sp<T>& t, std::nullptr_t) { \
142 return t.get() _op_ nullptr; \
145 static inline bool operator _op_(std::nullptr_t, const sp<T>& t) { \
146 return nullptr _op_ t.get(); \
[all …]
/system/media/audio/include/system/
Daudio-hal-enums.h69 if (strcmp(s, AUDIO_ENUM_STRINGIFY(symbol)) == 0) { *t = symbol; return true; } else
246 inline const char* audio_channel_out_mask_to_string(audio_channel_mask_t t) { in audio_channel_out_mask_to_string() argument
247 switch (t) { in audio_channel_out_mask_to_string()
255 inline const char* audio_channel_in_mask_to_string(audio_channel_mask_t t) { in audio_channel_in_mask_to_string() argument
256 switch (t) { in audio_channel_in_mask_to_string()
264 inline const char* audio_channel_index_mask_to_string(audio_channel_mask_t t) { in audio_channel_index_mask_to_string() argument
265 switch (t) { in audio_channel_index_mask_to_string()
274 inline bool audio_channel_mask_from_string(const char* s, audio_channel_mask_t* t) { in audio_channel_mask_from_string() argument
302 inline const char* audio_content_type_to_string(audio_content_type_t t) { in audio_content_type_to_string() argument
303 switch (t) { in audio_content_type_to_string()
[all …]
/system/teeui/libteeui/include/teeui/
Dmsg_formatting.h37 std::tuple<T...>&& t) { in tuple_move_helper() argument
38 return {std::move(std::get<idx>(t))...}; in tuple_move_helper()
42 std::tuple<std::remove_reference_t<T>&&...> tuple_move(std::tuple<T...>&& t) { in tuple_move() argument
43 return tuple_move_helper(std::make_index_sequence<sizeof...(T)>(), std::move(t)); in tuple_move()
47 std::tuple<std::remove_reference_t<T>&&...> tuple_move(std::tuple<T...>& t) { in tuple_move() argument
48 return tuple_move_helper(std::make_index_sequence<sizeof...(T)>(), std::move(t)); in tuple_move()
168 std::tuple<T&&...> tuple_tail(std::index_sequence<first_idx, idx...>, std::tuple<HEAD, T...>&& t) {
169 return {std::move(std::get<idx>(t))...};
174 const std::tuple<HEAD, T...>& t) {
175 return {std::get<idx>(t)...};
[all …]
/system/sepolicy/prebuilts/api/31.0/private/
Dtechnical_debt.cil9 ; Unfortunately, we can't currently express this in module policy language:
16 ; Unfortunately, we can't currently express this in module policy language:
20 ; Unfortunately, we can't currently express this in module policy language:
24 ; Unfortunately, we can't currently express this in module policy language:
28 ; Unfortunately, we can't currently express this in module policy language:
33 ; Unfortunately, we can't currently express this in module policy language:
38 ; Unfortunately, we can't currently express this in module policy language:
43 ; Unfortunately, we can't currently express this in module policy language:
48 ; Unfortunately, we can't currently express this in module policy language:
54 ; Unfortunately, we can't currently express this in module policy language:
[all …]
/system/sepolicy/private/
Dtechnical_debt.cil9 ; Unfortunately, we can't currently express this in module policy language:
16 ; Unfortunately, we can't currently express this in module policy language:
20 ; Unfortunately, we can't currently express this in module policy language:
24 ; Unfortunately, we can't currently express this in module policy language:
28 ; Unfortunately, we can't currently express this in module policy language:
33 ; Unfortunately, we can't currently express this in module policy language:
38 ; Unfortunately, we can't currently express this in module policy language:
43 ; Unfortunately, we can't currently express this in module policy language:
48 ; Unfortunately, we can't currently express this in module policy language:
54 ; Unfortunately, we can't currently express this in module policy language:
[all …]
/system/media/audio_utils/include/audio_utils/
Dvariadic_utils.h153 const T& t,
159 auto& operator<<(std::basic_ostream<charT, traits>& os, const T& t) { \
160 return ostream_variadic(os, t, std::make_index_sequence<std::tuple_size<T>::value>{}); \
167 const T& t,
171 int temp[] __attribute__((unused)) = { (os << (I == 0 ? "" : ", ") << std::get<I>(t), 0) ... };
191 constexpr auto fold(Op&& op __attribute__((unused)), T&& t) {
192 return std::get<index>(std::forward<T>(t));
198 constexpr auto fold(Op&& op, T&& t) {
199 return op(fold<index - 1>(std::forward<Op>(op), t), std::get<index>(std::forward<T>(t)));
205 constexpr auto fold(Op&& op, T&& t) {
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Dtechnical_debt.cil9 ; Unfortunately, we can't currently express this in module policy language:
16 ; Unfortunately, we can't currently express this in module policy language:
20 ; Unfortunately, we can't currently express this in module policy language:
24 ; Unfortunately, we can't currently express this in module policy language:
28 ; Unfortunately, we can't currently express this in module policy language:
33 ; Unfortunately, we can't currently express this in module policy language:
38 ; Unfortunately, we can't currently express this in module policy language:
43 ; Unfortunately, we can't currently express this in module policy language:
48 ; Unfortunately, we can't currently express this in module policy language:
54 ; Unfortunately, we can't currently express this in module policy language:
[all …]
/system/extras/tests/ext4/
Drand_emmc_perf.c53 struct timeval t; in print_stats() local
73 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); in print_stats()
74 if (timercmp(&t, &max, >)) { in print_stats()
75 max = t; in print_stats()
78 fprintf(full_stats, "%lld\n", (t.tv_sec * 1000000LL) + t.tv_usec); in print_stats()
80 timeradd(&sum, &t, &sum); in print_stats()
100 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); /* Xi */ in print_stats()
101 x = (t.tv_sec * 1000000LL) + t.tv_usec; /* Convert to long long */ in print_stats()

12345678910>>...23