Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/media/libmedia/
DMetadata.cpp83 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/tests/coretests/src/android/view/
DMutateDrawable.java32 Button ok = new Button(this); in onCreate() local
33 ok.setId(R.id.a); in onCreate()
34 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate()
42 layout.addView(ok); in onCreate()
45 ok.getBackground().mutate().setAlpha(127); in onCreate()
/frameworks/base/core/java/android/net/http/
DCharArrayBuffers.java47 boolean ok = len >= beginIndex + size; in containsIgnoreCaseTrimmed()
48 for (int j=0; ok && (j<size); j++) { in containsIgnoreCaseTrimmed()
54 ok = a == b; in containsIgnoreCaseTrimmed()
57 return ok; in containsIgnoreCaseTrimmed()
/frameworks/base/tests/CoreTests/android/core/
DHeapTest.java82 boolean ok = true; in checkRefs()
86 ok = false; in checkRefs()
89 if (!ok) { in checkRefs()
185 boolean ok = true; in checkRefs()
189 ok = false; in checkRefs()
192 if (!ok) { in checkRefs()
239 boolean ok = true; in checkRefs()
249 ok = false; in checkRefs()
253 if (!ok) { in checkRefs()
301 ok = false; in checkRefs()
[all …]
/frameworks/base/core/java/android/text/method/
DNumberKeyListener.java50 if (!ok(accept, source.charAt(i))) { in filter()
73 if (!ok(accept, source.charAt(j))) { in filter()
81 protected static boolean ok(char[] accept, char c) { in ok() method in NumberKeyListener
DDialerKeyListener.java83 if (ok(accepted, kd.meta[i])) { in lookup()
/frameworks/base/core/java/android/ddm/
DDdmHandleHeap.java118 boolean ok = DdmVmInternal.heapInfoNotify(when); in handleHPIF()
119 if (!ok) { in handleHPIF()
138 boolean ok = DdmVmInternal.heapSegmentNotify(when, what, isNative); in handleHPSGNHSG()
139 if (!ok) { in handleHPSGNHSG()
/frameworks/base/docs/html/guide/tutorials/views/
Dhello-relativelayout.jd32 android:id="@+id/ok"
43 android:layout_toLeftOf="@id/ok"
44 android:layout_alignTop="@id/ok"
/frameworks/base/core/java/android/text/
DStaticLayout.java251 int ok = paraStart; in generate() local
389 ok = j + 1; in generate()
402 if (ok != here) { in generate()
405 while (ok < spanEnd && chs[ok - paraStart] == CHAR_SPACE) { in generate()
406 ok++; in generate()
410 here, ok, in generate()
416 ok == bufEnd, includepad, trackpad, in generate()
421 here = ok; in generate()
471 ok = fit = here; in generate()
/frameworks/base/docs/html/resources/tutorials/views/
Dhello-relativelayout.jd37 android:id="@+id/ok"
47 android:layout_toLeftOf="@id/ok"
48 android:layout_alignTop="@id/ok"
60 identified by the ID <code>ok</code> (which is the previous {@link android.widget.Button}).</p>
/frameworks/base/media/libmediaplayerservice/
DMediaRecorderClient.cpp56 bool ok = checkCallingPermission(String16(permissionString)); in checkPermission() local
57 if (!ok) LOGE("Request requires %s", permissionString); in checkPermission()
58 return ok; in checkPermission()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DConfirmationActivity.java17 findViewById(R.id.ok).setOnClickListener(new View.OnClickListener() { in onResume()
/frameworks/base/core/java/android/preference/
DSeekBarDialogPreference.java48 setPositiveButtonText(android.R.string.ok); in createActionButtons()
/frameworks/base/core/java/android/webkit/
DPlugin.java206 .setPositiveButton(R.string.ok, this) in handleClickEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java57 builder.setPositiveButton(android.R.string.ok, null); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java200 b.setPositiveButton(android.R.string.ok, null); in showLowBatteryWarning()
267 b.setPositiveButton(android.R.string.ok, null); in showInvalidChargerDialog()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java74 .setPositiveButton(android.R.string.ok, this) in onResume()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pService.java496 .setPositiveButton(r.getString(R.string.ok), listener) in processMessage()
1057 .setPositiveButton(r.getString(R.string.ok), null) in notifyP2pEnableFailure()
1068 .setPositiveButton(r.getString(R.string.ok), null) in notifyWpsPin()
1084 .setPositiveButton(r.getString(R.string.ok), new OnClickListener() { in notifyP2pGoNegotationRequest()
1129 .setPositiveButton(r.getString(R.string.ok), new OnClickListener() { in notifyP2pProvDiscPbcRequest()
1155 .setPositiveButton(r.getString(R.string.ok), new OnClickListener() { in notifyP2pProvDiscPinRequest()
1181 .setPositiveButton(r.getString(R.string.ok), new OnClickListener() { in notifyP2pInvitationReceived()
/frameworks/base/wifi/java/android/net/wifi/
DWifiStateMachine.java2242 boolean ok = WifiNative.pingCommand(); in processMessage()
2243 mReplyChannel.replyToMessage(message, message.what, ok ? SUCCESS : FAILURE); in processMessage()
2251 ok = WifiConfigStore.removeNetwork(message.arg1); in processMessage()
2252 mReplyChannel.replyToMessage(message, message.what, ok ? SUCCESS : FAILURE); in processMessage()
2255 ok = WifiConfigStore.enableNetwork(message.arg1, message.arg2 == 1); in processMessage()
2256 mReplyChannel.replyToMessage(message, message.what, ok ? SUCCESS : FAILURE); in processMessage()
2266 ok = WifiConfigStore.disableNetwork(message.arg1, message.arg2); in processMessage()
2267 mReplyChannel.replyToMessage(message, message.what, ok ? SUCCESS : FAILURE); in processMessage()
2276 ok = WifiConfigStore.saveConfig(); in processMessage()
2277 mReplyChannel.replyToMessage(message, CMD_SAVE_CONFIG, ok ? SUCCESS : FAILURE); in processMessage()
/frameworks/base/docs/html/guide/topics/views/
Dui-xml.jd102 &lt;Button id=&quot;@+id/ok&quot;
112 android:layout_toLeftOf=&quot;@id/ok&quot;
113 android:layout_alignTop=&quot;@id/ok&quot;
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerActivity.java140 dialogBuilder.setPositiveButton(android.R.string.ok, in showConfirm()
/frameworks/base/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_MCReconBlock_s.s205 ; $word0 and $word1 are ok
212 ; $word2 and $word3 are ok (taken care while loading itself)
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbConfirmActivity.java83 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
DUsbPermissionActivity.java94 ap.mPositiveButtonText = getString(android.R.string.ok); in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DRingtonePickerActivity.java161 p.mPositiveButtonText = getString(com.android.internal.R.string.ok); in onCreate()

12