/frameworks/av/services/audioflinger/ |
H A D | FastMixerState.cpp | 40 int ok = pthread_once(&sMaxFastTracksOnce, sMaxFastTracksInit); local 41 if (ok != 0) { 42 ALOGE("%s pthread_once failed: %d", __func__, ok);
|
H A D | ServiceUtilities.cpp | 60 const bool ok = checkPermission(sRecordAudio, pid, uid); local 61 if (!ok) { 111 bool ok = checkPermission(sCaptureAudioOutput, pid, uid); local 112 if (!ok) ALOGE("Request requires android.permission.CAPTURE_AUDIO_OUTPUT"); 113 return ok; 118 bool ok = recordingAllowed(String16(""), pid, uid); local 120 if (ok) { 123 ok = PermissionCache::checkCallingPermission(sCaptureHotwordAllowed); 125 if (!ok) ALOGE("android.permission.CAPTURE_AUDIO_HOTWORD"); 126 return ok; 133 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); local 141 bool ok = PermissionCache::checkCallingPermission(sModifyAudioRoutingAllowed); local 150 bool ok = PermissionCache::checkCallingPermission(sDump); local [all...] |
/frameworks/native/libs/binder/ |
H A D | Status.cpp | 22 Status Status::ok() { function in class:android::binder::Status
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | status.h | 75 if (!other.ok() && !other.empty()) { 84 bool ok() const { return error_ == 0; } function in class:android::pdx::Status 89 // Explicit bool conversion, equivalent to invoking ok(). 90 explicit operator bool() const { return ok(); } 92 // Accessors for the value stored in Status. Calling when ok() is false leads 145 if (!other.ok() && !other.empty()) { 152 bool ok() const { return error_ == 0; } function in class:android::pdx::Status 154 explicit operator bool() const { return ok(); }
|
/frameworks/wilhelm/src/ |
H A D | entry.cpp | 34 int ok; local 35 ok = pthread_mutex_lock(&theOneTrueMutex); 36 assert(0 == ok); 97 ok = pthread_mutex_unlock(&theOneTrueMutex); 98 assert(0 == ok); 168 ok = pthread_mutex_unlock(&theOneTrueMutex); 169 assert(0 == ok);
|
H A D | locks.cpp | 46 int ok; local 47 ok = pthread_mutex_trylock(&thiz->mMutex); 48 if (0 != ok) { 59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); 60 if (0 == ok) { 63 if (EBUSY == ok) { 65 } else if (EDEADLK == ok) { 70 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); 92 ok = pthread_mutex_lock(&thiz->mMutex); 93 assert(0 == ok); 125 int ok; local 143 int ok; local 150 int ok; local 175 int ok; local 298 int ok; local 309 int ok; local 320 int ok; local 332 int ok; local [all...] |
H A D | ThreadPool.cpp | 169 int ok; local 175 ok = pthread_mutex_lock(&tp->mMutex); 176 assert(0 == ok); 178 ok = pthread_cond_broadcast(&tp->mCondNotEmpty); 179 assert(0 == ok); 180 ok = pthread_cond_broadcast(&tp->mCondNotFull); 181 assert(0 == ok); 182 ok = pthread_mutex_unlock(&tp->mMutex); 183 assert(0 == ok); 186 ok 279 int ok; local 330 int ok; local [all...] |
/frameworks/wilhelm/src/objects/ |
H A D | CEngine.cpp | 197 int ok; local 198 ok = pthread_mutex_lock(&theOneTrueMutex); 199 assert(0 == ok); 204 ok = pthread_mutex_unlock(&theOneTrueMutex); 205 assert(0 == ok);
|
/frameworks/av/media/libmedia/ |
H A D | Metadata.cpp | 83 bool ok = true; local 86 ok = ok && mData->writeInt32(-1) == OK; 87 ok = ok && mData->writeInt32(kMetaMarker) == OK; 88 return ok; 98 bool ok = true; local 101 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK; 102 ok 118 bool ok = true; local [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | NumberKeyListener.java | 64 if (!ok(accept, source.charAt(i))) { 87 if (!ok(accept, source.charAt(j))) { 95 protected static boolean ok(char[] accept, char c) { method in class:NumberKeyListener
|
/frameworks/wilhelm/src/desktop/ |
H A D | SndFile.cpp | 253 int ok; local 254 ok = pthread_mutex_init(&thiz->mSndFile.mMutex, (const pthread_mutexattr_t *) NULL); 255 assert(0 == ok); 282 int ok; local 283 ok = pthread_mutex_destroy(&thiz->mSndFile.mMutex); 284 assert(0 == ok);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | multithread.c | 130 int ok; local 155 ok = pthread_create(&threads[i], (const pthread_attr_t *) NULL, thread_start, 157 assert(0 == ok); 185 ok = pthread_join(threads[i], NULL); 186 assert(0 == ok);
|
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResampler.cpp | 156 int ok = pthread_once(&once_control, init_routine); local 157 if (ok != 0) { 158 ALOGE("%s pthread_once failed: %d", __func__, ok);
|
H A D | AudioResamplerSinc.cpp | 236 int ok = pthread_once(&once_control, init_routine); local 237 if (ok != 0) { 238 ALOGE("%s pthread_once failed: %d", __func__, ok);
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
H A D | SoftFlacEncoder.cpp | 401 FLAC__bool ok = FLAC__stream_encoder_process_interleaved( local 406 if (ok) { 504 FLAC__bool ok = true; local 505 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mNumChannels); 506 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate); 507 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, 16); 508 ok [all...] |
/frameworks/compile/slang/ |
H A D | slang_rs_reflection_state.h | 201 // errors, call the ok() method on the instance. 202 // c) When the instance is destroyed, if ok() has not been called on 218 void ok() { mState = nullptr; } function in class:slang::ReflectionState::Tentative
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
H A D | BlasBenchmark.java | 260 public void onBenchmarkFinish(boolean ok) { argument 261 if (ok) {
|
/frameworks/wilhelm/src/itf/ |
H A D | IObject.cpp | 96 int ok = pthread_mutex_lock(&theOneTrueMutex); local 97 assert(0 == ok); 99 ok = pthread_mutex_unlock(&theOneTrueMutex); 100 assert(0 == ok); 349 // Can't get interface on an unrealized object unless pre-realize is ok 771 int ok; local 772 ok = pthread_mutex_init(&thiz->mMutex, (const pthread_mutexattr_t *) NULL); 773 assert(0 == ok); 780 ok = pthread_cond_init(&thiz->mCond, (const pthread_condattr_t *) NULL); 781 assert(0 == ok); 793 int ok; local [all...] |
/frameworks/wilhelm/tests/listening/ |
H A D | slesTest_playMuteSolo.cpp | 90 int ok; local 91 ok = pthread_mutex_lock(&mutex); 92 assert(ok == 0); 94 ok = pthread_cond_signal(&cond); 95 assert(ok == 0); 96 ok = pthread_mutex_unlock(&mutex); 97 assert(ok == 0);
|
/frameworks/wilhelm/tests/mimeUri/ |
H A D | slesTestLoopUri.cpp | 91 int ok; local 92 ok = pthread_mutex_lock(&mutex); 93 assert(ok == 0); 95 ok = pthread_cond_signal(&cond); 96 assert(ok == 0); 97 ok = pthread_mutex_unlock(&mutex); 98 assert(ok == 0);
|
H A D | slesTestSlowDownUri.cpp | 136 int ok; local 137 ok = pthread_mutex_lock(&mutex); 138 assert(ok == 0); 140 ok = pthread_cond_signal(&cond); 141 assert(ok == 0); 142 ok = pthread_mutex_unlock(&mutex); 143 assert(ok == 0);
|
/frameworks/base/core/jni/ |
H A D | android_os_HwBinder.cpp | 291 bool ok = ret.isOk() && ret; local 293 if (ok) { 298 signalExceptionForError(env, (ok ? OK : UNKNOWN_ERROR), true /* canThrowRemoteException */);
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | SurfaceCompositionMeasuringActivity.java | 403 private double measureCompositionScore(Measurement ok, Measurement fail, int pixelFormat) { argument 404 if (ok.mSurfaceCnt + 1 == fail.mSurfaceCnt) { 406 double fraction = (mTargetFPS - fail.mFPS) / (ok.mFPS - fail.mFPS); 407 return ok.mSurfaceCnt + fraction; 410 int medianSurfaceCnt = (ok.mSurfaceCnt + fail.mSurfaceCnt) / 2; 417 return measureCompositionScore(ok, median, pixelFormat);
|
/frameworks/wilhelm/tests/native-media/jni/ |
H A D | native-media-jni.c | 103 int ok; local 109 ok = pthread_mutex_lock(&mutex); 110 assert(0 == ok); 126 ok = pthread_cond_signal(&cond); 127 assert(0 == ok); 219 ok = pthread_mutex_unlock(&mutex); 220 assert(0 == ok); 528 int ok; local 529 ok = pthread_mutex_lock(&mutex); 530 assert(0 == ok); [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 245 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); local 246 if (!ok) {
|