Searched refs:ok (Results 1 - 25 of 72) sorted by relevance

123

/frameworks/av/services/audioflinger/
H A DServiceUtilities.cpp32 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;
55 bool ok local
64 bool ok = checkCallingPermission(sAudioSettings); local
71 bool ok = checkCallingPermission(sModifyAudioRoutingAllowed); local
80 bool ok = PermissionCache::checkCallingPermission(sDump); local
[all...]
/frameworks/av/media/libmedia/
H A DMetadata.cpp83 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/
H A Dlocks.c47 int ok; local
48 ok = pthread_mutex_trylock(&thiz->mMutex);
49 if (0 != ok) {
60 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts);
61 if (0 == ok) {
64 if (EBUSY == ok) {
66 } else if (EDEADLK == ok) {
71 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok);
93 ok = pthread_mutex_lock(&thiz->mMutex);
94 assert(0 == ok);
126 int ok; local
144 int ok; local
151 int ok; local
176 int ok; local
299 int ok; local
310 int ok; local
321 int ok; local
333 int ok; local
[all...]
H A DThreadPool.c169 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 Dentry.c35 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);
/frameworks/base/core/tests/coretests/src/android/view/
H A DMutateDrawable.java32 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/cmds/atrace/
H A Datrace.cpp231 bool ok = true; local
236 ok = false;
241 return ok;
269 bool ok = category.tags != 0; local
278 ok = true;
281 ok |= fileIsWritable(path);
285 return ok;
294 bool ok = category.tags != 0; local
303 ok = true;
306 ok |
457 bool ok = true; local
495 bool ok = true; local
516 bool ok = true; local
557 bool ok = true; local
911 bool ok = true; local
[all...]
/frameworks/base/core/java/android/net/http/
H A DCharArrayBuffers.java47 boolean ok = len >= beginIndex + size;
48 for (int j=0; ok && (j<size); j++) {
54 ok = a == b;
57 return ok;
/frameworks/wilhelm/src/objects/
H A DCEngine.c178 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/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.cpp320 FLAC__bool ok = FLAC__stream_encoder_process_interleaved( local
325 if (ok) {
423 FLAC__bool ok = true; local
425 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mNumChannels);
426 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mSampleRate);
427 ok = ok && FLAC__stream_encoder_set_bits_per_sample(mFlacStreamEncoder, 16);
428 ok
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DHeapTest.java82 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 Dnative-media-jni.c103 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/wilhelm/tests/sandbox/
H A Dmultithread.c130 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 DslesTestLoopUri.cpp91 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/core/java/android/text/method/
H A DNumberKeyListener.java54 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/base/tests/StatusBar/src/com/android/statusbartest/
H A DConfirmationActivity.java17 findViewById(R.id.ok).setOnClickListener(new View.OnClickListener() {
/frameworks/wilhelm/src/itf/
H A DIObject.c96 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/av/media/libnbaio/
H A DAudioStreamOutSink.cpp88 int ok = mStream->get_presentation_position(mStream, &position64, &timestamp.mTime); local
89 if (ok != 0) {
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp107 bool ok = typeface->GetTable(os2Tag, NULL, &os2Size); local
108 if (!ok) return false;
110 ok = typeface->GetTable(os2Tag, os2Data.get(), &os2Size);
111 if (!ok) return false;
194 bool ok = typeface->GetTable(cmapTag, NULL, &cmapSize); local
196 ok = typeface->GetTable(cmapTag, cmapData.get(), &cmapSize);
/frameworks/wilhelm/src/desktop/
H A DSndFile.c253 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/ex/framesequence/jni/
H A DFrameSequence_webp.cpp60 int ok = WebPDemuxGetFrame(mDemux, 1, &curr); local
61 ALOG_ASSERT(ok, "Could not retrieve frame# 0");
65 ok = WebPDemuxGetFrame(mDemux, i + 1, &curr); // Get ith frame.
66 ALOG_ASSERT(ok, "Could not retrieve frame# %d", i);
296 int ok = WebPDemuxGetFrame(demux, start, &currIter); // Get frame number 'start - 1'. local
297 ALOG_ASSERT(ok, "Could not retrieve frame# %d", start - 1);
307 ok = WebPDemuxGetFrame(demux, i + 1, &currIter); // Get ith frame.
308 ALOG_ASSERT(ok, "Could not retrieve frame# %d", i);
346 ok = WebPDemuxGetFrame(demux, lastFrame, &currIter);
347 ALOG_ASSERT(ok, "Coul
[all...]
/frameworks/wilhelm/tests/listening/
H A DslesTest_playMuteSolo.cpp90 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/base/policy/src/com/android/internal/policy/impl/
H A DImmersiveModeConfirmation.java243 final Button ok = (Button) mClingLayout.findViewById(R.id.ok);
244 ok.setOnClickListener(new OnClickListener() {
263 ok.setAlpha(0f);
264 ok.setTranslationY(-OFFSET_DP*density);
265 ok.animate().alpha(1f)
/frameworks/base/core/java/android/ddm/
H A DDdmHandleHeap.java118 boolean ok = DdmVmInternal.heapInfoNotify(when);
119 if (!ok) {
138 boolean ok = DdmVmInternal.heapSegmentNotify(when, what, isNative);
139 if (!ok) {
/frameworks/base/core/java/android/preference/
H A DSeekBarDialogPreference.java61 setPositiveButtonText(android.R.string.ok);

Completed in 469 milliseconds

123