Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DRecapitalizeStatusTests.java31 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/mifare/
DphNxpExtns_MifareStd.c71 STATIC void Mfc_FormatNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status);
72 STATIC void Mfc_WriteNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status);
73 STATIC void Mfc_ReadNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status);
74 STATIC void Mfc_CheckNdef_Completion_Routine(void *NdefCtxt, NFCSTATUS status);
91 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpExtns_MfcModuleDeInit() local
172 status = NFCSTATUS_SUCCESS; in phNxpExtns_MfcModuleDeInit()
173 return status; in phNxpExtns_MfcModuleDeInit()
192 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpExtns_MfcModuleInit() local
292 status = NFCSTATUS_SUCCESS; in phNxpExtns_MfcModuleInit()
298 if(status != NFCSTATUS_SUCCESS) in phNxpExtns_MfcModuleInit()
[all …]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/
DphNxpExtns.c62 NFCSTATUS status = NFCSTATUS_FAILED; in EXTNS_Init() local
87 status = NFCSTATUS_SUCCESS; in EXTNS_Init()
88 return status; in EXTNS_Init()
92 return status; in EXTNS_Init()
126 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCallBack() local
134 status = phNxpExtns_SendMsg (&msg); in EXTNS_MfcCallBack()
135 if (NFCSTATUS_SUCCESS != status) in EXTNS_MfcCallBack()
139 return status; in EXTNS_MfcCallBack()
160 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCheckNDef() local
167 status = phNxpExtns_SendMsg (&msg); in EXTNS_MfcCheckNDef()
[all …]
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp174 void nativeNfcTag_doReadCompleted (tNFA_STATUS status) in nativeNfcTag_doReadCompleted() argument
176 ALOGV("%s: status=0x%X; is reading=%u", __func__, status, sIsReadingNdefMessage); in nativeNfcTag_doReadCompleted()
181 if (status != NFA_STATUS_OK) in nativeNfcTag_doReadCompleted()
228 …ALOGV("%s: NFA_NDEF_REGISTER_EVT; status=0x%X; h=0x%X", __func__, ndef_reg.status, ndef_reg.ndef_t… 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 …]
DNativeNfcManager.cpp52 … 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 ALOGV("%s: NFA_POLL_ENABLED_EVT: status = %u", __func__, eventData->status); in nfaConnectionCallback()
237 ALOGV("%s: NFA_POLL_DISABLED_EVT: status = %u", __func__, eventData->status); in nfaConnectionCallback()
246 ALOGV("%s: NFA_RF_DISCOVERY_STARTED_EVT: status = %u", __func__, eventData->status); in nfaConnectionCallback()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3EventHandler.java111 VoicemailStatus.Editor status, in handleEvent() argument
116 handled = handleConfigurationEvent(context, status, event); in handleEvent()
119 handled = handleDataChannelEvent(status, event); in handleEvent()
122 handled = handleNotificationChannelEvent(status, event); in handleEvent()
125 handled = handleOtherEvent(status, event); in handleEvent()
131 DefaultOmtpEventHandler.handleEvent(context, config, status, event); in handleEvent()
136 Context context, VoicemailStatus.Editor status, OmtpEvents event) { in handleConfigurationEvent() argument
139 if (!isPinRandomized(context, status.getPhoneAccountHandle())) { in handleConfigurationEvent()
142 postError(status, PIN_NOT_SET); in handleConfigurationEvent()
146 if (isPinRandomized(context, status.getPhoneAccountHandle())) { in handleConfigurationEvent()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/
DOmtpVoicemailMessageCreator.java49 Context context, VoicemailStatus status, final VoicemailStatusReader statusReader) { in create() argument
50 if (Status.CONFIGURATION_STATE_OK == status.configurationState in create()
51 && Status.DATA_CHANNEL_STATE_OK == status.dataChannelState in create()
52 && Status.NOTIFICATION_CHANNEL_STATE_OK == status.notificationChannelState) { in create()
53 return checkQuota(context, status, statusReader); in create()
57 if (Status.CONFIGURATION_STATE_CONFIGURING == status.configurationState in create()
58 && Status.DATA_CHANNEL_STATE_OK == status.dataChannelState in create()
59 && Status.NOTIFICATION_CHANNEL_STATE_OK == status.notificationChannelState) { in create()
66 if (Status.NOTIFICATION_CHANNEL_STATE_NO_CONNECTION == status.notificationChannelState) { in create()
67 return createNoSignalMessage(context, status); in create()
[all …]
DVvm3VoicemailMessageCreator.java93 final VoicemailStatus status, in create() argument
95 VoicemailErrorMessage tosMessage = maybeShowTosMessage(context, status, statusReader); in create()
100 if (VMS_DNS_FAILURE == status.dataChannelState) { in create()
104 VoicemailErrorMessage.createRetryAction(context, status), in create()
108 if (VMG_DNS_FAILURE == status.configurationState) { in create()
112 VoicemailErrorMessage.createRetryAction(context, status), in create()
116 if (SPG_DNS_FAILURE == status.configurationState) { in create()
120 VoicemailErrorMessage.createRetryAction(context, status), in create()
124 if (VMS_NO_CELLULAR == status.dataChannelState) { in create()
128 VoicemailErrorMessage.createRetryAction(context, status), in create()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfpclient.cpp408 bt_status_t status = in initializeNative() local
410 if (status != BT_STATUS_SUCCESS) { in initializeNative()
411 ALOGE("Failed to initialize Bluetooth HFP Client, status: %d", status); in initializeNative()
448 bt_status_t status = in connectNative() local
450 if (status != BT_STATUS_SUCCESS) { in connectNative()
451 ALOGE("Failed AG connection, status: %d", status); in connectNative()
454 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectNative()
467 bt_status_t status = in disconnectNative() local
469 if (status != BT_STATUS_SUCCESS) { in disconnectNative()
470 ALOGE("Failed AG disconnection, status: %d", status); in disconnectNative()
[all …]
Dcom_android_bluetooth_hfp.cpp436 bt_status_t status = sBluetoothHfpInterface->init( in initializeNative() local
438 if (status != BT_STATUS_SUCCESS) { in initializeNative()
439 ALOGE("Failed to initialize Bluetooth HFP, status: %d", status); in initializeNative()
482 bt_status_t status = sBluetoothHfpInterface->connect((bt_bdaddr_t*)addr); in connectHfpNative() local
483 if (status != BT_STATUS_SUCCESS) { in connectHfpNative()
484 ALOGE("Failed HF connection, status: %d", status); in connectHfpNative()
487 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative()
501 bt_status_t status = sBluetoothHfpInterface->disconnect((bt_bdaddr_t*)addr); in disconnectHfpNative() local
502 if (status != BT_STATUS_SUCCESS) { in disconnectHfpNative()
503 ALOGE("Failed HF disconnection, status: %d", status); in disconnectHfpNative()
[all …]
Dcom_android_bluetooth_avrcp.cpp589 bt_status_t status = in initNative() local
591 if (status != BT_STATUS_SUCCESS) { in initNative()
592 ALOGE("Failed to initialize Bluetooth Avrcp, status: %d", status); in initNative()
632 bt_status_t status = sBluetoothAvrcpInterface->get_play_status_rsp( in getPlayStatusRspNative() local
634 if (status != BT_STATUS_SUCCESS) { in getPlayStatusRspNative()
635 ALOGE("Failed get_play_status_rsp, status: %d", status); in getPlayStatusRspNative()
638 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in getPlayStatusRspNative()
696 bt_status_t status = in getElementAttrRspNative() local
698 if (status != BT_STATUS_SUCCESS) { in getElementAttrRspNative()
699 ALOGE("Failed get_element_attr_rsp, status: %d", status); in getElementAttrRspNative()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp71 static void adapter_state_change_callback(bt_state_t status) { in adapter_state_change_callback() argument
74 ALOGV("%s: Status is: %d", __func__, status); in adapter_state_change_callback()
77 (jint)status); in adapter_state_change_callback()
98 static void adapter_properties_callback(bt_status_t status, int num_properties, in adapter_properties_callback() argument
103 ALOGV("%s: Status is: %d, Properties: %d", __func__, status, num_properties); in adapter_properties_callback()
105 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback()
106 ALOGE("%s: Status %d is incorrect", __func__, status); in adapter_properties_callback()
150 static void remote_device_properties_callback(bt_status_t status, in remote_device_properties_callback() argument
157 ALOGV("%s: Status is: %d, Properties: %d", __func__, status, num_properties); in remote_device_properties_callback()
159 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp359 bt_bdaddr_t* bd_addr, btrc_status_t status, in btavrcp_get_folder_items_callback() argument
545 status, itemArray.get()); in btavrcp_get_folder_items_callback()
570 uint8_t status) { in btavrcp_set_addressed_player_callback() argument
571 ALOGI("%s status %d", __func__, status); in btavrcp_set_addressed_player_callback()
577 sCallbacksObj, method_handleSetAddressedPlayerRsp, (jint)status); in btavrcp_set_addressed_player_callback()
697 bt_status_t status = in initNative() local
699 if (status != BT_STATUS_SUCCESS) { in initNative()
701 status); in initNative()
742 bt_status_t status = sBluetoothAvrcpInterface->send_pass_through_cmd( in sendPassThroughCommandNative() local
744 if (status != BT_STATUS_SUCCESS) { in sendPassThroughCommandNative()
[all …]
Dcom_android_bluetooth_hid.cpp210 bt_status_t status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks); in initializeNative() local
211 if (status != BT_STATUS_SUCCESS) { in initializeNative()
212 ALOGE("Failed to initialize Bluetooth HID, status: %d", status); in initializeNative()
252 bt_status_t status = sBluetoothHidInterface->connect((bt_bdaddr_t*)addr); in connectHidNative() local
253 if (status != BT_STATUS_SUCCESS) { in connectHidNative()
254 ALOGE("Failed HID channel connection, status: %d", status); in connectHidNative()
274 bt_status_t status = sBluetoothHidInterface->disconnect((bt_bdaddr_t*)addr); in disconnectHidNative() local
275 if (status != BT_STATUS_SUCCESS) { in disconnectHidNative()
276 ALOGE("Failed disconnect hid channel, status: %d", status); in disconnectHidNative()
297 bt_status_t status = sBluetoothHidInterface->get_protocol( in getProtocolModeNative() local
[all …]
Dcom_android_bluetooth_gatt.cpp222 void btgattc_register_app_cb(int status, int clientIf, bt_uuid_t* app_uuid) { in btgattc_register_app_cb() argument
225 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb()
251 void btgattc_open_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) { in btgattc_open_cb() argument
258 conn_id, status, address.get()); in btgattc_open_cb()
261 void btgattc_close_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) { in btgattc_close_cb() argument
268 conn_id, status, address.get()); in btgattc_close_cb()
271 void btgattc_search_complete_cb(int conn_id, int status) { in btgattc_search_complete_cb() argument
276 status); in btgattc_search_complete_cb()
280 int status, uint16_t handle) { in btgattc_register_for_notification_cb() argument
285 conn_id, status, registered, handle); in btgattc_register_for_notification_cb()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DDefaultOmtpEventHandler.java31 VoicemailStatus.Editor status, in handleEvent() argument
35 handleConfigurationEvent(context, status, event); in handleEvent()
38 handleDataChannelEvent(context, status, event); in handleEvent()
41 handleNotificationChannelEvent(context, config, status, event); in handleEvent()
44 handleOtherEvent(context, status, event); in handleEvent()
52 Context context, VoicemailStatus.Editor status, OmtpEvents event) { in handleConfigurationEvent() argument
57 status in handleConfigurationEvent()
65 status in handleConfigurationEvent()
72 status in handleConfigurationEvent()
79 status.setConfigurationState(Status.CONFIGURATION_STATE_FAILED).apply(); in handleConfigurationEvent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothShare.java274 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/Gallery/src/com/android/camera/
DBitmapManager.java72 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/apps/Messaging/src/com/android/messaging/mmslib/
DDownloads.java512 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/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java595 int status, int offset, byte[] value) { in sendResponse() argument
598 service.sendResponse(serverIf, address, requestId, status, offset, value); in sendResponse()
831 void onScannerRegistered(int status, int scannerId, long uuidLsb, long uuidMsb) in onScannerRegistered() argument
835 + ", scannerId=" + scannerId + ", status=" + status); in onScannerRegistered()
840 if (status == 0) { in onScannerRegistered()
853 cbApp.callback.onScannerRegistered(status, scannerId); in onScannerRegistered()
884 void onClientRegistered(int status, int clientIf, long uuidLsb, long uuidMsb) in onClientRegistered() argument
890 if (status == 0) { in onClientRegistered()
896 app.callback.onClientRegistered(status, clientIf); in onClientRegistered()
900 void onConnected(int clientIf, int connId, int status, String address) in onConnected() argument
[all …]
DAdvertiseManager.java137 void onAdvertisingSetStarted(int reg_id, int advertiser_id, int tx_power, int status) in onAdvertisingSetStarted() argument
141 + advertiser_id + ", status=" + status); in onAdvertisingSetStarted()
154 if (status == 0) { in onAdvertisingSetStarted()
163 callback.onAdvertisingSetStarted(advertiser_id, tx_power, status); in onAdvertisingSetStarted()
166 void onAdvertisingEnabled(int advertiser_id, boolean enable, int status) throws Exception { in onAdvertisingEnabled() argument
169 + enable + ", status=" + status); in onAdvertisingEnabled()
180 callback.onAdvertisingEnabled(advertiser_id, enable, status); in onAdvertisingEnabled()
289 void onAdvertisingDataSet(int advertiser_id, int status) throws Exception { in onAdvertisingDataSet() argument
292 "onAdvertisingDataSet() advertiser_id=" + advertiser_id + ", status=" + status); in onAdvertisingDataSet()
302 callback.onAdvertisingDataSet(advertiser_id, status); in onAdvertisingDataSet()
[all …]
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattClientListener.java184 public void onConnectionStateChange(BluetoothGatt gatt, int status, in onConnectionStateChange() argument
186 Log.d(TAG, "onConnectionStateChange " + status); in onConnectionStateChange()
189 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
195 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
205 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
208 + gatt.getDevice().getAddress() + " status " + status); in onConnectionStateChange()
213 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in onServicesDiscovered() argument
214 Log.d(TAG, "onServicesDiscovered Status " + status); in onServicesDiscovered()
220 BluetoothGattCharacteristic characteristic, int status) { in onCharacteristicRead() argument
221 Log.d(TAG, "onCharacteristicRead: " + status); in onCharacteristicRead()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DHalClient.java81 int status = invokeRetriable(() -> { in setValue() local
90 if (StatusCode.INVALID_ARG == status) { in setValue()
96 if (StatusCode.TRY_AGAIN == status) { in setValue()
100 if (StatusCode.OK != status) { in setValue()
103 + "code: %d", propValue.prop, propValue.areaId, status)); in setValue()
109 int status = invokeRetriable(() -> { in getValue() local
112 return res.status; in getValue()
117 if (StatusCode.INVALID_ARG == status) { in getValue()
122 if (StatusCode.TRY_AGAIN == status) { in getValue()
126 if (StatusCode.OK != status || valueWrapper.object == null) { in getValue()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DActionBatch.java116 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 …]
DWordListPreference.java72 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 …]

12345678910>>...14