/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.cpp | 32 bool ok = checkCallingPermission(sRecordAudio); local 33 if (!ok) ALOGE("Request requires android.permission.RECORD_AUDIO"); 34 return ok; 41 bool ok = checkCallingPermission(sCaptureAudioOutput); local 42 if (!ok) ALOGE("Request requires android.permission.CAPTURE_AUDIO_OUTPUT"); 43 return ok; 48 bool ok = checkCallingPermission(sCaptureHotwordAllowed); local 49 if (!ok) ALOGE("android.permission.CAPTURE_AUDIO_HOTWORD"); 50 return ok; 57 bool ok local 66 bool ok = PermissionCache::checkCallingPermission(sDump); local [all...] |
H A D | AudioResampler.cpp | 141 int ok = pthread_once(&once_control, init_routine); local 142 if (ok != 0) { 143 ALOGE("%s pthread_once failed: %d", __func__, ok);
|
H A D | AudioResamplerSinc.cpp | 477 int ok = pthread_once(&once_control, init_routine); local 478 if (ok != 0) { 479 ALOGE("%s pthread_once failed: %d", __func__, ok);
|
/frameworks/av/media/libnbaio/ |
H A D | AudioStreamOutSink.cpp | 89 int ok = mStream->get_presentation_position(mStream, &position64, ×tamp.mTime); local 90 if (ok != 0) {
|
/frameworks/base/core/java/android/text/method/ |
H A D | NumberKeyListener.java | 54 if (!ok(accept, source.charAt(i))) { 77 if (!ok(accept, source.charAt(j))) { 85 protected static boolean ok(char[] accept, char c) { method in class:NumberKeyListener
|
/frameworks/wilhelm/src/ |
H A D | entry.c | 35 int ok; local 36 ok = pthread_mutex_lock(&theOneTrueMutex); 37 assert(0 == ok); 98 ok = pthread_mutex_unlock(&theOneTrueMutex); 99 assert(0 == ok); 170 ok = pthread_mutex_unlock(&theOneTrueMutex); 171 assert(0 == ok);
|
H A D | locks.c | 36 int ok; local 37 ok = pthread_mutex_trylock(&thiz->mMutex); 38 if (0 != ok) { 46 ok = pthread_mutex_lock_timeout_np(&thiz->mMutex, backoffs[i]); 47 if (0 == ok) { 50 if (EBUSY == ok) { 52 } else if (EDEADLK == ok) { 57 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); 79 ok = pthread_mutex_lock(&thiz->mMutex); 80 assert(0 == ok); 112 int ok; local 130 int ok; local 137 int ok; local 162 int ok; local 285 int ok; local 296 int ok; local 307 int ok; local 319 int ok; local [all...] |
H A D | ThreadPool.c | 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.c | 178 int ok; local 179 ok = pthread_mutex_lock(&theOneTrueMutex); 180 assert(0 == ok); 185 ok = pthread_mutex_unlock(&theOneTrueMutex); 186 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/wilhelm/src/desktop/ |
H A D | SndFile.c | 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);
|
H A D | playbq.c | 470 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL); local 471 assert(0 == ok);
|
H A D | playbq.cpp | 470 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL); local 471 assert(0 == ok);
|
H A D | reverb.c | 210 int ok; local 211 ok = pthread_mutex_lock(&mutex); 212 assert(ok == 0); 214 ok = pthread_cond_signal(&cond); 215 assert(ok == 0); 216 ok = pthread_mutex_unlock(&mutex); 217 assert(ok == 0);
|
H A D | xaplay.c | 118 int ok; local 119 ok = pthread_mutex_lock(&mutex); 120 assert(ok == 0); 122 ok = pthread_cond_signal(&cond); 123 assert(ok == 0); 124 ok = pthread_mutex_unlock(&mutex); 125 assert(ok == 0); 321 int ok; local 323 ok = fstat(fd, &statbuf); 324 if (ok < [all...] |
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
H A D | SoftFlacEncoder.cpp | 314 FLAC__bool ok = FLAC__stream_encoder_process_interleaved( local 319 if (ok) { 416 FLAC__bool ok = true; local 418 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mNumChannels); 419 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate); 420 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, 16); 421 ok [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | IObject.c | 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/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); 529 int ok; local 530 ok = pthread_mutex_lock(&mutex); 531 assert(0 == ok); [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 238 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); local 239 if (!ok) {
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 181 int ok; local 182 ok = pthread_mutex_lock(&mutex); 183 assert(ok == 0); 185 ok = pthread_cond_signal(&cond); 186 assert(ok == 0); 187 ok = pthread_mutex_unlock(&mutex); 188 assert(ok == 0); 417 int ok; local 419 ok = fstat(fd, &statbuf); 420 if (ok < [all...] |
/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 211 bool ok = true; local 216 ok = false; 221 return ok; 249 bool ok = category.tags != 0; local 258 ok = true; 261 ok |= fileIsWritable(path); 265 return ok; 274 bool ok = category.tags != 0; local 283 ok = true; 286 ok | 392 bool ok = true; local 430 bool ok = true; local 451 bool ok = true; local 492 bool ok = true; local 846 bool ok = true; local [all...] |