Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 3142) sorted by relevance

12345678910>>...126

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dok.pass.cpp32 ASSERT_NOEXCEPT( std::declval<const year_month_day>().ok()); in main()
33 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_day>().ok())); in main()
35 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main()
37 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main()
38 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main()
39 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main()
41 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main()
42 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main()
43 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main()
45 static_assert( year_month_day{year{2019}, January, day{1}}.ok(), ""); // All OK in main()
[all …]
/external/libvpx/libvpx/vpx_util/
Dvpx_thread.h133 int ok = 1; in pthread_cond_destroy() local
137 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy()
138 ok &= (CloseHandle(condition->received_sem_) != 0); in pthread_cond_destroy()
139 ok &= (CloseHandle(condition->signal_event_) != 0); in pthread_cond_destroy()
141 return !ok; in pthread_cond_destroy()
163 int ok = 1; in pthread_cond_broadcast() local
169 ok &= SetEvent(condition->signal_event_); in pthread_cond_broadcast()
172 ok &= (WaitForSingleObject(condition->received_sem_, INFINITE) != in pthread_cond_broadcast()
176 return !ok; in pthread_cond_broadcast()
180 int ok = 1; in pthread_cond_signal() local
[all …]
/external/libaom/libaom/aom_util/
Daom_thread.h131 int ok = 1; in pthread_cond_destroy() local
135 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy()
136 ok &= (CloseHandle(condition->received_sem_) != 0); in pthread_cond_destroy()
137 ok &= (CloseHandle(condition->signal_event_) != 0); in pthread_cond_destroy()
139 return !ok; in pthread_cond_destroy()
161 int ok = 1; in pthread_cond_signal() local
167 ok = SetEvent(condition->signal_event_); in pthread_cond_signal()
170 ok &= (WaitForSingleObject(condition->received_sem_, INFINITE) != in pthread_cond_signal()
174 return !ok; in pthread_cond_signal()
178 int ok = 1; in pthread_cond_broadcast() local
[all …]
/external/u-boot/fs/yaffs2/
Dyaffs_yaffs2.c268 int ok; in yaffs2_rd_checkpt_validity_marker() local
270 ok = (yaffs2_checkpt_rd(dev, &cp, sizeof(cp)) == sizeof(cp)); in yaffs2_rd_checkpt_validity_marker()
272 if (ok) in yaffs2_rd_checkpt_validity_marker()
273 ok = (cp.struct_type == sizeof(cp)) && in yaffs2_rd_checkpt_validity_marker()
277 return ok ? 1 : 0; in yaffs2_rd_checkpt_validity_marker()
314 int ok; in yaffs2_wr_checkpt_dev() local
320 ok = (yaffs2_checkpt_wr(dev, &cp, sizeof(cp)) == sizeof(cp)); in yaffs2_wr_checkpt_dev()
321 if (!ok) in yaffs2_wr_checkpt_dev()
326 ok = (yaffs2_checkpt_wr(dev, dev->block_info, n_bytes) == n_bytes); in yaffs2_wr_checkpt_dev()
327 if (!ok) in yaffs2_wr_checkpt_dev()
[all …]
/external/grpc-grpc/test/cpp/common/
Dalarm_test.cc41 bool ok; in TEST() local
43 cq.AsyncNext(&output_tag, &ok, grpc_timeout_seconds_to_deadline(10)); in TEST()
46 EXPECT_TRUE(ok); in TEST()
61 std::chrono::system_clock::now() + std::chrono::seconds(1), [c](bool ok) { in TEST() argument
62 EXPECT_TRUE(ok); in TEST()
78 alarm.experimental().Set(grpc_timeout_seconds_to_deadline(0), [c](bool ok) { in TEST() argument
79 EXPECT_TRUE(ok); in TEST()
97 [c](bool ok) { in TEST() argument
98 EXPECT_TRUE(ok); in TEST()
114 bool ok; in TEST() local
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dok.pass.cpp34 ASSERT_NOEXCEPT( std::declval<const year_month_weekday>().ok()); in main()
35 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday>().ok())); in main()
37 static_assert(!year_month_weekday{}.ok(), ""); in main()
39 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main()
41 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
42 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
43 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main()
45 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
46 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main()
47 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{} }.ok(), ""); /… in main()
[all …]
/external/brotli/python/
D_brotli.cc93 BROTLI_BOOL ok = BROTLI_TRUE; in compress_stream() local
101 while (ok) { in compress_stream()
102 ok = BrotliEncoderCompressStream(enc, op, in compress_stream()
105 if (!ok) in compress_stream()
122 return ok; in compress_stream()
176 int ok; in brotli_Compressor_init() local
180 ok = PyArg_ParseTupleAndKeywords(args, keywds, "|O&O&O&O&:Compressor", in brotli_Compressor_init()
186 if (!ok) in brotli_Compressor_init()
227 BROTLI_BOOL ok = BROTLI_TRUE; in brotli_Compressor_process() local
230 ok = (BROTLI_BOOL)PyArg_ParseTuple(args, "y*:process", &input); in brotli_Compressor_process()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dok.pass.cpp34 ASSERT_NOEXCEPT( std::declval<const year_month_weekday_last>().ok()); in main()
35 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year_month_weekday_last>().ok())); in main()
37 …static_assert(!year_month_weekday_last{year{-32768}, month{}, weekday_last{weekday{}}}.ok(), "");… in main()
39 …static_assert(!year_month_weekday_last{year{-32768}, January, weekday_last{Tuesday}}.ok(), "");… in main()
40 …static_assert(!year_month_weekday_last{year{2019}, month{}, weekday_last{Tuesday}}.ok(), "");… in main()
41 …static_assert(!year_month_weekday_last{year{2019}, January, weekday_last{weekday{7}}}.ok(), "");… in main()
43 …static_assert(!year_month_weekday_last{year{-32768}, month{}, weekday_last{Tuesday}}.ok(), "");… in main()
44 …static_assert(!year_month_weekday_last{year{2019}, month{}, weekday_last{weekday{7}}}.ok(), "");… in main()
45 …static_assert(!year_month_weekday_last{year{-32768}, January, weekday_last{weekday{7}}}.ok(), "");… in main()
47 …static_assert( year_month_weekday_last{year{2019}, January, weekday_last{Tuesday}}.ok(), "");… in main()
[all …]
/external/grpc-grpc/test/cpp/util/
Dcli_call.cc67 bool ok; in CliCall() local
68 cq_.Next(&got_tag, &ok); in CliCall()
69 GPR_ASSERT(ok); in CliCall()
79 bool ok; in Write() local
85 cq_.Next(&got_tag, &ok); in Write()
86 GPR_ASSERT(ok); in Write()
92 bool ok; in Read() local
97 if (!cq_.Next(&got_tag, &ok) || !ok) { in Read()
101 GPR_ASSERT(recv_buffer.Dump(&slices).ok()); in Read()
116 bool ok; in WritesDone() local
[all …]
/external/tensorflow/tensorflow/stream_executor/
Dstream_test.cc36 EXPECT_FALSE(stream.ok()); in TEST_F()
43 EXPECT_TRUE(stream.ok()); in TEST_F()
50 EXPECT_TRUE(stream.ok()); in TEST_F()
54 EXPECT_TRUE(sub_stream1->ok()); in TEST_F()
59 EXPECT_TRUE(sub_stream2->ok()); in TEST_F()
71 EXPECT_TRUE(stream.ok()); in TEST_F()
75 EXPECT_TRUE(sub_stream1->ok()); in TEST_F()
77 EXPECT_TRUE(sub_stream2->ok()); in TEST_F()
86 EXPECT_TRUE(sub_stream3->ok()); in TEST_F()
93 EXPECT_TRUE(sub_stream4->ok()); in TEST_F()
[all …]
/external/mdnsresponder/mDNSWindows/DLLX/
DTXTRecord.cpp46 BOOL ok; in SetValue() local
66 ok = BSTRToUTF8( key, keyUTF8 ); in SetValue()
68 require_action( ok, exit, hr = S_FALSE ); in SetValue()
72 ok = VariantToByteArray( &value, valueArray ); in SetValue()
74 require_action( ok, exit, hr = S_FALSE ); in SetValue()
108 BOOL ok; in RemoveValue() local
114 ok = BSTRToUTF8( key, keyUTF8 ); in RemoveValue()
116 require_action( ok, exit, hr = S_FALSE ); in RemoveValue()
154 BOOL ok; in ContainsKey() local
158 ok = BSTRToUTF8( key, keyUTF8 ); in ContainsKey()
[all …]
DDNSSDService.cpp288 BOOL ok; in Browse() local
304 ok = BSTRToUTF8( regtype, regtypeUTF8 ); in Browse()
306 require_action( ok, exit, err = kDNSServiceErr_BadParam ); in Browse()
308 ok = BSTRToUTF8( domain, domainUTF8 ); in Browse()
310 require_action( ok, exit, err = kDNSServiceErr_BadParam ); in Browse()
398 BOOL ok; in Resolve() local
414 ok = BSTRToUTF8( serviceName, serviceNameUTF8 ); in Resolve()
416 require_action( ok, exit, err = kDNSServiceErr_BadParam ); in Resolve()
418 ok = BSTRToUTF8( regType, regTypeUTF8 ); in Resolve()
420 require_action( ok, exit, err = kDNSServiceErr_BadParam ); in Resolve()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_state_inlines.h216 boolean ok; in i915_validate_vertices() local
220 ok = (nr >= 1); in i915_validate_vertices()
221 assert(ok); in i915_validate_vertices()
224 ok = (nr >= 2) && (nr % 2) == 0; in i915_validate_vertices()
225 assert(ok); in i915_validate_vertices()
228 ok = (nr >= 2); in i915_validate_vertices()
229 assert(ok); in i915_validate_vertices()
232 ok = (nr >= 3) && (nr % 3) == 0; in i915_validate_vertices()
233 assert(ok); in i915_validate_vertices()
236 ok = (nr >= 3); in i915_validate_vertices()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/data/paths/
DmissingOk.txt7 //ldml/numbers/currencies/currency[@type="%A"]/symbol ; ok
8 …ype="%A"]/quarters/quarterContext[@type="%A"]/quarterWidth[@type="narrow"]/quarter[@type="%A"] ; ok
9 #//ldml/localeDisplayNames/measurementSystemNames/measurementSystemName[@type="U[SK]"] ; ok
10 …ts/dateTimeFormatLength[@type="%A"]/dateTimeFormat[@type="standard"]/pattern[@type="standard"] ; ok
11 #//ldml/localeDisplayNames/localeDisplayPattern/locale(KeyTypePattern|Pattern|Separator) ; ok
12 #//ldml/listPatterns/listPattern/listPatternPart[@type="(middle|start)"] ; ok
13 #//ldml/dates/timeZoneNames/gmtZeroFormat ; ok
14 //ldml/numbers/defaultNumberingSystem ; ok
15 //ldml/numbers/otherNumberingSystems/native ; ok
16 //ldml/localeDisplayNames/variants/variant[@type="%A"] ; ok
[all …]
/external/python/cpython2/Tools/scripts/
Difdef.py54 ok = 1
65 if ok: fpo.write(line)
71 if ok: fpo.write(line)
80 stack.append((ok, ko, word))
81 if not ko: ok = 0
83 stack.append((ok, not ko, word))
84 if ko: ok = 0
86 stack.append((ok, -1, word))
87 if ok: fpo.write(line)
89 stack.append((ok, -1, ''))
[all …]
/external/python/cpython3/Tools/scripts/
Difdef.py54 ok = 1
65 if ok: fpo.write(line)
71 if ok: fpo.write(line)
80 stack.append((ok, ko, word))
81 if not ko: ok = 0
83 stack.append((ok, not ko, word))
84 if ko: ok = 0
86 stack.append((ok, -1, word))
87 if ok: fpo.write(line)
89 stack.append((ok, -1, ''))
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/
Dok.pass.cpp31 ASSERT_NOEXCEPT( std::declval<const month_day>().ok()); in main()
32 ASSERT_SAME_TYPE(bool, decltype(std::declval<const month_day>().ok())); in main()
34 static_assert(!month_day{}.ok(), ""); in main()
35 static_assert( month_day{std::chrono::May, day{2}}.ok(), ""); in main()
37 assert(!(month_day(std::chrono::April, day{0}).ok())); in main()
39 assert( (month_day{std::chrono::March, day{1}}.ok())); in main()
43 assert(!(month_day{month{i}, day{ 0}}.ok())); in main()
44 assert( (month_day{month{i}, day{ 1}}.ok())); in main()
45 assert( (month_day{month{i}, day{10}}.ok())); in main()
46 assert( (month_day{month{i}, day{29}}.ok())); in main()
[all …]
/external/boringssl/src/crypto/x509/
Dx509_vfy.c115 static int null_callback(int ok, X509_STORE_CTX *e);
144 static int null_callback(int ok, X509_STORE_CTX *e) in null_callback() argument
146 return ok; in null_callback()
189 int depth, i, ok = 0; in X509_verify_cert() local
273 ok = ctx->get_issuer(&xtmp, ctx, x); in X509_verify_cert()
274 if (ok < 0) { in X509_verify_cert()
282 if (ok > 0) { in X509_verify_cert()
295 ok = 0; in X509_verify_cert()
334 ok = ctx->get_issuer(&xtmp, ctx, x); in X509_verify_cert()
335 if ((ok <= 0) || X509_cmp(x, xtmp)) { in X509_verify_cert()
[all …]
/external/syzkaller/vendor/cloud.google.com/go/internal/optional/
Doptional.go49 x, ok := v.(bool)
50 if !ok {
59 x, ok := v.(string)
60 if !ok {
69 x, ok := v.(int)
70 if !ok {
79 x, ok := v.(uint)
80 if !ok {
89 x, ok := v.(float64)
90 if !ok {
[all …]
/external/capstone/tests/
Dtest_winkernel.cpp126 bool ok = true; in cs_winkernel_vsnprintf_test() local
127 ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "") == 0 && strcmp(buf, "") == 0); in cs_winkernel_vsnprintf_test()
128 ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "0") == 1 && strcmp(buf, "0") == 0); in cs_winkernel_vsnprintf_test()
129ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "012345678") == 9 && strcmp(buf, "012345678") == 0… in cs_winkernel_vsnprintf_test()
130ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "0123456789") == 10 && strcmp(buf, "012345678") ==… in cs_winkernel_vsnprintf_test()
131ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "01234567890") == 11 && strcmp(buf, "012345678") =… in cs_winkernel_vsnprintf_test()
132ok = (ok && cs_snprintf(buf, sizeof(buf), "%s", "0123456789001234567890") == 22 && strcmp(buf, "01… in cs_winkernel_vsnprintf_test()
133 if (!ok) { in cs_winkernel_vsnprintf_test()
/external/webp/src/enc/
Dalpha_enc.c53 int ok = 0; in EncodeLossless() local
89 ok = (VP8LEncodeStream(&config, &picture, bw, 0 /*use_cache*/) == VP8_ENC_OK); in EncodeLossless()
91 ok = ok && !bw->error_; in EncodeLossless()
92 if (!ok) { in EncodeLossless()
114 int ok = 0; in EncodeAlphaInternal() local
138 ok = VP8LBitWriterInit(&tmp_bw, data_size >> 3); in EncodeAlphaInternal()
139 ok = ok && EncodeLossless(alpha_src, width, height, effort_level, in EncodeAlphaInternal()
141 if (ok) { in EncodeAlphaInternal()
158 ok = 1; in EncodeAlphaInternal()
166 ok = ok && VP8BitWriterAppend(&result->bw, &header, ALPHA_HEADER_LEN); in EncodeAlphaInternal()
[all …]
/external/syzkaller/vendor/google.golang.org/grpc/internal/channelz/
Dfuncs.go300 var ok bool
301 if v, ok = c.channels[id]; ok {
304 if v, ok = c.subChannels[id]; ok {
307 if v, ok = c.servers[id]; ok {
310 if v, ok = c.listenSockets[id]; ok {
313 if v, ok = c.normalSockets[id]; ok {
326 var ok bool
327 if _, ok = c.normalSockets[id]; ok {
331 if _, ok = c.subChannels[id]; ok {
335 if _, ok = c.channels[id]; ok {
[all …]
/external/flac/libFLAC/
Dbitwriter.c758 FLAC__bool ok = 1; in FLAC__bitwriter_write_utf8_uint32() local
770 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0xC0 | (val>>6), 8); in FLAC__bitwriter_write_utf8_uint32()
771 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
774 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0xE0 | (val>>12), 8); in FLAC__bitwriter_write_utf8_uint32()
775 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0x80 | ((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
776 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
779 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0xF0 | (val>>18), 8); in FLAC__bitwriter_write_utf8_uint32()
780 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0x80 | ((val>>12)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
781 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0x80 | ((val>>6)&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
782 ok &= FLAC__bitwriter_write_raw_uint32_nocheck(bw, 0x80 | (val&0x3F), 8); in FLAC__bitwriter_write_utf8_uint32()
[all …]
/external/syzkaller/syz-hub/
Dhub_test.go23 ok bool
30 ok: false,
37 ok: false,
44 ok: false,
51 ok: false,
58 ok: false,
65 ok: true,
72 ok: true,
79 ok: true,
86 ok: false,
[all …]
/external/syzkaller/pkg/host/
Dhost_linux.go81 if res, ok := trialSupported[c.NR]; ok {
132 if _, ok := c.Args[0].(*prog.ConstType); ok {
137 fname, ok := extractStringConst(c.Args[0])
138 if !ok {
182 if ok, reason := onlySandboxNone(sandbox); !ok {
194 if ok, reason := onlySandboxNone(sandbox); !ok {
195 return ok, reason
197 fstype, ok := extractStringConst(c.Args[0])
198 if !ok {
223 af, ok := c.Args[0].(*prog.ConstType)
[all …]

12345678910>>...126