/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | RecapitalizeStatusTests.java | 31 final RecapitalizeStatus status = new RecapitalizeStatus(); in testTrim() local 32 status.start(30, 40, "abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 33 status.trim(); in testTrim() 34 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 35 assertEquals(30, status.getNewCursorStart()); in testTrim() 36 assertEquals(40, status.getNewCursorEnd()); in testTrim() 38 status.start(30, 44, " abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 39 status.trim(); in testTrim() 40 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 41 assertEquals(34, status.getNewCursorStart()); in testTrim() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
D | phNxpExtns.c | 59 NFCSTATUS status = NFCSTATUS_FAILED; in EXTNS_Init() local 84 status = NFCSTATUS_SUCCESS; in EXTNS_Init() 85 return status; in EXTNS_Init() 89 return status; in EXTNS_Init() 123 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCallBack() local 131 status = phNxpExtns_SendMsg (&msg); in EXTNS_MfcCallBack() 132 if (NFCSTATUS_SUCCESS != status) in EXTNS_MfcCallBack() 136 return status; in EXTNS_MfcCallBack() 157 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCheckNDef() local 164 status = phNxpExtns_SendMsg (&msg); in EXTNS_MfcCheckNDef() [all …]
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc_NativeP2pDevice.cpp | 34 static void nfc_jni_presence_check_callback(void* pContext, NFCSTATUS status) in nfc_jni_presence_check_callback() argument 37 LOG_CALLBACK("nfc_jni_presence_check_callback", status); in nfc_jni_presence_check_callback() 40 pCallbackData->status = status; in nfc_jni_presence_check_callback() 46 … phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in nfc_jni_connect_callback() argument 50 LOG_CALLBACK("nfc_jni_connect_callback", status); in nfc_jni_connect_callback() 52 if(status == NFCSTATUS_SUCCESS) in nfc_jni_connect_callback() 60 pCallbackData->status = status; in nfc_jni_connect_callback() 64 … void nfc_jni_disconnect_callback(void *pContext, phLibNfc_Handle /*hRemoteDev*/, NFCSTATUS status) in nfc_jni_disconnect_callback() argument 67 LOG_CALLBACK("nfc_jni_disconnect_callback", status); in nfc_jni_disconnect_callback() 70 pCallbackData->status = status; in nfc_jni_disconnect_callback() [all …]
|
D | com_android_nfc_NativeNfcTag.cpp | 43 static void nfc_jni_tag_rw_callback(void *pContext, NFCSTATUS status) in nfc_jni_tag_rw_callback() argument 46 LOG_CALLBACK("nfc_jni_tag_rw_callback", status); in nfc_jni_tag_rw_callback() 49 pCallbackData->status = status; in nfc_jni_tag_rw_callback() 55 phLibNfc_sRemoteDevInformation_t *psRemoteDevInfo, NFCSTATUS status) in nfc_jni_connect_callback() argument 58 LOG_CALLBACK("nfc_jni_connect_callback", status); in nfc_jni_connect_callback() 61 pCallbackData->status = status; in nfc_jni_connect_callback() 75 phLibNfc_ChkNdef_Info_t info, NFCSTATUS status) in nfc_jni_checkndef_callback() argument 78 LOG_CALLBACK("nfc_jni_checkndef_callback", status); in nfc_jni_checkndef_callback() 80 if(status == NFCSTATUS_OK) in nfc_jni_checkndef_callback() 97 pCallbackData->status = status; in nfc_jni_checkndef_callback() [all …]
|
D | com_android_nfc_NativeNfcManager.cpp | 63 static void nfc_jni_init_callback(void *pContext, NFCSTATUS status); 64 static void nfc_jni_deinit_callback(void *pContext, NFCSTATUS status); 65 static void nfc_jni_discover_callback(void *pContext, NFCSTATUS status); 67 phLibNfc_Handle handle, NFCSTATUS status); 68 static void nfc_jni_llcpcfg_callback(void *pContext, NFCSTATUS status); 72 uint8_t uNofRemoteDev, NFCSTATUS status); 75 phLibNfc_uSeEvtInfo_t *evt_info, NFCSTATUS status); 113 static void nfc_jni_ioctl_callback(void *pContext, phNfc_sData_t* /*pOutput*/, NFCSTATUS status) { in nfc_jni_ioctl_callback() argument 115 LOG_CALLBACK("nfc_jni_ioctl_callback", status); in nfc_jni_ioctl_callback() 118 pCallbackData->status = status; in nfc_jni_ioctl_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/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.c | 68 STATIC void Mfc_FormatNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status); 69 STATIC void Mfc_WriteNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status); 70 STATIC void Mfc_ReadNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status); 71 STATIC void Mfc_CheckNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status); 88 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpExtns_MfcModuleDeInit() local 169 status = NFCSTATUS_SUCCESS; in phNxpExtns_MfcModuleDeInit() 170 return status; in phNxpExtns_MfcModuleDeInit() 189 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpExtns_MfcModuleInit() local 289 status = NFCSTATUS_SUCCESS; in phNxpExtns_MfcModuleInit() 295 if(status != NFCSTATUS_SUCCESS) in phNxpExtns_MfcModuleInit() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hfpclient.cpp | 308 bt_status_t status; in initializeNative() local 335 status = sBluetoothHfpClientInterface->init(&sBluetoothHfpClientCallbacks); in initializeNative() 336 if (status != BT_STATUS_SUCCESS) { in initializeNative() 337 ALOGE("Failed to initialize Bluetooth HFP Client, status: %d", status); in initializeNative() 368 bt_status_t status; in connectNative() local 378 … if ((status = sBluetoothHfpClientInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectNative() 379 ALOGE("Failed AG connection, status: %d", status); in connectNative() 382 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectNative() 387 bt_status_t status; in disconnectNative() local 397 …if ( (status = sBluetoothHfpClientInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS… in disconnectNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 426 bt_status_t status; in initializeNative() local 451 if ( (status = sBluetoothHfpInterface->init(&sBluetoothHfpCallbacks, in initializeNative() 453 ALOGE("Failed to initialize Bluetooth HFP, status: %d", status); in initializeNative() 484 bt_status_t status; in connectHfpNative() local 495 if ((status = sBluetoothHfpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectHfpNative() 496 ALOGE("Failed HF connection, status: %d", status); in connectHfpNative() 499 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative() 504 bt_status_t status; in disconnectHfpNative() local 514 if ( (status = sBluetoothHfpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectHfpNative() 515 ALOGE("Failed HF disconnection, status: %d", status); in disconnectHfpNative() [all …]
|
D | com_android_bluetooth_avrcp.cpp | 205 bt_status_t status; in initNative() local 230 if ( (status = sBluetoothAvrcpInterface->init(&sBluetoothAvrcpCallbacks)) != in initNative() 232 ALOGE("Failed to initialize Bluetooth Avrcp, status: %d", status); in initNative() 261 bt_status_t status; in getPlayStatusRspNative() local 266 if ((status = sBluetoothAvrcpInterface->get_play_status_rsp((btrc_play_status_t)playStatus, in getPlayStatusRspNative() 268 ALOGE("Failed get_play_status_rsp, status: %d", status); in getPlayStatusRspNative() 271 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in getPlayStatusRspNative() 277 bt_status_t status; in getElementAttrRspNative() local 330 if ((status = sBluetoothAvrcpInterface->get_element_attr_rsp(numAttr, pAttrs)) != in getElementAttrRspNative() 332 ALOGE("Failed get_element_attr_rsp, status: %d", status); in getElementAttrRspNative() [all …]
|
D | com_android_bluetooth_hid.cpp | 210 bt_status_t status; in initializeNative() local 236 if ( (status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative() 237 ALOGE("Failed to initialize Bluetooth HID, status: %d", status); in initializeNative() 271 bt_status_t status; in connectHidNative() local 282 if ((status = sBluetoothHidInterface->connect((bt_bdaddr_t *) addr)) != in connectHidNative() 284 ALOGE("Failed HID channel connection, status: %d", status); in connectHidNative() 293 bt_status_t status; in disconnectHidNative() local 304 if ( (status = sBluetoothHidInterface->disconnect((bt_bdaddr_t *) addr)) != in disconnectHidNative() 306 ALOGE("Failed disconnect hid channel, status: %d", status); in disconnectHidNative() 315 bt_status_t status; in getProtocolModeNative() local [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 91 static void adapter_state_change_callback(bt_state_t status) { in adapter_state_change_callback() argument 96 ALOGV("%s: Status is: %d", __FUNCTION__, status); in adapter_state_change_callback() 98 callbackEnv->CallVoidMethod(sJniCallbacksObj, method_stateChangeCallback, (jint)status); in adapter_state_change_callback() 124 static void adapter_properties_callback(bt_status_t status, int num_properties, in adapter_properties_callback() argument 136 ALOGV("%s: Status is: %d, Properties: %d", __FUNCTION__, status, num_properties); in adapter_properties_callback() 138 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback() 139 ALOGE("%s: Status %d is incorrect", __FUNCTION__, status); in adapter_properties_callback() 186 static void remote_device_properties_callback(bt_status_t status, bt_bdaddr_t *bd_addr, in remote_device_properties_callback() argument 193 ALOGV("%s: Status is: %d, Properties: %d", __FUNCTION__, status, num_properties); in remote_device_properties_callback() 195 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback() [all …]
|
D | com_android_bluetooth_hdp.cpp | 109 bt_status_t status; in initializeNative() local 134 if ( (status = sBluetoothHdpInterface->init(&sBluetoothHdpCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative() 135 ALOGE("Failed to initialize Bluetooth HDP, status: %d", status); in initializeNative() 166 bt_status_t status; in registerHealthAppNative() local 188 if ( (status = sBluetoothHdpInterface->register_application(®_param, &app_id)) != in registerHealthAppNative() 190 ALOGE("Failed register health app, status: %d", status); in registerHealthAppNative() 200 bt_status_t status; in unregisterHealthAppNative() local 203 if ((status = sBluetoothHdpInterface->unregister_application(app_id)) != BT_STATUS_SUCCESS) { in unregisterHealthAppNative() 204 ALOGE("Failed to unregister app %d, status: %d", app_id, status); in unregisterHealthAppNative() 206 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in unregisterHealthAppNative() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothShare.java | 274 public static boolean isStatusInformational(int status) { in isStatusInformational() argument 275 return (status >= 100 && status < 200); in isStatusInformational() 282 public static boolean isStatusSuspended(int status) { in isStatusSuspended() argument 283 return (status == STATUS_PENDING); in isStatusSuspended() 289 public static boolean isStatusSuccess(int status) { in isStatusSuccess() argument 290 return (status >= 200 && status < 300); in isStatusSuccess() 296 public static boolean isStatusError(int status) { in isStatusError() argument 297 return (status >= 400 && status < 600); in isStatusError() 303 public static boolean isStatusClientError(int status) { in isStatusClientError() argument 304 return (status >= 400 && status < 500); in isStatusClientError() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | NativeNfcTag.cpp | 174 void nativeNfcTag_doReadCompleted (tNFA_STATUS status) in nativeNfcTag_doReadCompleted() argument 176 ALOGD ("%s: status=0x%X; is reading=%u", __FUNCTION__, status, sIsReadingNdefMessage); in nativeNfcTag_doReadCompleted() 181 if (status != NFA_STATUS_OK) in nativeNfcTag_doReadCompleted() 228 …ALOGD ("%s: NFA_NDEF_REGISTER_EVT; status=0x%X; h=0x%X", __FUNCTION__, ndef_reg.status, ndef_reg.n… in ndefHandlerCallback() 263 tNFA_STATUS status = NFA_STATUS_FAILED; in nativeNfcTag_doRead() local 280 status = EXTNS_MfcReadNDef (); in nativeNfcTag_doRead() 284 status = NFA_RwReadNDef (); in nativeNfcTag_doRead() 373 tNFA_STATUS status = 0; in nativeNfcTag_doWrite() local 405 status = EXTNS_MfcFormatTag (mfc_key1, sizeof(mfc_key1)); in nativeNfcTag_doWrite() 406 if (status != NFA_STATUS_OK) in nativeNfcTag_doWrite() [all …]
|
D | NativeNfcManager.cpp | 52 … extern void nativeNfcTag_doTransceiveStatus (tNFA_STATUS status, uint8_t * buf, uint32_t buflen); 55 extern void nativeNfcTag_doDeactivateStatus (int status); 57 …extern void nativeNfcTag_doCheckNdefResult (tNFA_STATUS status, uint32_t max_size, uint32_t curren… 58 extern void nativeNfcTag_doMakeReadonlyResult (tNFA_STATUS status); 59 extern void nativeNfcTag_doPresenceCheckResult (tNFA_STATUS status); 62 extern void nativeNfcTag_doReadCompleted (tNFA_STATUS status); 221 tNFA_STATUS status = NFA_STATUS_FAILED; in nfaConnectionCallback() local 228 ALOGD("%s: NFA_POLL_ENABLED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() 237 ALOGD("%s: NFA_POLL_DISABLED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() 246 ALOGD("%s: NFA_RF_DISCOVERY_STARTED_EVT: status = %u", __FUNCTION__, eventData->status); in nfaConnectionCallback() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/ |
D | Downloads.java | 512 public static boolean isStatusInformational(int status) { in isStatusInformational() argument 513 return (status >= 100 && status < 200); in isStatusInformational() 519 public static boolean isStatusSuccess(int status) { in isStatusSuccess() argument 520 return (status >= 200 && status < 300); in isStatusSuccess() 526 public static boolean isStatusError(int status) { in isStatusError() argument 527 return (status >= 400 && status < 600); in isStatusError() 533 public static boolean isStatusClientError(int status) { in isStatusClientError() argument 534 return (status >= 400 && status < 500); in isStatusClientError() 540 public static boolean isStatusServerError(int status) { in isStatusServerError() argument 541 return (status >= 500 && status < 600); in isStatusServerError() [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/services/Car/libvehiclenetwork/native/ |
D | IVehicleNetwork.cpp | 68 status_t status = remote()->transact(LIST_PROPERTIES, data, &reply); in listProperties() local 69 if (status == NO_ERROR) { in listProperties() 80 status = reply.readBlob(size, blob.blob); in listProperties() 81 if (status != NO_ERROR) { in listProperties() 82 ALOGE("listProperties, cannot read blob %d", status); in listProperties() 96 status = VehicleNetworkProtoUtil::fromVehiclePropConfigs(*configs.get(), in listProperties() 98 if (status != NO_ERROR) { in listProperties() 99 ALOGE("listProperties, cannot convert VehiclePropConfigs %d", status); in listProperties() 110 status_t status = VehiclePropValueBinderUtil::writeToParcel(data, value); in setProperty() local 111 if (status != NO_ERROR) { in setProperty() [all …]
|
D | IVehicleNetworkHalMock.cpp | 60 status_t status = remote()->transact(ON_LIST_PROPERTIES, data, &reply); in onListProperties() local 61 if (status == NO_ERROR) { in onListProperties() 72 status = reply.readBlob(size, blob.blob); in onListProperties() 73 if (status != NO_ERROR) { in onListProperties() 74 ALOGE("listProperties, cannot read blob %d", status); in onListProperties() 88 status = VehicleNetworkProtoUtil::fromVehiclePropConfigs(*configs.get(), in onListProperties() 90 if (status != NO_ERROR) { in onListProperties() 91 ALOGE("listProperties, cannot convert VehiclePropConfigs %d", status); in onListProperties() 102 status_t status = VehiclePropValueBinderUtil::writeToParcel(data, value); in onPropertySet() local 103 if (status != NO_ERROR) { in onPropertySet() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 542 int status, int offset, byte[] value) { in sendResponse() argument 545 service.sendResponse(serverIf, address, requestId, status, offset, value); in sendResponse() 685 void onClientRegistered(int status, int clientIf, long uuidLsb, long uuidMsb) in onClientRegistered() argument 691 if (status == 0) { in onClientRegistered() 697 app.callback.onClientRegistered(status, clientIf); in onClientRegistered() 701 void onConnected(int clientIf, int connId, int status, String address) in onConnected() argument 706 if (status == 0) mClientMap.addConnection(clientIf, connId, address); in onConnected() 709 app.callback.onClientConnectionState(status, clientIf, in onConnected() 710 (status==BluetoothGatt.GATT_SUCCESS), address); in onConnected() 714 void onDisconnected(int clientIf, int connId, int status, String address) in onDisconnected() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | WordListPreference.java | 72 final String description, final int status, final int filesize) { in WordListPreference() argument 85 setStatus(status); in WordListPreference() 89 public void setStatus(final int status) { in setStatus() argument 90 if (status == mStatus) return; in setStatus() 91 mStatus = status; in setStatus() 92 setSummary(getSummary(status)); in setStatus() 95 public boolean hasStatus(final int status) { in hasStatus() argument 96 return status == mStatus; in hasStatus() 112 private String getSummary(final int status) { in getSummary() argument 114 switch (status) { in getSummary() [all …]
|
D | ActionBatch.java | 116 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute() local 118 if (MetadataDbHelper.STATUS_DOWNLOADING == status) { in execute() 123 } else if (MetadataDbHelper.STATUS_AVAILABLE != status in execute() 124 && MetadataDbHelper.STATUS_RETRYING != status) { in execute() 126 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + "' : " + status in execute() 181 final int status = mWordListValues.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute() local 182 if (MetadataDbHelper.STATUS_DOWNLOADING != status) { in execute() 184 Log.e(TAG, "Unexpected state of the word list '" + id + "' : " + status in execute() 227 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute() local 228 if (MetadataDbHelper.STATUS_DISABLED != status in execute() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | AccountPreference.java | 80 public void setSyncStatus(int status, boolean updateSummary) { in setSyncStatus() argument 81 mStatus = status; in setSyncStatus() 83 mSyncStatusIcon.setImageResource(getSyncStatusIcon(status)); in setSyncStatus() 87 setSummary(getSyncStatusMessage(status)); in setSyncStatus() 91 private int getSyncStatusMessage(int status) { in getSyncStatusMessage() argument 93 switch (status) { in getSyncStatusMessage() 108 Log.e(TAG, "Unknown sync status: " + status); in getSyncStatusMessage() 113 private int getSyncStatusIcon(int status) { in getSyncStatusIcon() argument 115 switch (status) { in getSyncStatusIcon() 128 Log.e(TAG, "Unknown sync status: " + status); in getSyncStatusIcon() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | DownloadMmsAction.java | 120 final int status = message.getStatus(); in queueAction() local 132 actionParameters.putBoolean(KEY_AUTO_DOWNLOAD, isAutoDownload(status)); in queueAction() 139 final int downloadingStatus = getDownloadingStatus(status); in queueAction() 162 if (status == MessageData.BUGLE_STATUS_INCOMING_RETRYING_AUTO_DOWNLOAD) { in queueAction() 181 private static boolean isAutoDownload(final int status) { in isAutoDownload() argument 182 switch (status) { in isAutoDownload() 188 Assert.fail("isAutoDownload: invalid input status " + status); in isAutoDownload() 199 private static int getDownloadingStatus(final int status) { in getDownloadingStatus() argument 200 switch (status) { in getDownloadingStatus() 206 Assert.fail("isAutoDownload: invalid input status " + status); in getDownloadingStatus() [all …]
|