/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/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeCallback.java | 168 public void notifyCapabilitiesResponse(short id, WifiNanStatus status, in notifyCapabilitiesResponse() argument 171 Log.v(TAG, "notifyCapabilitiesResponse: id=" + id + ", status=" + statusString(status) in notifyCapabilitiesResponse() 179 if (status.status == NanStatusType.SUCCESS) { in notifyCapabilitiesResponse() 184 Log.e(TAG, "notifyCapabilitiesResponse: error code=" + status.status + " (" in notifyCapabilitiesResponse() 185 + status.description + ")"); in notifyCapabilitiesResponse() 190 public void notifyCapabilitiesResponse_1_5(short id, WifiNanStatus status, in notifyCapabilitiesResponse_1_5() argument 194 + statusString(status) + ", capabilities=" + capabilities); in notifyCapabilitiesResponse_1_5() 202 if (status.status == NanStatusType.SUCCESS) { in notifyCapabilitiesResponse_1_5() 209 Log.e(TAG, "notifyCapabilitiesResponse_1_5: error code=" + status.status + " (" in notifyCapabilitiesResponse_1_5() 210 + status.description + ")"); in notifyCapabilitiesResponse_1_5() [all …]
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ts43/ |
D | Ts43VowifiStatusTest.java | 35 Ts43VowifiStatus status = in ts43VowifiStatus_vowifiAvailable_vowifiEntitled() local 43 assertThat(status.vowifiEntitled()).isTrue(); in ts43VowifiStatus_vowifiAvailable_vowifiEntitled() 44 assertThat(status.serverDataMissing()).isFalse(); in ts43VowifiStatus_vowifiAvailable_vowifiEntitled() 45 assertThat(status.inProgress()).isFalse(); in ts43VowifiStatus_vowifiAvailable_vowifiEntitled() 46 assertThat(status.incompatible()).isFalse(); in ts43VowifiStatus_vowifiAvailable_vowifiEntitled() 51 Ts43VowifiStatus status = in ts43VowifiStatus_addressNotRequired_vowifiEntitled() local 59 assertThat(status.vowifiEntitled()).isTrue(); in ts43VowifiStatus_addressNotRequired_vowifiEntitled() 60 assertThat(status.serverDataMissing()).isFalse(); in ts43VowifiStatus_addressNotRequired_vowifiEntitled() 61 assertThat(status.inProgress()).isFalse(); in ts43VowifiStatus_addressNotRequired_vowifiEntitled() 62 assertThat(status.incompatible()).isFalse(); in ts43VowifiStatus_addressNotRequired_vowifiEntitled() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogInternalHandlerTest.cpp | 172 Status status = mWatchdogInternalHandler->registerCarWatchdogService(service); in TEST_F() local 174 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 181 Status status = mWatchdogInternalHandler->registerCarWatchdogService(service); in TEST_F() local 183 ASSERT_FALSE(status.isOk()) << status; in TEST_F() 193 Status status = mWatchdogInternalHandler->registerCarWatchdogService(service); in TEST_F() local 195 ASSERT_FALSE(status.isOk()) << status; in TEST_F() 203 Status status = mWatchdogInternalHandler->unregisterCarWatchdogService(service); in TEST_F() local 204 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 211 Status status = mWatchdogInternalHandler->unregisterCarWatchdogService(service); in TEST_F() local 212 ASSERT_FALSE(status.isOk()) << status; in TEST_F() [all …]
|
D | WatchdogServiceHelperTest.cpp | 125 Status status = mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem); in registerCarWatchdogService() local 126 ASSERT_TRUE(status.isOk()) << status; in registerCarWatchdogService() 189 Status status = mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem); in TEST_F() local 190 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 196 status = mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem); in TEST_F() 197 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 230 Status status = mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem); in TEST_F() local 231 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 238 status = mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem); in TEST_F() 239 ASSERT_FALSE(status.isOk()) << "Unregistering an unregistered service should return an error: " in TEST_F() [all …]
|
D | WatchdogProcessServiceTest.cpp | 111 Status status = in TEST_F() local 113 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 114 status = mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 115 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 121 Status status = mWatchdogProcessService->unregisterClient(client); in TEST_F() local 122 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 141 Status status = mWatchdogProcessService->registerCarWatchdogService(binder); in TEST_F() local 142 ASSERT_TRUE(status.isOk()) << status; in TEST_F() 144 status = mWatchdogProcessService->registerCarWatchdogService(binder); in TEST_F() 145 ASSERT_TRUE(status.isOk()) << status; in TEST_F() [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/modules/Connectivity/tests/unit/java/android/net/ |
D | IpMemoryStoreTest.java | 123 status -> assertTrue("Store not successful : " + status.resultCode, in testNetworkAttributes() 124 status.isSuccess())); in testNetworkAttributes() 130 (status, key, attr) -> { in testNetworkAttributes() 132 + status.resultCode, status.isSuccess()); in testNetworkAttributes() 148 status -> { in testPrivateData() 149 assertTrue("Store not successful : " + status.resultCode, status.isSuccess()); in testPrivateData() 155 (status, key, name, data) -> { in testPrivateData() 156 assertTrue("Retrieve blob status not successful : " + status.resultCode, in testPrivateData() 157 status.isSuccess()); in testPrivateData() 173 (status, key) -> { in testFindL2Key() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaNetworkHal.java | 1385 mISupplicantStaNetwork.getId((SupplicantStatus status, int idValue) -> { in getId() argument 1386 statusOk.value = status.code == SupplicantStatusCode.SUCCESS; in getId() 1390 checkStatusAndLogFailure(status, methodStr); in getId() 1415 SupplicantStatus status = mISupplicantStaNetwork.registerCallback(callback); in registerCallback() local 1416 return checkStatusAndLogFailure(status, methodStr); in registerCallback() 1434 android.hardware.wifi.supplicant.V1_4.SupplicantStatus status = in registerCallback_1_4() local 1436 return checkStatusAndLogFailure(status, methodStr); in registerCallback_1_4() 1450 SupplicantStatus status = mISupplicantStaNetwork.setSsid(ssid); in setSsid() local 1451 return checkStatusAndLogFailure(status, methodStr); in setSsid() 1482 SupplicantStatus status = mISupplicantStaNetwork.setBssid(bssid); in setBssid() local [all …]
|
D | WifiBlocklistMonitor.java | 261 BssidStatus status = getOrCreateBssidStatus(bssid, ssid); in incrementFailureCountForBssid() local 262 status.incrementFailureCount(reasonCode); in incrementFailureCountForBssid() 263 return status; in incrementFailureCountForBssid() 271 BssidStatus status = mBssidStatusMap.get(bssid); in getOrCreateBssidStatus() local 272 if (status == null || !ssid.equals(status.ssid)) { in getOrCreateBssidStatus() 273 if (status != null) { in getOrCreateBssidStatus() 275 + status.ssid + " to " + ssid); in getOrCreateBssidStatus() 277 status = new BssidStatus(bssid, ssid); in getOrCreateBssidStatus() 278 mBssidStatusMap.put(bssid, status); in getOrCreateBssidStatus() 280 return status; in getOrCreateBssidStatus() [all …]
|
D | HalDeviceManager.java | 515 iface.getName((WifiStatus status, String name) -> { in getName() argument 516 if (status.code == WifiStatusCode.SUCCESS) { in getName() 519 Log.e(TAG, "Error on getName: " + statusString(status)); in getName() 945 WifiStatus status; in initIWifiIfNecessary() local 948 status = iWifiV15.registerEventCallback_1_5(mWifiEventCallbackV15); in initIWifiIfNecessary() 950 status = mWifi.registerEventCallback(mWifiEventCallback); in initIWifiIfNecessary() 953 if (status.code != WifiStatusCode.SUCCESS) { in initIWifiIfNecessary() 954 Log.e(TAG, "IWifi.registerEventCallback failed: " + statusString(status)); in initIWifiIfNecessary() 988 mWifi.getChipIds((WifiStatus status, ArrayList<Integer> chipIds) -> { in initIWifiChipDebugListeners() argument 989 statusOk.value = status.code == WifiStatusCode.SUCCESS; in initIWifiChipDebugListeners() [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/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/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 …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogInternalHandler.cpp | 86 Status status = checkSystemUser(); in registerCarWatchdogService() local 87 if (!status.isOk()) { in registerCarWatchdogService() 88 return status; in registerCarWatchdogService() 104 Status status = checkSystemUser(); in unregisterCarWatchdogService() local 105 if (!status.isOk()) { in unregisterCarWatchdogService() 106 return status; in unregisterCarWatchdogService() 115 Status status = checkSystemUser(); in registerMonitor() local 116 if (!status.isOk()) { in registerMonitor() 117 return status; in registerMonitor() 126 Status status = checkSystemUser(); in unregisterMonitor() local [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 …]
|
/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/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/services/Car/service/src/com/android/car/hal/ |
D | HalClient.java | 97 int status = invokeRetriable(() -> { in setValue() local 106 if (StatusCode.INVALID_ARG == status) { in setValue() 110 if (StatusCode.OK != status) { in setValue() 111 Slogf.e(TAG, getPropertyErrorMessage("set", propValue, status)); in setValue() 112 throw new ServiceSpecificException(status, in setValue() 123 private String getPropertyErrorMessage(String action, VehiclePropValue propValue, int status) { in getPropertyErrorMessage() argument 126 status, StatusCode.toString(status)); in getPropertyErrorMessage() 131 int status = invokeRetriable(() -> { in getValue() local 134 return res.status; in getValue() 137 if (StatusCode.INVALID_ARG == status) { in getValue() [all …]
|