/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | RecapitalizeStatusTests.java | 38 final RecapitalizeStatus status = new RecapitalizeStatus(); in testTrim() local 39 status.start(30, 40, "abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 40 status.trim(); in testTrim() 41 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 42 assertEquals(30, status.getNewCursorStart()); in testTrim() 43 assertEquals(40, status.getNewCursorEnd()); in testTrim() 45 status.start(30, 44, " abcdefghij", Locale.ENGLISH, SPACE); in testTrim() 46 status.trim(); in testTrim() 47 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 48 assertEquals(34, status.getNewCursorStart()); in testTrim() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
D | phNxpExtns.cpp | 58 NFCSTATUS status = NFCSTATUS_FAILED; in EXTNS_Init() local 75 status = NFCSTATUS_SUCCESS; in EXTNS_Init() 76 return status; in EXTNS_Init() 80 return status; in EXTNS_Init() 112 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCallBack() local 120 status = phNxpExtns_SendMsg(&msg); in EXTNS_MfcCallBack() 121 if (NFCSTATUS_SUCCESS != status) { in EXTNS_MfcCallBack() 124 return status; in EXTNS_MfcCallBack() 144 NFCSTATUS status = NFCSTATUS_SUCCESS; in EXTNS_MfcCheckNDef() local 151 status = phNxpExtns_SendMsg(&msg); in EXTNS_MfcCheckNDef() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.cpp | 80 static void Mfc_FormatNdef_Completion_Routine(void* NdefCtxt, NFCSTATUS status); 81 static void Mfc_WriteNdef_Completion_Routine(void* NdefCtxt, NFCSTATUS status); 82 static void Mfc_ReadNdef_Completion_Routine(void* NdefCtxt, NFCSTATUS status); 83 static void Mfc_CheckNdef_Completion_Routine(void* NdefCtxt, NFCSTATUS status); 99 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpExtns_MfcModuleDeInit() local 162 status = NFCSTATUS_SUCCESS; in phNxpExtns_MfcModuleDeInit() 163 return status; in phNxpExtns_MfcModuleDeInit() 182 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpExtns_MfcModuleInit() local 274 status = NFCSTATUS_SUCCESS; in phNxpExtns_MfcModuleInit() 280 if (status != NFCSTATUS_SUCCESS) { in phNxpExtns_MfcModuleInit() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreServiceTest.java | 177 void onBlobRetrieved(Status status, String l2Key, String name, byte[] data); 202 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr); 208 public void onNetworkAttributesRetrieved(final StatusParcelable status, 211 functor.onNetworkAttributesRetrieved(new Status(status), l2Key, 229 void onSameL3NetworkResponse(Status status, SameL3NetworkResponse answer); 235 public void onSameL3NetworkResponse(final StatusParcelable status, 238 functor.onSameL3NetworkResponse(new Status(status), 256 void onL2KeyResponse(Status status, String key); 261 public void onL2KeyResponse(final StatusParcelable status, final String key) 263 functor.onL2KeyResponse(new Status(status), key); [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/ |
D | OmtpVoicemailMessageCreator.java | 49 Context context, VoicemailStatus status, final VoicemailStatusReader statusReader) { in create() argument 51 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage(); in create() 56 if (Status.CONFIGURATION_STATE_OK == status.configurationState in create() 57 && Status.DATA_CHANNEL_STATE_OK == status.dataChannelState in create() 58 && Status.NOTIFICATION_CHANNEL_STATE_OK == status.notificationChannelState) { in create() 59 return checkQuota(context, status, statusReader); in create() 63 if (Status.CONFIGURATION_STATE_CONFIGURING == status.configurationState in create() 64 && Status.DATA_CHANNEL_STATE_OK == status.dataChannelState in create() 65 && Status.NOTIFICATION_CHANNEL_STATE_OK == status.notificationChannelState) { in create() 69 VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle())); in create() [all …]
|
D | Vvm3VoicemailMessageCreator.java | 78 final VoicemailStatus status, in create() argument 81 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage(); in create() 86 if (VMS_DNS_FAILURE == status.dataChannelState) { in create() 90 VoicemailErrorMessage.createRetryAction(context, status), in create() 94 if (VMG_DNS_FAILURE == status.configurationState) { in create() 98 VoicemailErrorMessage.createRetryAction(context, status), in create() 102 if (SPG_DNS_FAILURE == status.configurationState) { in create() 106 VoicemailErrorMessage.createRetryAction(context, status), in create() 110 if (VMS_NO_CELLULAR == status.dataChannelState) { in create() 114 VoicemailErrorMessage.createRetryAction(context, status), in create() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
D | Vvm3EventHandler.java | 111 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/Nfc/nci/jni/ |
D | NativeNfcTag.cpp | 173 void nativeNfcTag_doReadCompleted(tNFA_STATUS status) { in nativeNfcTag_doReadCompleted() argument 175 << StringPrintf("%s: status=0x%X; is reading=%u", __func__, status, in nativeNfcTag_doReadCompleted() 181 if (status != NFA_STATUS_OK) { in nativeNfcTag_doReadCompleted() 224 __func__, ndef_reg.status, ndef_reg.ndef_type_handle); in ndefHandlerCallback() 256 tNFA_STATUS status = NFA_STATUS_FAILED; in nativeNfcTag_doRead() local 270 status = EXTNS_MfcReadNDef(); in nativeNfcTag_doRead() 272 status = NFA_RwReadNDef(); in nativeNfcTag_doRead() 353 tNFA_STATUS status = 0; in nativeNfcTag_doWrite() local 385 status = EXTNS_MfcFormatTag(mfc_key1, sizeof(mfc_key1)); in nativeNfcTag_doWrite() 386 if (status != NFA_STATUS_OK) { in nativeNfcTag_doWrite() [all …]
|
D | NativeNfcManager.cpp | 50 extern void nativeNfcTag_doTransceiveStatus(tNFA_STATUS status, uint8_t* buf, 54 extern void nativeNfcTag_doDeactivateStatus(int status); 57 extern void nativeNfcTag_doCheckNdefResult(tNFA_STATUS status, 61 extern void nativeNfcTag_doMakeReadonlyResult(tNFA_STATUS status); 62 extern void nativeNfcTag_doPresenceCheckResult(tNFA_STATUS status); 65 extern void nativeNfcTag_doReadCompleted(tNFA_STATUS status); 258 tNFA_STATUS status = NFA_STATUS_FAILED; in nfaConnectionCallback() local 266 "%s: NFA_POLL_ENABLED_EVT: status = %u", __func__, eventData->status); in nfaConnectionCallback() 276 eventData->status); in nfaConnectionCallback() 286 __func__, eventData->status); in nfaConnectionCallback() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | DefaultOmtpEventHandler.java | 31 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/ |
D | BluetoothShare.java | 276 public static boolean isStatusInformational(int status) { in isStatusInformational() argument 277 return (status >= 100 && status < 200); in isStatusInformational() 284 public static boolean isStatusSuspended(int status) { in isStatusSuspended() argument 285 return (status == STATUS_PENDING); in isStatusSuspended() 291 public static boolean isStatusSuccess(int status) { in isStatusSuccess() argument 292 return (status >= 200 && status < 300); in isStatusSuccess() 298 public static boolean isStatusError(int status) { in isStatusError() argument 299 return (status >= 400 && status < 600); in isStatusError() 305 public static boolean isStatusClientError(int status) { in isStatusClientError() argument 306 return (status >= 400 && status < 500); in isStatusClientError() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hfpclient.cpp | 458 bt_status_t status = in initializeNative() local 460 if (status != BT_STATUS_SUCCESS) { in initializeNative() 461 ALOGE("Failed to initialize Bluetooth HFP Client, status: %d", status); in initializeNative() 498 bt_status_t status = sBluetoothHfpClientInterface->connect((RawAddress*)addr); in connectNative() local 499 if (status != BT_STATUS_SUCCESS) { in connectNative() 500 ALOGE("Failed AG connection, status: %d", status); in connectNative() 503 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectNative() 516 bt_status_t status = in disconnectNative() local 518 if (status != BT_STATUS_SUCCESS) { in disconnectNative() 519 ALOGE("Failed AG disconnection, status: %d", status); in disconnectNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 472 bt_status_t status = in initializeNative() local 475 if (status != BT_STATUS_SUCCESS) { in initializeNative() 477 __func__, status); in initializeNative() 522 bt_status_t status = sBluetoothHfpInterface->Connect((RawAddress*)addr); in connectHfpNative() local 523 if (status != BT_STATUS_SUCCESS) { in connectHfpNative() 524 ALOGE("Failed HF connection, status: %d", status); in connectHfpNative() 527 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative() 544 bt_status_t status = sBluetoothHfpInterface->Disconnect((RawAddress*)addr); in disconnectHfpNative() local 545 if (status != BT_STATUS_SUCCESS) { in disconnectHfpNative() 546 ALOGE("Failed HF disconnection, status: %d", status); in disconnectHfpNative() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 226 bt_status_t status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks); in initializeNative() local 227 if (status != BT_STATUS_SUCCESS) { in initializeNative() 228 ALOGE("Failed to initialize Bluetooth HID, status: %d", status); in initializeNative() 268 bt_status_t status = sBluetoothHidInterface->connect((RawAddress*)addr); in connectHidNative() local 269 if (status != BT_STATUS_SUCCESS) { in connectHidNative() 270 ALOGE("Failed HID channel connection, status: %d", status); in connectHidNative() 290 bt_status_t status = sBluetoothHidInterface->disconnect((RawAddress*)addr); in disconnectHidNative() local 291 if (status != BT_STATUS_SUCCESS) { in disconnectHidNative() 292 ALOGE("Failed disconnect hid channel, status: %d", status); in disconnectHidNative() 313 bt_status_t status = sBluetoothHidInterface->get_protocol( in getProtocolModeNative() local [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 88 static void adapter_state_change_callback(bt_state_t status) { in adapter_state_change_callback() argument 91 ALOGV("%s: Status is: %d", __func__, status); in adapter_state_change_callback() 94 (jint)status); in adapter_state_change_callback() 115 static void adapter_properties_callback(bt_status_t status, int num_properties, in adapter_properties_callback() argument 120 ALOGV("%s: Status is: %d, Properties: %d", __func__, status, num_properties); in adapter_properties_callback() 122 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback() 123 ALOGE("%s: Status %d is incorrect", __func__, status); in adapter_properties_callback() 167 static void remote_device_properties_callback(bt_status_t status, in remote_device_properties_callback() argument 174 ALOGV("%s: Status is: %d, Properties: %d", __func__, status, num_properties); in remote_device_properties_callback() 176 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback() [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 424 const RawAddress& bd_addr, btrc_status_t status, in btavrcp_get_folder_items_callback() argument 601 addr.get(), status, itemArray.get()); in btavrcp_get_folder_items_callback() 655 uint8_t status) { in btavrcp_set_addressed_player_callback() argument 656 ALOGI("%s status %d", __func__, status); in btavrcp_set_addressed_player_callback() 676 (jint)status); in btavrcp_set_addressed_player_callback() 849 bt_status_t status = in initNative() local 851 if (status != BT_STATUS_SUCCESS) { in initNative() 853 status); in initNative() 898 bt_status_t status = sBluetoothAvrcpInterface->send_pass_through_cmd( in sendPassThroughCommandNative() local 900 if (status != BT_STATUS_SUCCESS) { in sendPassThroughCommandNative() [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/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/ |
D | TranscriptionResponse.java | 28 @Nullable public final Status status; field in TranscriptionResponse 31 this.status = null; in TranscriptionResponse() 34 TranscriptionResponse(Status status) { in TranscriptionResponse() argument 35 Assert.checkArgument(status != null); in TranscriptionResponse() 36 this.status = status; in TranscriptionResponse() 40 if (status != null) { in hasRecoverableError() 41 return status.getCode() == Status.Code.UNAVAILABLE; in hasRecoverableError() 48 if (status != null) { in isStatusAlreadyExists() 49 return status.getCode() == Code.ALREADY_EXISTS; in isStatusAlreadyExists() 56 if (status != null) { in hasFatalError() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | HalClient.java | 81 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/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | GattClientListener.java | 184 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/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AdvertiseManager.java | 138 void onAdvertisingSetStarted(int regId, int advertiserId, int txPower, int status) in onAdvertisingSetStarted() argument 143 + ", status=" + status); in onAdvertisingSetStarted() 156 if (status == 0) { in onAdvertisingSetStarted() 165 callback.onAdvertisingSetStarted(advertiserId, txPower, status); in onAdvertisingSetStarted() 168 void onAdvertisingEnabled(int advertiserId, boolean enable, int status) throws Exception { in onAdvertisingEnabled() argument 171 + enable + ", status=" + status); in onAdvertisingEnabled() 182 callback.onAdvertisingEnabled(advertiserId, enable, status); in onAdvertisingEnabled() 297 void onAdvertisingDataSet(int advertiserId, int status) throws Exception { in onAdvertisingDataSet() argument 300 "onAdvertisingDataSet() advertiserId=" + advertiserId + ", status=" + status); in onAdvertisingDataSet() 310 callback.onAdvertisingDataSet(advertiserId, status); in onAdvertisingDataSet() [all …]
|
D | GattService.java | 784 public void sendResponse(int serverIf, String address, int requestId, int status, in sendResponse() argument 790 service.sendResponse(serverIf, address, requestId, status, offset, value); in sendResponse() 1067 void onScannerRegistered(int status, int scannerId, long uuidLsb, long uuidMsb) in onScannerRegistered() argument 1072 + ", status=" + status); in onScannerRegistered() 1078 if (status == 0) { in onScannerRegistered() 1091 cbApp.callback.onScannerRegistered(status, scannerId); in onScannerRegistered() 1117 void onClientRegistered(int status, int clientIf, long uuidLsb, long uuidMsb) in onClientRegistered() argument 1125 if (status == 0) { in onClientRegistered() 1131 app.callback.onClientRegistered(status, clientIf); in onClientRegistered() 1135 void onConnected(int clientIf, int connId, int status, String address) throws RemoteException { in onConnected() 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 …]
|