/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 …]
|
/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/av/media/utils/ |
D | ServiceUtilities.cpp | 188 bool ok = (permissionChecker.checkPermissionForPreflight( in captureAudioOutputAllowed() local 191 if (!ok) ALOGV("Request requires android.permission.CAPTURE_AUDIO_OUTPUT"); in captureAudioOutputAllowed() 192 return ok; in captureAudioOutputAllowed() 200 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed() local 201 if (!ok) ALOGE("Request requires android.permission.CAPTURE_MEDIA_OUTPUT"); in captureMediaOutputAllowed() 202 return ok; in captureMediaOutputAllowed() 210 bool ok = PermissionCache::checkPermission(sCaptureTunerAudioInput, pid, uid); in captureTunerAudioInputAllowed() local 211 if (!ok) ALOGV("Request requires android.permission.CAPTURE_TUNER_AUDIO_INPUT"); in captureTunerAudioInputAllowed() 212 return ok; in captureTunerAudioInputAllowed() 221 bool ok = PermissionCache::checkPermission(sCaptureVoiceCommOutput, pid, uid); in captureVoiceCommunicationOutputAllowed() local [all …]
|
/frameworks/native/cmds/atrace/ |
D | atrace.cpp | 396 bool ok = true; in _writeStr() local 401 ok = false; in _writeStr() 406 return ok; in _writeStr() 468 bool ok = category.tags != 0; in isCategorySupported() local 474 ok = true; in isCategorySupported() 480 return ok; in isCategorySupported() 489 bool ok = category.tags != 0; in isCategorySupportedForRoot() local 498 ok = true; in isCategorySupportedForRoot() 501 ok |= fileExists(path); in isCategorySupportedForRoot() 505 return ok; in isCategorySupportedForRoot() [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/base/services/incremental/ |
D | BinderIncrementalService.cpp | 108 static binder::Status ok() { in ok() function 109 return binder::Status::ok(); in ok() 115 return ok(); in openStorage() 125 return ok(); in createStorage() 136 return ok(); in createLinkedStorage() 150 return ok(); in startLoading() 155 return ok(); in onInstallationComplete() 164 return ok(); in makeBindMount() 171 return ok(); in deleteBindMount() 176 return ok(); in deleteStorage() [all …]
|
/frameworks/av/media/audioaidlconversion/tests/ |
D | audio_aidl_ndk_conversion_tests.cpp | 55 ASSERT_TRUE(conv.ok()); in TEST() 57 ASSERT_TRUE(convBack.ok()); in TEST() 66 ASSERT_TRUE(conv.ok()); in TEST() 68 ASSERT_TRUE(convBack.ok()); in TEST() 76 ASSERT_TRUE(conv.ok()); in TEST() 78 ASSERT_TRUE(convBack.ok()); in TEST() 87 ASSERT_TRUE(conv.ok()); in TEST() 89 ASSERT_TRUE(convBack.ok()); in TEST() 100 ASSERT_TRUE(conv.ok()); in TEST_P() 102 ASSERT_TRUE(convBack.ok()); in TEST_P() [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/av/media/libaudiohal/tests/ |
D | CoreAudioHalAidl_test.cpp | 46 return ndk::ScopedAStatus::ok(); in getVendorParametersImpl() 57 return ndk::ScopedAStatus::ok(); in setVendorParametersImpl() 75 return ndk::ScopedAStatus::ok(); in setModuleDebug() 79 return ndk::ScopedAStatus::ok(); in getTelephony() 83 return ndk::ScopedAStatus::ok(); in getBluetooth() 87 return ndk::ScopedAStatus::ok(); in getBluetoothA2dp() 91 return ndk::ScopedAStatus::ok(); in getBluetoothLe() 96 return ndk::ScopedAStatus::ok(); in connectExternalDevice() 99 return ndk::ScopedAStatus::ok(); in disconnectExternalDevice() 103 return ndk::ScopedAStatus::ok(); in getAudioPatches() [all …]
|
/frameworks/native/libs/input/tests/ |
D | MotionPredictor_test.cpp | 115 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 1, 3, 0ms, /*deviceId=*/0)).ok()); in TEST() 116 ASSERT_TRUE(predictor.record(getMotionEvent(MOVE, 1, 3, 10ms, /*deviceId=*/0)).ok()); in TEST() 117 ASSERT_TRUE(predictor.record(getMotionEvent(MOVE, 2, 5, 20ms, /*deviceId=*/0)).ok()); in TEST() 118 ASSERT_TRUE(predictor.record(getMotionEvent(MOVE, 3, 7, 30ms, /*deviceId=*/0)).ok()); in TEST() 120 ASSERT_FALSE(predictor.record(getMotionEvent(DOWN, 100, 300, 40ms, /*deviceId=*/1)).ok()); in TEST() 121 ASSERT_FALSE(predictor.record(getMotionEvent(MOVE, 100, 300, 50ms, /*deviceId=*/1)).ok()); in TEST() 128 ASSERT_TRUE(predictor.record(getMotionEvent(DOWN, 1, 3, 0ms, /*deviceId=*/0)).ok()); in TEST() 129 ASSERT_TRUE(predictor.record(getMotionEvent(MOVE, 1, 3, 10ms, /*deviceId=*/0)).ok()); in TEST() 130 ASSERT_TRUE(predictor.record(getMotionEvent(MOVE, 2, 5, 20ms, /*deviceId=*/0)).ok()); in TEST() 131 ASSERT_TRUE(predictor.record(getMotionEvent(UP, 2, 5, 30ms, /*deviceId=*/0)).ok()); in TEST() [all …]
|
D | InputDevice_test.cpp | 47 ASSERT_TRUE(ret.ok()) << "Cannot load KeyLayout at " << path; in loadKeyLayout() 62 ASSERT_TRUE(ret.ok()) << "Cannot load KeyCharacterMap at " << path; in loadKeyCharacterMap() 92 ASSERT_TRUE(overlay.ok()) << "Cannot load KeyCharacterMap at " << overlayPath; in TEST_F() 106 ASSERT_TRUE(frenchOverlay.ok()) << "Cannot load KeyCharacterMap at " << frenchOverlayPath; in TEST_F() 109 ASSERT_TRUE(englishOverlay.ok()) << "Cannot load KeyCharacterMap at " << englishOverlayPath; in TEST_F() 112 ASSERT_TRUE(germanOverlay.ok()) << "Cannot load KeyCharacterMap at " << germanOverlayPath; in TEST_F() 140 ASSERT_FALSE(ret.ok()) << "Should not be able to load KeyLayout at " << klPath; in TEST_F() 147 ASSERT_FALSE(ret.ok()) << "Should not be able to load KeyLayout at " << klPath; in TEST_F() 156 ASSERT_FALSE(ret.ok()) << "Should not be able to load KeyLayout at " << klPath; in TEST() 167 ASSERT_TRUE(ret.ok()) << "Cannot load KeyLayout at " << klPath; in TEST()
|
/frameworks/libs/net/common/native/bpf_headers/include/bpf/ |
D | BpfMap.h | 57 if (!mMapFd.ok()) abort(); in abortOnKeyOrValueSizeMismatch() 79 if (!mMapFd.ok()) abort(); 124 if (!mMapFd.ok()) { in init() 151 if (!mMapFd.ok()) return ErrnoErrorf("Unable to create map."); 209 if (mMapFd.ok()) abortOnKeyOrValueSizeMismatch(); in reset() 217 bool isValid() const { return mMapFd.ok(); } in isValid() 222 if (!key.ok()) { in clear() 227 if (!res.ok()) { in clear() 238 if (!key.ok()) { in isEmpty() 255 while (curKey.ok()) { in iterate() [all …]
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | CameraPermissionsTest.cpp | 41 return binder::Status::ok(); in onStatusChanged() 47 return binder::Status::ok(); in onPhysicalCameraStatusChanged() 51 return binder::Status::ok(); in onTorchStatusChanged() 56 return binder::Status::ok(); in onCameraAccessPrioritiesChanged() 62 return binder::Status::ok(); in onCameraOpened() 67 return binder::Status::ok(); in onCameraClosed() 73 return binder::Status::ok(); in onTorchStrengthLevelChanged() 86 return binder::Status::ok(); in onDeviceError() 90 return binder::Status::ok(); in onDeviceIdle() 95 return binder::Status::ok(); in onCaptureStarted() [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/libs/net/common/netd/libnetdutils/ |
D | SyscallsTest.cpp | 63 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F() 65 EXPECT_EQ(status::ok, result.status()); in TEST_F() 79 return status::ok; in TEST_F() 100 .WillOnce(Return(status::ok)); in TEST_F() 101 EXPECT_EQ(status::ok, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F() 120 .WillOnce(Return(status::ok)); in TEST_F() 121 EXPECT_EQ(status::ok, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F() 137 .WillOnce(Return(status::ok)); in TEST_F() 138 EXPECT_EQ(status::ok, sys.bind(kFd, expected)); in TEST_F() 154 .WillOnce(Return(status::ok)); in TEST_F() [all …]
|
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/ |
D | Status.h | 42 Status(int code, std::string msg) : mCode(code), mMsg(std::move(msg)) { assert(!ok()); } in Status() 45 : mCode(result.ok() ? 0 : static_cast<int>(result.error().code())), in Status() 46 mMsg(result.ok() ? "" : result.error().message()) {} in Status() 50 bool ok() const { return code() == 0; } in ok() function 67 const Status ok{0}; 79 return status.ok(); in isOk()
|
/frameworks/native/libs/binder/tests/ |
D | binderRpcTestCommon.h | 258 return Status::ok(); in getName() 272 return Status::ok(); in sendCallback() 292 return Status::ok(); in sendString() 296 return Status::ok(); in doubleString() 300 return Status::ok(); in getClientPort() 304 return Status::ok(); in getNullBinder() 312 return Status::ok(); in pingMe() 316 return Status::ok(); in repeatBinder() 321 return Status::ok(); in holdBinder() 325 return Status::ok(); in getHeldBinder() [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/aidl/ |
D | DynamicsProcessing.cpp | 233 return ndk::ScopedAStatus::ok(); in open() 240 return ndk::ScopedAStatus::ok(); in getDescriptor() 248 return ndk::ScopedAStatus::ok(); in commandImpl() 251 return ndk::ScopedAStatus::ok(); in commandImpl() 255 return ndk::ScopedAStatus::ok(); in commandImpl() 285 return ndk::ScopedAStatus::ok(); in setParameterSpecific() 291 return ndk::ScopedAStatus::ok(); in setParameterSpecific() 297 return ndk::ScopedAStatus::ok(); in setParameterSpecific() 303 return ndk::ScopedAStatus::ok(); in setParameterSpecific() 309 return ndk::ScopedAStatus::ok(); in setParameterSpecific() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/aidl/ |
D | AidlCamera3OfflineSession.cpp | 97 return ::ndk::ScopedAStatus::ok(); in processCaptureResult() 109 return ::ndk::ScopedAStatus::ok(); in processCaptureResult() 136 return ::ndk::ScopedAStatus::ok(); in processCaptureResult() 144 return ::ndk::ScopedAStatus::ok(); in notify() 156 return ::ndk::ScopedAStatus::ok(); in notify() 181 return ::ndk::ScopedAStatus::ok(); in notify() 191 return ::ndk::ScopedAStatus::ok(); in requestStreamBuffers() 205 return ::ndk::ScopedAStatus::ok(); in requestStreamBuffers() 213 return ::ndk::ScopedAStatus::ok(); in requestStreamBuffers() 221 return ::ndk::ScopedAStatus::ok(); in returnStreamBuffers() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_aidl_legacy_conversion_tests.cpp | 310 ASSERT_TRUE(conv.ok()); in TEST_P() 312 ASSERT_TRUE(convBack.ok()); in TEST_P() 396 EXPECT_EQ(isValid, conv.ok()); in TEST_P() 432 ASSERT_TRUE(conv.ok()); in TEST_P() 434 ASSERT_TRUE(convBack.ok()); in TEST_P() 450 ASSERT_TRUE(convBack.ok()); in TEST_P() 489 ASSERT_TRUE(conv.ok()); in TEST_P() 491 ASSERT_TRUE(convBack.ok()); in TEST_P() 544 ASSERT_TRUE(convBack.ok()); in TEST_P() 550 ASSERT_TRUE(conv.ok()); in TEST_P() [all …]
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
D | SoftFlacEncoder.cpp | 379 FLAC__bool ok = true; in onQueueFilled() local 422 ok = FLAC__stream_encoder_process_interleaved( in onQueueFilled() 438 if (ok) { in onQueueFilled() 552 FLAC__bool ok = true; in configureEncoder() local 553 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mNumChannels); in configureEncoder() 554 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate); in configureEncoder() 555 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, codecBitsPerSample); in configureEncoder() 556 ok = ok && FLAC__stream_encoder_set_compression_level(mFlacStreamEncoder, in configureEncoder() 558 ok = ok && FLAC__stream_encoder_set_verify(mFlacStreamEncoder, false); in configureEncoder() 559 if (!ok) { goto return_result; } in configureEncoder() [all …]
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacEnc.cpp | 293 FLAC__bool ok = FLAC__stream_encoder_process_interleaved( in process() local 295 if (!ok) { in process() 377 FLAC__bool ok = true; in configureEncoder() local 378 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mIntf->getChannelCount()); in configureEncoder() 379 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mIntf->getSampleRate()); in configureEncoder() 380 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, bitsPerSample); in configureEncoder() 381 ok = ok && FLAC__stream_encoder_set_compression_level(mFlacStreamEncoder, in configureEncoder() 383 ok = ok && FLAC__stream_encoder_set_verify(mFlacStreamEncoder, false); in configureEncoder() 384 if (!ok) { in configureEncoder() 389 ok &= FLAC__STREAM_ENCODER_INIT_STATUS_OK == in configureEncoder() [all …]
|