Home
last modified time | relevance | path

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

12345678910>>...52

/aosp12/build/soong/android/
H A Dlicenses_test.go503 if _, ok := m.(*licenseModule); ok {
509 if _, ok := m.(*packageModule); ok {
538 if _, ok := m.(*licenseModule); ok {
544 if _, ok := m.(*packageModule); ok {
603 if _, ok := m.(*licenseModule); ok {
609 if _, ok := m.(*packageModule); ok {
643 if _, ok := m.(*licenseModule); ok {
649 if _, ok := m.(*packageModule); ok {
678 if _, ok := m.(*licenseModule); ok {
684 if _, ok := m.(*packageModule); ok {
[all …]
H A Dlicenses.go127 if !ok {
148 m, ok := ctx.Module().(Module)
149 if !ok {
164 if !ok {
169 if _, ok := m.(*licenseModule); ok {
171 if _, ok := module.(*licenseKindModule); !ok {
183 if _, ok := module.(*licenseModule); !ok {
200 if !ok {
210 if l, ok := module.(*licenseModule); ok {
266 if _, ok := s[l]; ok {
[all …]
/aosp12/frameworks/av/media/libmedia/
H A DMetadata.cpp86 ok = ok && mData->writeInt32(-1) == OK; in appendHeader()
87 ok = ok && mData->writeInt32(kMetaMarker) == OK; in appendHeader()
88 return ok; in appendHeader()
102 ok = ok && mData->writeInt32(key) == OK; in appendBool()
103 ok = ok && mData->writeInt32(BOOLEAN_VAL) == OK; in appendBool()
104 ok = ok && mData->writeInt32(val ? 1 : 0) == OK; in appendBool()
105 if (!ok) { in appendBool()
108 return ok; in appendBool()
122 ok = ok && mData->writeInt32(key) == OK; in appendInt32()
123 ok = ok && mData->writeInt32(INTEGER_VAL) == OK; in appendInt32()
[all …]
/aosp12/frameworks/base/core/java/android/net/
H A Dnetwork-policy-restrictions.md20 * **ok**: network access granted while app on background (NetworkInfo's state/detailed state should…
29 | **DS** | *AL* | ok | blk | ok | ok |
32 | **DS** | *AL* | blk | blk | ok | ok |
33 | **OFF** | *!AL* | blk | blk | ok | ok |
42 | **DS** | *AL* | ok | blk | ok | ok |
43 | **ON** | *!AL* | ok | blk | ok | ok |
44 | | *DL* | ok | blk | ok | ok |
45 | **DS** | *AL* | ok | blk | ok | ok |
46 | **OFF** | *!AL* | ok | blk | ok | ok |
47 | | *DL* | ok | blk | ok | ok |
/aosp12/frameworks/wilhelm/src/
H A DThreadPool.cpp169 int ok; in ThreadPool_deinit_internal() local
176 assert(0 == ok); in ThreadPool_deinit_internal()
179 assert(0 == ok); in ThreadPool_deinit_internal()
181 assert(0 == ok); in ThreadPool_deinit_internal()
183 assert(0 == ok); in ThreadPool_deinit_internal()
279 int ok; in ThreadPool_add() local
281 assert(0 == ok); in ThreadPool_add()
322 assert(0 == ok); in ThreadPool_add()
330 int ok; in ThreadPool_remove() local
332 assert(0 == ok); in ThreadPool_remove()
[all …]
H A Dlocks.cpp46 int ok; in object_lock_exclusive_() local
48 if (0 != ok) { in object_lock_exclusive_()
125 int ok; in object_lock_exclusive() local
127 assert(0 == ok); in object_lock_exclusive()
143 int ok; in object_unlock_exclusive_() local
150 int ok; in object_unlock_exclusive() local
175 int ok; in object_unlock_exclusive_attributes_() local
298 int ok; in object_cond_wait_() local
309 int ok; in object_cond_wait() local
320 int ok; in object_cond_signal() local
[all …]
/aosp12/build/soong/bpfix/bpfix/
H A Dbpfix.go267 if !ok {
279 if !ok {
286 if !ok {
308 if !ok {
354 if !ok {
391 if !ok {
432 if !ok {
448 if !ok {
808 if ok {
824 if srcs, ok := mod.GetProperty("srcs"); ok {
[all …]
/aosp12/build/soong/ui/build/
H A Denvironment.go41 if k, v, ok := decodeKeyValue(envVar); ok {
54 if k, v, ok := decodeKeyValue(envVar); ok && k == key {
64 if v, ok := e.Get(key); ok {
83 if key, _, ok := decodeKeyValue(envVar); ok && inList(key, keys) {
109 if key, _, ok := decodeKeyValue(envVar); ok && inList(key, keys) {
133 if value, ok := e.Get(key); ok {
141 if value, ok := e.Get(key); ok {
180 if !ok {
188 if !ok {
193 if !ok {
[all …]
H A Dconfig.go139 if outDir, ok := ret.environ.Get("OUT_DIR"); ok {
506 if _, ok := specialArgs[arg]; ok {
890 if v, ok := c.environ.Get("USE_GOMA"); ok {
914 if v, ok := c.environ.Get("USE_RBE"); ok {
953 if v, ok := c.environ.Get(f); ok {
965 if v, ok := c.environ.Get(f); ok {
974 if v, ok := c.environ.Get(f); ok {
983 if v, ok := c.environ.Get(f); ok {
995 if v, ok := c.environ.Get("RBE_DIR"); ok {
1003 if v, ok := c.environ.Get(f); ok {
[all …]
/aosp12/build/soong/rust/
H A Dproject_json_test.go58 if !ok {
61 if _, ok = root["crates"]; !ok {
65 if !ok {
74 if !ok {
85 if !ok {
90 if !ok {
94 if !ok {
134 if !ok {
168 if !ok {
211 if !ok {
[all …]
H A Dproject_json.go89 if !ok {
112 if !ok {
118 if src, ok := sourceProviderVariantSource(ctx, rModule); ok {
134 if ok {
171 if !ok {
179 if !ok {
186 if _, ok = deps[child.Name()]; ok {
198 if !ok {
223 if !ok {
262 if !ok {
[all …]
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DContactsPermissions.java39 boolean ok = false; in hasCallerOrSelfPermission()
42 ok = true; // Called by self; always allow. in hasCallerOrSelfPermission()
52 + " ok=" + ok); in hasCallerOrSelfPermission()
54 return ok; in hasCallerOrSelfPermission()
59 if (!ok) { in enforceCallingOrSelfPermission()
66 boolean ok = false; in hasPackagePermission()
78 + " ok=" + ok); in hasPackagePermission()
80 return ok; in hasPackagePermission()
84 boolean ok = false; in hasCallerUriPermission()
96 + " ok=" + ok); in hasCallerUriPermission()
[all …]
/aosp12/build/soong/partner/bpfix/extensions/
H A Dheaders.go42 if op, ok := e.(*parser.Operator); ok {
48 if !ok || !ok1 {
60 if list, ok := e.(*parser.List); ok {
73 if op, ok := e.(*parser.Operator); ok {
80 if !ok {
84 return list, ok
88 if !ok {
96 if stringValue, ok := v.(*parser.String); ok && stringValue.Value == libName {
108 mod, ok := def.(*parser.Module)
109 if !ok {
[all …]
/aosp12/system/bt/service/ipc/binder/
H A Dbluetooth_binder_server.cc58 return Status::ok(); in IsEnabled()
64 return Status::ok(); in GetState()
70 return Status::ok(); in Enable()
77 return Status::ok(); in EnableNoAutoConnect()
83 return Status::ok(); in Disable()
89 return Status::ok(); in GetAddress()
97 return Status::ok(); in GetUUIDs()
104 return Status::ok(); in SetName()
110 return Status::ok(); in GetName()
117 return Status::ok(); in SetScanMode()
[all …]
/aosp12/art/runtime/jni/
H A Djava_vm_ext_test.cc53 EXPECT_EQ(JNI_OK, ok); in TEST_F()
66 EXPECT_EQ(JNI_OK, ok); in attach_current_thread_callback()
67 if (ok == JNI_OK) { in attach_current_thread_callback()
77 EXPECT_EQ(JNI_OK, ok); in attach_current_thread_callback()
79 if (ok == JNI_OK) { in attach_current_thread_callback()
81 EXPECT_EQ(JNI_OK, ok); in attach_current_thread_callback()
131 ASSERT_EQ(JNI_OK, ok); in TEST_F()
132 ok = vm_->DetachCurrentThread(); in TEST_F()
133 EXPECT_EQ(JNI_OK, ok); in TEST_F()
151 ASSERT_EQ(JNI_OK, ok); in TEST_F()
[all …]
/aosp12/packages/services/Car/cpp/libsysfsmonitor/tests/
H A DSysfsMonitorTest.cpp41 ASSERT_FALSE(mSysfsMonitor->init([](const std::vector<int32_t>&) {}).ok()) in TEST_F()
49 ASSERT_TRUE(ret.ok()) << "Releasing the initialized instance should be successful: " in TEST_F()
51 ASSERT_FALSE(mSysfsMonitor->release().ok()) << "Released instance cannot be released"; in TEST_F()
63 ASSERT_FALSE(mSysfsMonitor->unregisterFd(fd).ok()) in TEST_F()
75 ASSERT_FALSE(mSysfsMonitor->registerFd(fd).ok()) in TEST_F()
88 ASSERT_TRUE(ret.ok()) << "The registered file descriptor should be unregistered: " in TEST_F()
90 ASSERT_FALSE(mSysfsMonitor->unregisterFd(fd).ok()) in TEST_F()
97 ASSERT_FALSE(mSysfsMonitor->registerFd(invalidFd).ok()) in TEST_F()
103 ASSERT_FALSE(mSysfsMonitor->unregisterFd(invalidFd).ok()) in TEST_F()
119 ASSERT_FALSE(mSysfsMonitor->registerFd(fdsToMonitor[maxFdCount]).ok()) in TEST_F()
[all …]
/aosp12/system/media/audio_utils/tests/
H A Dfifo_multiprocess.cpp78 printf("writer unmap front ok=%d\n", ok); in main()
80 printf("writer prot read front ok=%d\n", ok); in main()
141 printf("reader unmap rear ok=%d\n", ok); in main()
143 printf("reader prot read rear ok=%d\n", ok); in main()
151 ok = munmap(data, BUFFER_SIZE); in main()
152 printf("reader unmap data ok=%d\n", ok); in main()
154 printf("reader prot read data ok=%d\n", ok); in main()
216 printf("parent unmap front ok=%d\n", ok); in main()
218 printf("parent unmap rear ok=%d\n", ok); in main()
219 ok = munmap(data, BUFFER_SIZE); in main()
[all …]
/aosp12/frameworks/native/cmds/atrace/
H A Datrace.cpp378 bool ok = true; in _writeStr() local
388 return ok; in _writeStr()
462 return ok; in isCategorySupported()
487 return ok; in isCategorySupportedForRoot()
646 return ok; in disableKernelTraceEvents()
680 return ok; in verifyKernelTraceFuncs()
714 if (ok) { in setKernelTraceFuncs()
719 return ok; in setKernelTraceFuncs()
775 return ok; in setCategoriesEnableFromFile()
816 return ok; in setUpUserspaceTracing()
[all …]
/aosp12/build/soong/cc/
H A Dndk_sysroot.go102 if m, ok := module.(android.Module); ok && !m.Enabled() {
106 if m, ok := module.(*headerModule); ok {
111 if m, ok := module.(*versionedHeaderModule); ok {
116 if m, ok := module.(*preprocessedHeadersModule); ok {
121 if m, ok := module.(*Module); ok {
122 if installer, ok := m.installer.(*stubDecorator); ok && m.library.buildStubs() {
126 if library, ok := m.linker.(*libraryDecorator); ok {
/aosp12/system/connectivity/wificond/
H A Dclient_interface_binder.cpp48 return Status::ok(); in getPacketCounters()
51 return Status::ok(); in getPacketCounters()
57 return Status::ok(); in signalPoll()
60 return Status::ok(); in signalPoll()
65 return Status::ok(); in getMacAddress()
69 return Status::ok(); in getMacAddress()
74 return Status::ok(); in getInterfaceName()
77 return Status::ok(); in getInterfaceName()
84 return Status::ok(); in getWifiScannerImpl()
87 return Status::ok(); in getWifiScannerImpl()
[all …]
/aosp12/system/core/fastboot/
H A Dvendor_boot_img_utils.cpp57 !res.ok()) in Replace()
63 !res.ok()) in Replace()
212 if (!hdr_size.ok()) return hdr_size.error(); in replace_default_vendor_ramdisk()
239 !res.ok()) in replace_default_vendor_ramdisk()
306 if (!hdr_size.ok()) return hdr_size.error(); in replace_vendor_ramdisk_fragment()
323 if (!find_res.ok()) return find_res.error(); in replace_vendor_ramdisk_fragment()
357 !res.ok()) in replace_vendor_ramdisk_fragment()
383 !res.ok()) in replace_vendor_ramdisk_fragment()
407 if (!vendor_boot.ok()) return vendor_boot.error(); in replace_vendor_ramdisk()
409 if (!new_ramdisk.ok()) return new_ramdisk.error(); in replace_vendor_ramdisk()
[all …]
/aosp12/frameworks/native/libs/vr/libpdx/
H A Dstatus_tests.cpp12 EXPECT_FALSE(status.ok()); in TEST()
21 EXPECT_TRUE(status_int.ok()); in TEST()
25 EXPECT_TRUE(status_int.ok()); in TEST()
29 EXPECT_TRUE(status_int.ok()); in TEST()
34 EXPECT_TRUE(status_str.ok()); in TEST()
67 EXPECT_TRUE(status1.ok()); in TEST()
68 EXPECT_FALSE(status2.ok()); in TEST()
93 EXPECT_TRUE(status1.ok()); in TEST()
94 EXPECT_TRUE(status2.ok()); in TEST()
102 EXPECT_TRUE(status1.ok()); in TEST()
[all …]
/aosp12/build/soong/androidmk/androidmk/
H A Dandroid.go227 if list, ok := value.(*bpparser.List); ok {
259 if vA, ok := lists[k]; ok {
397 if !ok {
529 if _, ok := val.(*bpparser.List); !ok {
575 if _, ok := val.(*bpparser.String); !ok {
593 if _, ok := prebuiltTypes[class]; ok {
660 if !ok {
665 if !ok {
679 if !ok {
731 if !ok {
[all …]
/aosp12/build/soong/apex/
H A Dapex.go1010 if !ok {
1096 if a, ok := module.(*apexBundle); ok {
1178 if ab, ok := mctx.Module().(*apexBundle); ok {
1665 if c, ok := child.(*cc.Module); ok {
1687 if cc, ok := child.(*cc.Module); ok {
1789 if ccTest, ok := child.(*cc.Module); ok {
1808 if key, ok := child.(*apexKey); ok {
1835 if cc, ok := child.(*cc.Module); ok {
1895 if cc, ok := child.(*cc.Module); ok {
1971 if e, ok := encountered[dest]; !ok {
[all …]
/aosp12/system/gsid/
H A Dgsi_service.cpp151 return binder::Status::ok(); in openInstall()
164 return binder::Status::ok(); in closeInstall()
700 if (!fd.ok()) { in getAvbPublicKey()
707 if (!ok) { in getAvbPublicKey()
955 bool ok = true; in RemoveGsiFiles() local
980 ok = false; in RemoveGsiFiles()
989 ok = false; in RemoveGsiFiles()
993 ok = false; in RemoveGsiFiles()
997 ok = false; in RemoveGsiFiles()
999 if (ok) { in RemoveGsiFiles()
[all …]

12345678910>>...52