/frameworks/av/media/libmedia/ |
D | Metadata.cpp | 83 bool ok = true; in appendHeader() local 86 ok = ok && mData->writeInt32(-1) == OK; in appendHeader() 87 ok = ok && mData->writeInt32(kMetaMarker) == OK; in appendHeader() 88 return ok; in appendHeader() 98 bool ok = true; in appendBool() local 101 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; in appendBool() 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() [all …]
|
/frameworks/base/core/java/android/net/ |
D | network-policy-restrictions.md | 20 * **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 |
|
/frameworks/wilhelm/src/ |
D | ThreadPool.cpp | 169 int ok; in ThreadPool_deinit_internal() local 175 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal() 176 assert(0 == ok); in ThreadPool_deinit_internal() 178 ok = pthread_cond_broadcast(&tp->mCondNotEmpty); in ThreadPool_deinit_internal() 179 assert(0 == ok); in ThreadPool_deinit_internal() 180 ok = pthread_cond_broadcast(&tp->mCondNotFull); in ThreadPool_deinit_internal() 181 assert(0 == ok); in ThreadPool_deinit_internal() 182 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal() 183 assert(0 == ok); in ThreadPool_deinit_internal() 186 ok = pthread_join(tp->mThreadArray[i], (void **) NULL); in ThreadPool_deinit_internal() [all …]
|
D | locks.cpp | 46 int ok; in object_lock_exclusive_() local 47 ok = pthread_mutex_trylock(&thiz->mMutex); in object_lock_exclusive_() 48 if (0 != ok) { in object_lock_exclusive_() 59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); in object_lock_exclusive_() 60 if (0 == ok) { in object_lock_exclusive_() 63 if (EBUSY == ok) { in object_lock_exclusive_() 65 } else if (EDEADLK == ok) { in object_lock_exclusive_() 70 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); in object_lock_exclusive_() 92 ok = pthread_mutex_lock(&thiz->mMutex); in object_lock_exclusive_() 93 assert(0 == ok); in object_lock_exclusive_() [all …]
|
D | entry.cpp | 34 int ok; in liCreateEngine() local 35 ok = pthread_mutex_lock(&theOneTrueMutex); in liCreateEngine() 36 assert(0 == ok); in liCreateEngine() 97 ok = pthread_mutex_unlock(&theOneTrueMutex); in liCreateEngine() 98 assert(0 == ok); in liCreateEngine() 168 ok = pthread_mutex_unlock(&theOneTrueMutex); in liCreateEngine() 169 assert(0 == ok); in liCreateEngine()
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 75 const bool ok = permissionController.checkPermission(sAndroidPermissionRecordAudio, pid, uid); in checkRecordingInternal() local 76 if (!ok) { in checkRecordingInternal() 133 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, uid); in captureAudioOutputAllowed() local 134 if (!ok) ALOGV("Request requires android.permission.CAPTURE_AUDIO_OUTPUT"); in captureAudioOutputAllowed() 135 return ok; in captureAudioOutputAllowed() 141 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed() local 142 if (!ok) ALOGE("Request requires android.permission.CAPTURE_MEDIA_OUTPUT"); in captureMediaOutputAllowed() 143 return ok; in captureMediaOutputAllowed() 148 bool ok = recordingAllowed(opPackageName, pid, uid); in captureHotwordAllowed() local 150 if (ok) { in captureHotwordAllowed() [all …]
|
/frameworks/native/cmds/atrace/ |
D | atrace.cpp | 377 bool ok = true; in _writeStr() local 382 ok = false; in _writeStr() 387 return ok; in _writeStr() 449 bool ok = category.tags != 0; in isCategorySupported() local 455 ok = true; in isCategorySupported() 461 return ok; in isCategorySupported() 470 bool ok = category.tags != 0; in isCategorySupportedForRoot() local 479 ok = true; in isCategorySupportedForRoot() 482 ok |= fileExists(path); in isCategorySupportedForRoot() 486 return ok; in isCategorySupportedForRoot() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | status_tests.cpp | 12 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() 41 EXPECT_FALSE(status_int.ok()); in TEST() 47 EXPECT_FALSE(status_str.ok()); in TEST() 67 EXPECT_TRUE(status1.ok()); in TEST() 68 EXPECT_FALSE(status2.ok()); in TEST() 77 EXPECT_FALSE(status1.ok()); in TEST() [all …]
|
/frameworks/compile/slang/tests/F_bad_pragmas/ |
D | bad_pragmas.rscript | 5 #pragma ok(ok) 6 #pragma ok() 7 #pragma ok 11 #pragma ok(not ok)
|
/frameworks/native/libs/vr/libbufferhubqueue/tests/ |
D | buffer_hub_queue-test.cpp | 61 ASSERT_TRUE(status.ok()); in AllocateBuffer() 106 EXPECT_TRUE(p1_status.ok()); in TEST_F() 116 EXPECT_TRUE(c1_status.ok()) << c1_status.GetErrorMessage(); in TEST_F() 147 EXPECT_TRUE(p1_status.ok()); in TEST_F() 166 EXPECT_TRUE(c1_status.ok()); in TEST_F() 180 EXPECT_TRUE(p1_status.ok()); in TEST_F() 195 EXPECT_TRUE(p1_status.ok()); in TEST_F() 228 EXPECT_TRUE(p1_status.ok()); in TEST_F() 254 EXPECT_TRUE(p1_status.ok()); in TEST_F() 290 ASSERT_FALSE(status.ok()); in TEST_F() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FastXmlSerializerTest.java | 65 boolean ok = true; in checkPreserved() 104 ok = false; in checkPreserved() 113 ok = false; in checkPreserved() 121 return ok; in checkPreserved() 125 boolean ok = false; in check() 126 ok |= checkPreserved(description, str); in check() 127 ok |= checkPreserved(description + " wrapped with spaces" ," " + str + " "); in check() 128 return ok; in check() 133 boolean ok = true; in testAllCharacters() 139 ok &= check("char: " + i, String.valueOf((char) i)); in testAllCharacters() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MutateDrawable.java | 33 Button ok = new Button(this); in onCreate() local 34 ok.setId(R.id.a); in onCreate() 35 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate() 43 layout.addView(ok); in onCreate() 46 ok.getBackground().mutate().setAlpha(127); in onCreate()
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacEnc.cpp | 292 FLAC__bool ok = FLAC__stream_encoder_process_interleaved( in process() local 294 if (!ok) { in process() 376 FLAC__bool ok = true; in configureEncoder() local 377 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mIntf->getChannelCount()); in configureEncoder() 378 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mIntf->getSampleRate()); in configureEncoder() 379 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, bitsPerSample); in configureEncoder() 380 ok = ok && FLAC__stream_encoder_set_compression_level(mFlacStreamEncoder, in configureEncoder() 382 ok = ok && FLAC__stream_encoder_set_verify(mFlacStreamEncoder, false); in configureEncoder() 383 if (!ok) { in configureEncoder() 388 ok &= FLAC__STREAM_ENCODER_INIT_STATUS_OK == in configureEncoder() [all …]
|
/frameworks/wilhelm/tests/native-media/jni/ |
D | native-media-jni.c | 103 int ok; in AndroidBufferQueueCallback() local 109 ok = pthread_mutex_lock(&mutex); in AndroidBufferQueueCallback() 110 assert(0 == ok); in AndroidBufferQueueCallback() 126 ok = pthread_cond_signal(&cond); in AndroidBufferQueueCallback() 127 assert(0 == ok); in AndroidBufferQueueCallback() 219 ok = pthread_mutex_unlock(&mutex); in AndroidBufferQueueCallback() 220 assert(0 == ok); in AndroidBufferQueueCallback() 528 int ok; in Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer() local 529 ok = pthread_mutex_lock(&mutex); in Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer() 530 assert(0 == ok); in Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer() [all …]
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
D | SoftFlacEncoder.cpp | 379 FLAC__bool ok = true; in onQueueFilled() local 421 ok = FLAC__stream_encoder_process_interleaved( in onQueueFilled() 436 if (ok) { in onQueueFilled() 559 FLAC__bool ok = true; in configureEncoder() local 560 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mNumChannels); in configureEncoder() 561 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate); in configureEncoder() 562 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, codecBitsPerSample); in configureEncoder() 563 ok = ok && FLAC__stream_encoder_set_compression_level(mFlacStreamEncoder, in configureEncoder() 565 ok = ok && FLAC__stream_encoder_set_verify(mFlacStreamEncoder, false); in configureEncoder() 566 if (!ok) { goto return_result; } in configureEncoder() [all …]
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | VirtualTouchpadService.cpp | 49 return binder::Status::ok(); in attach() 55 return binder::Status::ok(); in attach() 66 return binder::Status::ok(); in detach() 77 return binder::Status::ok(); in touch() 87 return binder::Status::ok(); in buttonState() 97 return binder::Status::ok(); in scroll()
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | status.h | 78 if (!other.ok() && !other.empty()) { in PropagateError() 87 bool ok() const { return error_ == 0; } in ok() function 93 explicit operator bool() const { return ok(); } 148 if (!other.ok() && !other.empty()) { in PropagateError() 155 bool ok() const { return error_ == 0; } in ok() function 157 explicit operator bool() const { return ok(); }
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiVendorHal.java | 123 private boolean ok(WifiStatus status) { in ok() method in WifiVendorHal 550 return ok(status); in registerStaIfaceCallback() 572 return ok(status); in registerChipCallback() 630 if (!ok(status)) return; in getBgScanCapabilities() 779 ok(iface.stopBackgroundScan(mScan.cmdId)); in startBgScan() 785 if (!ok(status)) return false; in startBgScan() 809 ok(iface.stopBackgroundScan(mScan.cmdId)); in stopBgScan() 831 if (!ok(status)) return; in pauseBgScan() 853 if (!ok(status)) return; in restartBgScan() 903 if (!ok(status)) return; in getWifiLinkLayerStats_internal() [all …]
|
/frameworks/base/cmds/incidentd/tests/ |
D | Section_test.cpp | 76 virtual Status onReportStarted() { return Status::ok(); }; in onReportStarted() 78 { return Status::ok(); }; in onReportSectionStatus() 79 virtual Status onReportFinished() { return Status::ok(); }; in onReportFinished() 80 virtual Status onReportFailed() { return Status::ok(); }; in onReportFailed()
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Idmap2Service.cpp | 52 Status ok() { in ok() function 53 return Status::ok(); in ok() 74 return ok(); in getIdmapPath() 93 return ok(); in removeIdmap() 110 return ok(); in verifyIdmap() 159 return ok(); in createIdmap()
|
/frameworks/av/services/camera/libcameraservice/hidl/ |
D | AidlCameraDeviceCallbacks.cpp | 71 return binder::Status::ok(); in onDeviceError() 80 return binder::Status::ok(); in onDeviceIdle() 92 return binder::Status::ok(); in onCaptureStarted() 173 return binder::Status::ok(); in onResultReceived() 180 return binder::Status::ok(); in onPrepared() 192 return binder::Status::ok(); in onRepeatingRequestError() 197 return binder::Status::ok(); in onRequestQueueEmpty()
|
/frameworks/wilhelm/src/itf/ |
D | IObject.cpp | 96 int ok = pthread_mutex_lock(&theOneTrueMutex); in IObject_Realize() local 97 assert(0 == ok); in IObject_Realize() 99 ok = pthread_mutex_unlock(&theOneTrueMutex); in IObject_Realize() 100 assert(0 == ok); in IObject_Realize() 770 int ok; in IObject_init() local 771 ok = pthread_mutex_init(&thiz->mMutex, (const pthread_mutexattr_t *) NULL); in IObject_init() 772 assert(0 == ok); in IObject_init() 779 ok = pthread_cond_init(&thiz->mCond, (const pthread_condattr_t *) NULL); in IObject_init() 780 assert(0 == ok); in IObject_init() 792 int ok; in IObject_deinit() local [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | StatsService.cpp | 65 static binder::Status ok() { in ok() function 66 return binder::Status::ok(); in ok() 77 return ok(); in checkUid() 90 return ok(); in checkDumpAndUsageStats() 108 return ok(); in checkDumpAndUsageStats() 1004 return Status::ok(); in informAllUidData() 1013 return Status::ok(); in informOnePackage() 1022 return Status::ok(); in informOnePackageRemoved() 1038 return Status::ok(); in informAnomalyAlarmFired() 1054 return Status::ok(); in informAlarmForSubscriberTriggeringFired() [all …]
|
/frameworks/wilhelm/src/objects/ |
D | CEngine.cpp | 197 int ok; in CEngine_Destroyed() local 198 ok = pthread_mutex_lock(&theOneTrueMutex); in CEngine_Destroyed() 199 assert(0 == ok); in CEngine_Destroyed() 204 ok = pthread_mutex_unlock(&theOneTrueMutex); in CEngine_Destroyed() 205 assert(0 == ok); in CEngine_Destroyed()
|
/frameworks/av/media/libaudioclient/ |
D | PlayerBase.cpp | 125 return binder::Status::ok(); in start() 131 return binder::Status::ok(); in pause() 138 return binder::Status::ok(); in stop() 177 return binder::Status::ok(); in setStartDelayMs() 184 return binder::Status::ok(); in applyVolumeShaper()
|