/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/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/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreServiceTest.java | 235 void onBlobRetrieved(Status status, String l2Key, String name, byte[] data); 265 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr); 271 public void onNetworkAttributesRetrieved(final StatusParcelable status, 274 functor.onNetworkAttributesRetrieved(new Status(status), l2Key, 297 void onSameL3NetworkResponse(Status status, SameL3NetworkResponse answer); 303 public void onSameL3NetworkResponse(final StatusParcelable status, 306 functor.onSameL3NetworkResponse(new Status(status), 329 void onL2KeyResponse(Status status, String key); 334 public void onL2KeyResponse(final StatusParcelable status, final String key) 336 functor.onL2KeyResponse(new Status(status), key); [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 | 178 void nativeNfcTag_doReadCompleted(tNFA_STATUS status) { in nativeNfcTag_doReadCompleted() argument 180 << StringPrintf("%s: status=0x%X; is reading=%u", __func__, status, in nativeNfcTag_doReadCompleted() 186 if (status != NFA_STATUS_OK) { in nativeNfcTag_doReadCompleted() 242 __func__, ndef_reg.status, ndef_reg.ndef_type_handle); in ndefHandlerCallback() 274 tNFA_STATUS status = NFA_STATUS_FAILED; in nativeNfcTag_doRead() local 288 status = EXTNS_MfcReadNDef(); in nativeNfcTag_doRead() 290 status = NFA_RwReadNDef(); in nativeNfcTag_doRead() 371 tNFA_STATUS status = 0; in nativeNfcTag_doWrite() local 403 status = EXTNS_MfcFormatTag(mfc_key1, sizeof(mfc_key1)); in nativeNfcTag_doWrite() 404 if (status != NFA_STATUS_OK) { in nativeNfcTag_doWrite() [all …]
|
D | NativeNfcManager.cpp | 51 extern void nativeNfcTag_doTransceiveStatus(tNFA_STATUS status, uint8_t* buf, 55 extern void nativeNfcTag_doDeactivateStatus(int status); 58 extern void nativeNfcTag_doCheckNdefResult(tNFA_STATUS status, 62 extern void nativeNfcTag_doMakeReadonlyResult(tNFA_STATUS status); 63 extern void nativeNfcTag_doPresenceCheckResult(tNFA_STATUS status); 66 extern void nativeNfcTag_doReadCompleted(tNFA_STATUS status); 272 tNFA_STATUS status = NFA_STATUS_FAILED; in nfaConnectionCallback() local 280 "%s: NFA_POLL_ENABLED_EVT: status = %u", __func__, eventData->status); in nfaConnectionCallback() 290 eventData->status); in nfaConnectionCallback() 300 __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 | 475 bt_status_t status = in initializeNative() local 477 if (status != BT_STATUS_SUCCESS) { in initializeNative() 478 ALOGE("Failed to initialize Bluetooth HFP Client, status: %d", status); in initializeNative() 515 bt_status_t status = sBluetoothHfpClientInterface->connect((RawAddress*)addr); in connectNative() local 516 if (status != BT_STATUS_SUCCESS) { in connectNative() 517 ALOGE("Failed AG connection, status: %d", status); in connectNative() 520 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectNative() 533 bt_status_t status = in disconnectNative() local 535 if (status != BT_STATUS_SUCCESS) { in disconnectNative() 536 ALOGE("Failed AG disconnection, status: %d", status); in disconnectNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 471 bt_status_t status = in initializeNative() local 474 if (status != BT_STATUS_SUCCESS) { in initializeNative() 476 __func__, status); in initializeNative() 521 bt_status_t status = sBluetoothHfpInterface->Connect((RawAddress*)addr); in connectHfpNative() local 522 if (status != BT_STATUS_SUCCESS) { in connectHfpNative() 523 ALOGE("Failed HF connection, status: %d", status); in connectHfpNative() 526 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative() 543 bt_status_t status = sBluetoothHfpInterface->Disconnect((RawAddress*)addr); in disconnectHfpNative() local 544 if (status != BT_STATUS_SUCCESS) { in disconnectHfpNative() 545 ALOGE("Failed HF disconnection, status: %d", status); in disconnectHfpNative() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 233 bt_status_t status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks); in initializeNative() local 234 if (status != BT_STATUS_SUCCESS) { in initializeNative() 235 ALOGE("Failed to initialize Bluetooth HID, status: %d", status); in initializeNative() 276 bt_status_t status = sBluetoothHidInterface->connect((RawAddress*)addr); in connectHidNative() local 277 if (status != BT_STATUS_SUCCESS) { in connectHidNative() 278 ALOGE("Failed HID channel connection, status: %d", status); in connectHidNative() 298 bt_status_t status = sBluetoothHidInterface->disconnect((RawAddress*)addr); in disconnectHidNative() local 299 if (status != BT_STATUS_SUCCESS) { in disconnectHidNative() 300 ALOGE("Failed disconnect hid channel, status: %d", status); in disconnectHidNative() 321 bt_status_t status = sBluetoothHidInterface->get_protocol( in getProtocolModeNative() local [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 87 static void adapter_state_change_callback(bt_state_t status) { in adapter_state_change_callback() argument 90 ALOGV("%s: Status is: %d", __func__, status); in adapter_state_change_callback() 93 (jint)status); in adapter_state_change_callback() 114 static void adapter_properties_callback(bt_status_t status, int num_properties, in adapter_properties_callback() argument 119 ALOGV("%s: Status is: %d, Properties: %d", __func__, status, num_properties); in adapter_properties_callback() 121 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback() 122 ALOGE("%s: Status %d is incorrect", __func__, status); in adapter_properties_callback() 166 static void remote_device_properties_callback(bt_status_t status, in remote_device_properties_callback() argument 173 ALOGV("%s: Status is: %d, Properties: %d", __func__, status, num_properties); in remote_device_properties_callback() 175 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback() [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 425 const RawAddress& bd_addr, btrc_status_t status, in btavrcp_get_folder_items_callback() argument 602 addr.get(), status, itemArray.get()); in btavrcp_get_folder_items_callback() 656 uint8_t status) { in btavrcp_set_addressed_player_callback() argument 657 ALOGI("%s status %d", __func__, status); in btavrcp_set_addressed_player_callback() 677 (jint)status); in btavrcp_set_addressed_player_callback() 906 bt_status_t status = in initNative() local 908 if (status != BT_STATUS_SUCCESS) { in initNative() 910 status); in initNative() 955 bt_status_t status = sBluetoothAvrcpInterface->send_pass_through_cmd( in sendPassThroughCommandNative() local 957 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/modules/DnsResolver/tests/ |
D | dnsresolver_binder_test.cpp | 95 ::ndk::ScopedAStatus status = mDnsResolver->registerEventListener(nullptr); in TEST_F() 96 ASSERT_FALSE(status.isOk()); in TEST_F() 97 ASSERT_EQ(EINVAL, status.getServiceSpecificError()); in TEST_F() 105 ::ndk::ScopedAStatus status = mDnsResolver->registerEventListener(dummyListener); in TEST_F() 106 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F() 109 status = mDnsResolver->registerEventListener(dummyListener); in TEST_F() 110 ASSERT_FALSE(status.isOk()); in TEST_F() 111 ASSERT_EQ(EEXIST, status.getServiceSpecificError()); in TEST_F() 162 ::ndk::ScopedAStatus status = mDnsResolver->registerEventListener(testOnDnsEvent); in TEST_F() 163 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F() [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 | 788 public void sendResponse(int serverIf, String address, int requestId, int status, in sendResponse() argument 794 service.sendResponse(serverIf, address, requestId, status, offset, value); in sendResponse() 1071 void onScannerRegistered(int status, int scannerId, long uuidLsb, long uuidMsb) in onScannerRegistered() argument 1076 + ", status=" + status); in onScannerRegistered() 1082 if (status == 0) { in onScannerRegistered() 1095 cbApp.callback.onScannerRegistered(status, scannerId); in onScannerRegistered() 1121 void onClientRegistered(int status, int clientIf, long uuidLsb, long uuidMsb) in onClientRegistered() argument 1129 if (status == 0) { in onClientRegistered() 1135 app.callback.onClientRegistered(status, clientIf); in onClientRegistered() 1139 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 …]
|