/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/av/services/audioflinger/ |
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; 119 bool ok = PermissionCache::checkCallingPermission(sCaptureHotwordAllowed); local 120 if (!ok) ALOGE("android.permission.CAPTURE_AUDIO_HOTWORD"); 121 return ok; 128 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); local 129 if (!ok) ALOG 136 bool ok = PermissionCache::checkCallingPermission(sModifyAudioRoutingAllowed); local 145 bool ok = PermissionCache::checkCallingPermission(sDump); local [all...] |
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);
|
/frameworks/wilhelm/src/ |
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...] |
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);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | MutateDrawable.java | 32 Button ok = new Button(this); 33 ok.setId(R.id.a); 34 ok.setBackgroundDrawable(getResources().getDrawable( 42 layout.addView(ok); 45 ok.getBackground().mutate().setAlpha(127);
|
/frameworks/native/libs/vr/libpdx/ |
H A D | status_tests.cpp | 10 EXPECT_FALSE(status.ok()); 19 EXPECT_TRUE(status_int.ok()); 23 EXPECT_TRUE(status_int.ok()); 27 EXPECT_TRUE(status_int.ok()); 32 EXPECT_TRUE(status_str.ok()); 39 EXPECT_FALSE(status_int.ok()); 45 EXPECT_FALSE(status_str.ok()); 65 EXPECT_TRUE(status1.ok()); 66 EXPECT_FALSE(status2.ok()); 75 EXPECT_FALSE(status1.ok()); [all...] |
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | FastXmlSerializerTest.java | 65 boolean ok = true; 104 ok = false; 113 ok = false; 121 return ok; 125 boolean ok = false; 126 ok |= checkPreserved(description, str); 127 ok |= checkPreserved(description + " wrapped with spaces" ," " + str + " "); 128 return ok; 133 boolean ok = true; 139 ok [all...] |
/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 299 bool ok = true; local 304 ok = false; 309 return ok; 369 bool ok = category.tags != 0; local 378 ok = true; 381 ok |= fileIsWritable(path); 385 return ok; 394 bool ok = category.tags != 0; local 403 ok = true; 406 ok | 630 bool ok = true; local 658 bool ok = true; local 680 bool ok = true; local 750 bool ok = true; local 767 bool ok = true; local 1193 bool ok = true; local [all...] |
/frameworks/native/libs/vr/libbufferhubqueue/tests/ |
H A D | buffer_hub_queue-test.cpp | 81 ASSERT_TRUE(p1_status.ok()); 88 ASSERT_TRUE(c1_status.ok()); 118 ASSERT_FALSE(status.ok()); 127 ASSERT_FALSE(consumer_status.ok()); 133 ASSERT_TRUE(producer_status.ok()); 143 ASSERT_TRUE(consumer_status.ok()); 171 ASSERT_TRUE(producer_status.ok()); 197 ASSERT_TRUE(producer_status.ok()); 209 ASSERT_TRUE(consumer_status.ok()); 239 ASSERT_TRUE(p1_status.ok()); [all...] |
/frameworks/native/services/nativeperms/ |
H A D | nativeperms.cpp | 44 return binder::Status::ok(); 54 return binder::Status::ok(); 62 return binder::Status::ok();
|
/frameworks/av/services/mediadrm/ |
H A D | MediaCasService.cpp | 55 return Status::ok(); 64 return Status::ok(); 87 return Status::ok(); 96 return Status::ok(); 116 return Status::ok();
|
/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/av/media/libstagefright/codecs/flac/enc/ |
H A D | SoftFlacEncoder.cpp | 346 FLAC__bool ok = FLAC__stream_encoder_process_interleaved( local 351 if (ok) { 449 FLAC__bool ok = true; local 450 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mNumChannels); 451 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate); 452 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, 16); 453 ok [all...] |
/frameworks/native/cmds/dumpstate/ |
H A D | DumpstateService.cpp | 59 return binder::Status::ok(); 63 return binder::Status::ok(); 68 return binder::Status::ok(); 75 return binder::Status::ok();
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | HeapTest.java | 82 boolean ok = true; 86 ok = false; 89 if (!ok) { 185 boolean ok = true; 189 ok = false; 192 if (!ok) { 239 boolean ok = true; 249 ok = false; 253 if (!ok) { 301 ok [all...] |
/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); 527 int ok; local 528 ok = pthread_mutex_lock(&mutex); 529 assert(0 == ok); [all...] |
/frameworks/base/cmds/incident/ |
H A D | main.cpp | 63 return Status::ok(); 70 return Status::ok(); 77 return Status::ok(); 85 return Status::ok(); 93 return Status::ok();
|
/frameworks/native/services/vr/virtual_touchpad/ |
H A D | VirtualTouchpadService.cpp | 49 return binder::Status::ok(); 55 return binder::Status::ok(); 66 return binder::Status::ok(); 77 return binder::Status::ok(); 87 return binder::Status::ok();
|
/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/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/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);
|
/frameworks/base/cmds/incidentd/src/ |
H A D | IncidentService.cpp | 60 return Status::ok(); 207 return Status::ok(); 228 return Status::ok(); 242 return Status::ok();
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | ConfirmationActivity.java | 17 findViewById(R.id.ok).setOnClickListener(new View.OnClickListener() {
|