/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | RecapitalizeStatusTests.java | 27 final RecapitalizeStatus status = new RecapitalizeStatus(); in testTrim() local 28 status.initialize(30, 40, "abcdefghij", Locale.ENGLISH, " "); in testTrim() 29 status.trim(); in testTrim() 30 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 31 assertEquals(30, status.getNewCursorStart()); in testTrim() 32 assertEquals(40, status.getNewCursorEnd()); in testTrim() 34 status.initialize(30, 44, " abcdefghij", Locale.ENGLISH, " "); in testTrim() 35 status.trim(); in testTrim() 36 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 37 assertEquals(34, status.getNewCursorStart()); in testTrim() [all …]
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeNfcTag.cpp | 42 static void nfc_jni_tag_rw_callback(void *pContext, NFCSTATUS status) in nfc_jni_tag_rw_callback() argument 45 LOG_CALLBACK("nfc_jni_tag_rw_callback", status); in nfc_jni_tag_rw_callback() 48 pCallbackData->status = status; in nfc_jni_tag_rw_callback() 54 phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in nfc_jni_connect_callback() argument 57 LOG_CALLBACK("nfc_jni_connect_callback", status); in nfc_jni_connect_callback() 60 pCallbackData->status = status; in nfc_jni_connect_callback() 74 phLibNfc_ChkNdef_Info_t info, NFCSTATUS status) in nfc_jni_checkndef_callback() argument 77 LOG_CALLBACK("nfc_jni_checkndef_callback", status); in nfc_jni_checkndef_callback() 79 if(status == NFCSTATUS_OK) in nfc_jni_checkndef_callback() 96 pCallbackData->status = status; in nfc_jni_checkndef_callback() [all …]
|
D | com_android_nfc_NativeNfcManager.cpp | 69 static void nfc_jni_init_callback(void *pContext, NFCSTATUS status); 70 static void nfc_jni_deinit_callback(void *pContext, NFCSTATUS status); 71 static void nfc_jni_discover_callback(void *pContext, NFCSTATUS status); 73 phLibNfc_Handle handle, NFCSTATUS status); 74 static void nfc_jni_llcpcfg_callback(void *pContext, NFCSTATUS status); 78 uint8_t uNofRemoteDev, NFCSTATUS status); 81 phLibNfc_uSeEvtInfo_t *evt_info, NFCSTATUS status); 114 static void nfc_jni_ioctl_callback(void *pContext, phNfc_sData_t *pOutput, NFCSTATUS status) { in nfc_jni_ioctl_callback() argument 116 LOG_CALLBACK("nfc_jni_ioctl_callback", status); in nfc_jni_ioctl_callback() 119 pCallbackData->status = status; in nfc_jni_ioctl_callback() [all …]
|
D | com_android_nfc_NativeP2pDevice.cpp | 33 static void nfc_jni_presence_check_callback(void* pContext, NFCSTATUS status) in nfc_jni_presence_check_callback() argument 36 LOG_CALLBACK("nfc_jni_presence_check_callback", status); in nfc_jni_presence_check_callback() 39 pCallbackData->status = status; in nfc_jni_presence_check_callback() 45 … phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in nfc_jni_connect_callback() argument 49 LOG_CALLBACK("nfc_jni_connect_callback", status); in nfc_jni_connect_callback() 51 if(status == NFCSTATUS_SUCCESS) in nfc_jni_connect_callback() 59 pCallbackData->status = status; in nfc_jni_connect_callback() 63 …atic void nfc_jni_disconnect_callback(void *pContext, phLibNfc_Handle hRemoteDev, NFCSTATUS status) in nfc_jni_disconnect_callback() argument 66 LOG_CALLBACK("nfc_jni_disconnect_callback", status); in nfc_jni_disconnect_callback() 69 pCallbackData->status = status; in nfc_jni_disconnect_callback() [all …]
|
D | com_android_nfc_NativeNfcSecureElement.cpp | 33 NFCSTATUS status) in com_android_nfc_jni_ioctl_callback() argument 37 if (status == NFCSTATUS_SUCCESS ) in com_android_nfc_jni_ioctl_callback() 39 LOG_CALLBACK("> IOCTL successful",status); in com_android_nfc_jni_ioctl_callback() 43 LOG_CALLBACK("> IOCTL error",status); in com_android_nfc_jni_ioctl_callback() 47 pContextData->status = status; in com_android_nfc_jni_ioctl_callback() 52 phLibNfc_Handle handle, phNfc_sData_t *pResBuffer, NFCSTATUS status) in com_android_nfc_jni_transceive_callback() argument 56 LOG_CALLBACK("com_android_nfc_jni_transceive_callback", status); in com_android_nfc_jni_transceive_callback() 59 pContextData->status = status; in com_android_nfc_jni_transceive_callback() 66 … phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in com_android_nfc_jni_connect_callback() argument 70 LOG_CALLBACK("com_android_nfc_jni_connect_callback", status); in com_android_nfc_jni_connect_callback() [all …]
|
D | com_android_nfc_NativeLlcpSocket.cpp | 29 NFCSTATUS status) in nfc_jni_disconnect_callback() argument 32 LOG_CALLBACK("nfc_jni_disconnect_callback", status); in nfc_jni_disconnect_callback() 35 pCallbackData->status = status; in nfc_jni_disconnect_callback() 40 static void nfc_jni_connect_callback(void* pContext, uint8_t nErrCode, NFCSTATUS status) in nfc_jni_connect_callback() argument 43 LOG_CALLBACK("nfc_jni_llcp_connect_callback", status); in nfc_jni_connect_callback() 45 if(status == NFCSTATUS_SUCCESS) in nfc_jni_connect_callback() 82 pCallbackData->status = status; in nfc_jni_connect_callback() 89 static void nfc_jni_receive_callback(void* pContext, NFCSTATUS status) in nfc_jni_receive_callback() argument 92 LOG_CALLBACK("nfc_jni_llcp_receive_callback", status); in nfc_jni_receive_callback() 95 pCallbackData->status = status; in nfc_jni_receive_callback() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hfp.cpp | 270 bt_status_t status; in initializeNative() local 295 if ( (status = sBluetoothHfpInterface->init(&sBluetoothHfpCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative() 296 ALOGE("Failed to initialize Bluetooth HFP, status: %d", status); in initializeNative() 306 bt_status_t status; in cleanupNative() local 328 bt_status_t status; in connectHfpNative() local 339 if ((status = sBluetoothHfpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectHfpNative() 340 ALOGE("Failed HF connection, status: %d", status); in connectHfpNative() 343 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative() 348 bt_status_t status; in disconnectHfpNative() local 358 if ( (status = sBluetoothHfpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectHfpNative() [all …]
|
D | com_android_bluetooth_gatt.cpp | 199 void btgattc_register_app_cb(int status, int clientIf, bt_uuid_t *app_uuid) in btgattc_register_app_cb() argument 202 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb() 228 void btgattc_open_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) in btgattc_open_cb() argument 239 clientIf, conn_id, status, address); in btgattc_open_cb() 244 void btgattc_close_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) in btgattc_close_cb() argument 254 clientIf, conn_id, status, address); in btgattc_close_cb() 259 void btgattc_search_complete_cb(int conn_id, int status) in btgattc_search_complete_cb() argument 263 conn_id, status); in btgattc_search_complete_cb() 275 void btgattc_get_characteristic_cb(int conn_id, int status, in btgattc_get_characteristic_cb() argument 281 , conn_id, status, SRVC_ID_PARAMS(srvc_id), CHAR_ID_PARAMS(char_id) in btgattc_get_characteristic_cb() [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 78 static void adapter_state_change_callback(bt_state_t status) { in adapter_state_change_callback() argument 83 ALOGV("%s: Status is: %d", __FUNCTION__, status); in adapter_state_change_callback() 85 callbackEnv->CallVoidMethod(sJniCallbacksObj, method_stateChangeCallback, (jint)status); in adapter_state_change_callback() 111 static void adapter_properties_callback(bt_status_t status, int num_properties, in adapter_properties_callback() argument 123 ALOGV("%s: Status is: %d, Properties: %d", __FUNCTION__, status, num_properties); in adapter_properties_callback() 125 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback() 126 ALOGE("%s: Status %d is incorrect", __FUNCTION__, status); in adapter_properties_callback() 173 static void remote_device_properties_callback(bt_status_t status, bt_bdaddr_t *bd_addr, in remote_device_properties_callback() argument 180 ALOGV("%s: Status is: %d, Properties: %d", __FUNCTION__, status, num_properties); in remote_device_properties_callback() 182 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback() [all …]
|
D | com_android_bluetooth_hid.cpp | 180 bt_status_t status; in initializeNative() local 206 if ( (status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative() 207 ALOGE("Failed to initialize Bluetooth HID, status: %d", status); in initializeNative() 219 bt_status_t status; in cleanupNative() local 242 bt_status_t status; in connectHidNative() local 253 if ((status = sBluetoothHidInterface->connect((bt_bdaddr_t *) addr)) != in connectHidNative() 255 ALOGE("Failed HID channel connection, status: %d", status); in connectHidNative() 264 bt_status_t status; in disconnectHidNative() local 275 if ( (status = sBluetoothHidInterface->disconnect((bt_bdaddr_t *) addr)) != in disconnectHidNative() 277 ALOGE("Failed disconnect hid channel, status: %d", status); in disconnectHidNative() [all …]
|
D | com_android_bluetooth_avrcp.cpp | 123 bt_status_t status; in initNative() local 148 if ( (status = sBluetoothAvrcpInterface->init(&sBluetoothAvrcpCallbacks)) != in initNative() 150 ALOGE("Failed to initialize Bluetooth Avrcp, status: %d", status); in initNative() 179 bt_status_t status; in getPlayStatusRspNative() local 184 if ((status = sBluetoothAvrcpInterface->get_play_status_rsp((btrc_play_status_t)playStatus, in getPlayStatusRspNative() 186 ALOGE("Failed get_play_status_rsp, status: %d", status); in getPlayStatusRspNative() 189 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in getPlayStatusRspNative() 195 bt_status_t status; in getElementAttrRspNative() local 248 if ((status = sBluetoothAvrcpInterface->get_element_attr_rsp(numAttr, pAttrs)) != in getElementAttrRspNative() 250 ALOGE("Failed get_element_attr_rsp, status: %d", status); in getElementAttrRspNative() [all …]
|
D | com_android_bluetooth_hdp.cpp | 135 bt_status_t status; in initializeNative() local 160 if ( (status = sBluetoothHdpInterface->init(&sBluetoothHdpCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative() 161 ALOGE("Failed to initialize Bluetooth HDP, status: %d", status); in initializeNative() 171 bt_status_t status; in cleanupNative() local 193 bt_status_t status; in registerHealthAppNative() local 212 if ( (status = sBluetoothHdpInterface->register_application(®_param, &app_id)) != in registerHealthAppNative() 214 ALOGE("Failed register health app, status: %d", status); in registerHealthAppNative() 224 bt_status_t status; in unregisterHealthAppNative() local 227 if ((status = sBluetoothHdpInterface->unregister_application(app_id)) != BT_STATUS_SUCCESS) { in unregisterHealthAppNative() 228 ALOGE("Failed to unregister app %d, status: %d", app_id, status); in unregisterHealthAppNative() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | NativeNfcTag.cpp | 178 void nativeNfcTag_doReadCompleted (tNFA_STATUS status) in nativeNfcTag_doReadCompleted() argument 180 ALOGD ("%s: status=0x%X; is reading=%u", __FUNCTION__, status, sIsReadingNdefMessage); in nativeNfcTag_doReadCompleted() 185 if (status != NFA_STATUS_OK) in nativeNfcTag_doReadCompleted() 217 …ALOGD ("%s: NFA_NDEF_REGISTER_EVT; status=0x%X; h=0x%X", __FUNCTION__, ndef_reg.status, ndef_reg.n… in ndefHandlerCallback() 252 tNFA_STATUS status = NFA_STATUS_FAILED; in nativeNfcTag_doRead() local 267 status = NFA_RwReadNDef (); in nativeNfcTag_doRead() 355 tNFA_STATUS status = 0; in nativeNfcTag_doWrite() local 382 status = NFA_RwFormatTag (); in nativeNfcTag_doWrite() 389 status = NFA_RwWriteNDef (p_data, bytes.size()); in nativeNfcTag_doWrite() 395 …status = NDEF_MsgAddRec (buffer, maxBufferSize, &curDataSize, NDEF_TNF_EMPTY, NULL, 0, NULL, 0, NU… in nativeNfcTag_doWrite() [all …]
|
D | NativeNfcManager.cpp | 51 extern void nativeNfcTag_doDeactivateStatus (int status); 53 …extern void nativeNfcTag_doCheckNdefResult (tNFA_STATUS status, uint32_t max_size, uint32_t curren… 54 extern void nativeNfcTag_doMakeReadonlyResult (tNFA_STATUS status); 55 extern void nativeNfcTag_doPresenceCheckResult (tNFA_STATUS status); 58 extern void nativeNfcTag_doReadCompleted (tNFA_STATUS status); 210 tNFA_STATUS status = NFA_STATUS_FAILED; in nfaConnectionCallback() local 231 ALOGD("%s: NFA_POLL_ENABLED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() 240 ALOGD("%s: NFA_POLL_DISABLED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() 249 ALOGD("%s: NFA_RF_DISCOVERY_STARTED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() 258 ALOGD("%s: NFA_RF_DISCOVERY_STOPPED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | CommandStatusException.java | 90 public static boolean isNeedsProvisioning(int status) { in isNeedsProvisioning() argument 91 return (status == CommandStatus.NEEDS_PROVISIONING || in isNeedsProvisioning() 92 status == CommandStatus.NEEDS_PROVISIONING_REFRESH || in isNeedsProvisioning() 93 status == CommandStatus.NEEDS_PROVISIONING_INVALID || in isNeedsProvisioning() 94 status == CommandStatus.NEEDS_PROVISIONING_WIPE); in isNeedsProvisioning() 97 public static boolean isBadSyncKey(int status) { in isBadSyncKey() argument 98 return (status == CommandStatus.SYNC_STATE_CORRUPT || in isBadSyncKey() 99 status == CommandStatus.SYNC_STATE_INVALID); in isBadSyncKey() 102 public static boolean isDeniedAccess(int status) { in isDeniedAccess() argument 103 return (status == CommandStatus.USER_DISABLED_FOR_SYNC || in isDeniedAccess() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 455 int status, int offset, byte[] value) { in sendResponse() argument 458 service.sendResponse(serverIf, address, requestId, status, offset, value); in sendResponse() 523 void onClientRegistered(int status, int clientIf, long uuidLsb, long uuidMsb) in onClientRegistered() argument 531 app.callback.onClientRegistered(status, clientIf); in onClientRegistered() 535 void onConnected(int clientIf, int connId, int status, String address) in onConnected() argument 540 if (status == 0) mClientMap.addConnection(clientIf, connId, address); in onConnected() 543 app.callback.onClientConnectionState(status, clientIf, true, address); in onConnected() 547 void onDisconnected(int clientIf, int connId, int status, String address) in onDisconnected() argument 556 app.callback.onClientConnectionState(status, clientIf, false, address); in onDisconnected() 560 void onSearchCompleted(int connId, int status) throws RemoteException { in onSearchCompleted() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothShare.java | 280 public static boolean isStatusInformational(int status) { in isStatusInformational() argument 281 return (status >= 100 && status < 200); in isStatusInformational() 288 public static boolean isStatusSuspended(int status) { in isStatusSuspended() argument 289 return (status == STATUS_PENDING); in isStatusSuspended() 295 public static boolean isStatusSuccess(int status) { in isStatusSuccess() argument 296 return (status >= 200 && status < 300); in isStatusSuccess() 302 public static boolean isStatusError(int status) { in isStatusError() argument 303 return (status >= 400 && status < 600); in isStatusError() 309 public static boolean isStatusClientError(int status) { in isStatusClientError() argument 310 return (status >= 400 && status < 500); in isStatusClientError() [all …]
|
D | BluetoothOppObexClientSession.java | 264 int status = BluetoothShare.STATUS_SUCCESS; in doSend() local 271 status = BluetoothShare.STATUS_CANCELED; in doSend() 276 status = BluetoothShare.STATUS_CONNECTION_ERROR; in doSend() 278 if (status == BluetoothShare.STATUS_SUCCESS) { in doSend() 281 status = sendFile(mFileInfo); in doSend() 284 status = mFileInfo.mStatus; in doSend() 288 Constants.updateShareStatus(mContext1, mInfo.mId, status); in doSend() 291 if (status == BluetoothShare.STATUS_SUCCESS) { in doSend() 299 mInfo.mStatus = status; in doSend() 340 int status = BluetoothShare.STATUS_SUCCESS; in sendFile() local [all …]
|
D | BluetoothOppObexServerSession.java | 348 int status = BluetoothShare.STATUS_SUCCESS; in onPut() local 356 status = mFileInfo.mStatus; in onPut() 359 Constants.updateShareStatus(mContext, mInfo.mId, status); in onPut() 372 status = receiveFile(mFileInfo, op); in onPut() 376 if (status != BluetoothShare.STATUS_SUCCESS) { in onPut() 379 Constants.updateShareStatus(mContext, mInfo.mId, status); in onPut() 382 if (status == BluetoothShare.STATUS_SUCCESS) { in onPut() 390 mInfo.mStatus = status; in onPut() 415 status = BluetoothShare.STATUS_CANCELED; in onPut() 416 Constants.updateShareStatus(mContext, mInfo.mId, status); in onPut() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | BitmapManager.java | 72 ThreadStatus status = mThreadStatus.get(t); in getOrCreateThreadStatus() local 73 if (status == null) { in getOrCreateThreadStatus() 74 status = new ThreadStatus(); in getOrCreateThreadStatus() 75 mThreadStatus.put(t, status); in getOrCreateThreadStatus() 77 return status; in getOrCreateThreadStatus() 90 ThreadStatus status = mThreadStatus.get(t); in removeDecodingOptions() local 91 status.mOptions = null; in removeDecodingOptions() 99 ThreadStatus status = mThreadStatus.get(t); in canThreadDecoding() local 100 if (status == null) { in canThreadDecoding() 105 boolean result = (status.mState != State.CANCEL); in canThreadDecoding() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | ActionBatch.java | 117 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute() local 120 if (MetadataDbHelper.STATUS_DOWNLOADING == status) { in execute() 129 } else if (MetadataDbHelper.STATUS_AVAILABLE != status) { in execute() 131 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + "' : " + status in execute() 209 final int status = mWordListValues.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute() local 210 if (MetadataDbHelper.STATUS_DOWNLOADING != status) { in execute() 212 Log.e(TAG, "Unexpected state of the word list '" + id + "' : " + status in execute() 247 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute() local 248 if (MetadataDbHelper.STATUS_DISABLED != status in execute() 249 && MetadataDbHelper.STATUS_DELETING != status) { in execute() [all …]
|
D | WordListPreference.java | 77 final String description, final int status, final int filesize) { in WordListPreference() argument 91 setStatus(status); in WordListPreference() 95 private void setStatus(final int status) { in setStatus() argument 96 if (status == mStatus) return; in setStatus() 97 mStatus = status; in setStatus() 98 setSummary(getSummary(status)); in setStatus() 101 private String getSummary(final int status) { in getSummary() argument 102 switch (status) { in getSummary() 140 private int getButtonSwitcherStatus(final int status) { in getButtonSwitcherStatus() argument 141 if (status >= sStatusActionList.length) { in getButtonSwitcherStatus() [all …]
|
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/ |
D | NativeNfcTag.java | 146 int status = -1; in connectWithStatus() local 159 status = doConnect(mTechHandles[i]); in connectWithStatus() 162 status = reconnectWithStatus(mTechHandles[i]); in connectWithStatus() 164 if (status == 0) { in connectWithStatus() 177 status = 0; in connectWithStatus() 184 status = -1; in connectWithStatus() 186 status = 0; in connectWithStatus() 189 if (status == 0) { in connectWithStatus() 200 return status; in connectWithStatus() 254 int status = doReconnect(); in reconnectWithStatus() local [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndbdic.c | 619 loctset->loct.status = NJ_ST_SEARCH_END_EXT; in search_node() 680 loctset->loct.status = NJ_ST_SEARCH_END_EXT; in search_node() 734 loctset->loct.status = NJ_ST_SEARCH_END_EXT; in search_node() 747 loctset->loct.status = NJ_ST_SEARCH_END_EXT; in search_node() 760 loctset->loct.status = NJ_ST_SEARCH_END; in search_node() 773 loctset->loct.status = NJ_ST_SEARCH_END_EXT; in search_node() 802 loctset->loct.status = NJ_ST_SEARCH_END; in search_node() 819 loctset->loct.status = NJ_ST_SEARCH_END; in search_node() 1008 if (GET_LOCATION_STATUS(loctset->loct.status) != NJ_ST_SEARCH_NO_INIT) { in bdic_search_data() 1012 loctset->loct.status = NJ_ST_SEARCH_END; in bdic_search_data() [all …]
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcTag.java | 143 int status = -1; in connectWithStatus() local 157 status = doConnect(i); in connectWithStatus() 162 status = reconnectWithStatus(i); in connectWithStatus() 164 if (status == 0) { in connectWithStatus() 181 status = reconnectWithStatus(i); in connectWithStatus() 202 if (status == 0) { in connectWithStatus() 213 return status; in connectWithStatus() 267 int status = doReconnect(); in reconnectWithStatus() local 271 return status; in reconnectWithStatus() 283 int status = doHandleReconnect(handle); in reconnectWithStatus() local [all …]
|