Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 675) sorted by relevance

12345678910>>...27

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DKeyboardStateTestsBase.java84 private void pressKeyWithoutTimerExpire(final int code, final boolean isSinglePointer, in pressKeyWithoutTimerExpire() argument
86 mSwitcher.onPressKey(code, isSinglePointer); in pressKeyWithoutTimerExpire()
96 public void pressKey(final int code, final int afterPress) { in pressKey() argument
98 pressKeyWithoutTimerExpire(code, true, afterPress); in pressKey()
107 public void releaseKey(final int code, final int afterRelease) { in releaseKey() argument
108 mSwitcher.onCodeInput(code); in releaseKey()
109 mSwitcher.onReleaseKey(code, NOT_SLIDING); in releaseKey()
120 public void pressAndReleaseKey(final int code, final int afterPress, final int afterRelease) { in pressAndReleaseKey() argument
121 pressKey(code, afterPress); in pressAndReleaseKey()
122 releaseKey(code, afterRelease); in pressAndReleaseKey()
[all …]
DMockKeyboardSwitcher.java161 public void onPressKey(final int code, final boolean isSinglePointer) { in onPressKey() argument
162 mState.onPressKey(code, isSinglePointer, mAutoCapsState, in onPressKey()
166 public void onReleaseKey(final int code, final boolean withSliding) { in onReleaseKey() argument
167 onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE); in onReleaseKey()
170 public void onReleaseKey(final int code, final boolean withSliding, in onReleaseKey() argument
172 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState); in onReleaseKey()
173 if (mLongPressTimeoutCode == code) { in onReleaseKey()
178 public void onCodeInput(final int code) { in onCodeInput() argument
180 if (Constants.isLetterCode(code)) { in onCodeInput()
181 mAutoCapsState = (code == MockConstants.CODE_AUTO_CAPS_TRIGGER) in onCodeInput()
[all …]
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_rfc.cc42 void bta_ag_port_cback_1(uint32_t code, uint16_t port_handle);
43 void bta_ag_port_cback_2(uint32_t code, uint16_t port_handle);
44 void bta_ag_port_cback_3(uint32_t code, uint16_t port_handle);
45 void bta_ag_port_cback_4(uint32_t code, uint16_t port_handle);
46 void bta_ag_port_cback_5(uint32_t code, uint16_t port_handle);
47 void bta_ag_port_cback_6(uint32_t code, uint16_t port_handle);
48 void bta_ag_mgmt_cback_1(const tPORT_RESULT code, uint16_t port_handle);
49 void bta_ag_mgmt_cback_2(const tPORT_RESULT code, uint16_t port_handle);
50 void bta_ag_mgmt_cback_3(const tPORT_RESULT code, uint16_t port_handle);
51 void bta_ag_mgmt_cback_4(const tPORT_RESULT code, uint16_t port_handle);
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSetNavigateMoreKeysBase.java79 private void doTestMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestMoreKeysOf() argument
88 final Key actualKey = keyboard.getKey(code); in doTestMoreKeysOf()
120 private void doTestNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestNavigationMoreKeysOf() argument
123 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
127 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
131 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
135 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
139 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
143 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
147 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
[all …]
/packages/modules/Connectivity/clatd/
Dicmp.c59 uint8_t icmp_to_icmp6_type(uint8_t type, uint8_t code) { in icmp_to_icmp6_type() argument
72 if (code != ICMP_UNREACH_PROTOCOL && code != ICMP_UNREACH_NEEDFRAG) { in icmp_to_icmp6_type()
87 uint8_t icmp_to_icmp6_code(uint8_t type, uint8_t code) { in icmp_to_icmp6_code() argument
94 return code; in icmp_to_icmp6_code()
97 switch (code) { in icmp_to_icmp6_code()
114 logmsg_dbg(ANDROID_LOG_DEBUG, "icmp_to_icmp6_code: unhandled ICMP type/code %d/%d", type, code); in icmp_to_icmp6_code()
122 uint8_t icmp6_to_icmp_type(uint8_t type, uint8_t code) { in icmp6_to_icmp_type() argument
138 logmsg_dbg(ANDROID_LOG_DEBUG, "icmp6_to_icmp_type: unhandled ICMP type/code %d/%d", type, code); in icmp6_to_icmp_type()
147 uint8_t icmp6_to_icmp_code(uint8_t type, uint8_t code) { in icmp6_to_icmp_code() argument
152 return code; in icmp6_to_icmp_code()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java95 public boolean isWordSeparator(final int code) { in isWordSeparator() argument
96 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0; in isWordSeparator()
99 public boolean isWordConnector(final int code) { in isWordConnector() argument
100 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0; in isWordConnector()
103 public boolean isWordCodePoint(final int code) { in isWordCodePoint() argument
104 return Character.isLetter(code) || isWordConnector(code); in isWordCodePoint()
107 public boolean isUsuallyPrecededBySpace(final int code) { in isUsuallyPrecededBySpace() argument
108 return Arrays.binarySearch(mSortedSymbolsPrecededBySpace, code) >= 0; in isUsuallyPrecededBySpace()
111 public boolean isUsuallyFollowedBySpace(final int code) { in isUsuallyFollowedBySpace() argument
112 return Arrays.binarySearch(mSortedSymbolsFollowedBySpace, code) >= 0; in isUsuallyFollowedBySpace()
[all …]
/packages/modules/Bluetooth/floss/hcidoc/packets/
Dl2cap_packets.pdl206 code : CommandCode,
218 packet CommandReject : Control (code = COMMAND_REJECT) {
235 packet ConnectionRequest : Control (code = CONNECTION_REQUEST) {
257 packet ConnectionResponse : Control (code = CONNECTION_RESPONSE) {
307 packet DisconnectionRequest : Control (code = DISCONNECTION_REQUEST) {
312 packet DisconnectionResponse : Control (code = DISCONNECTION_RESPONSE) {
317 packet EchoRequest : Control (code = ECHO_REQUEST) {
321 packet EchoResponse : Control (code = ECHO_RESPONSE) {
331 packet InformationRequest : Control (code = INFORMATION_REQUEST) {
340 packet InformationResponse : Control (code = INFORMATION_RESPONSE) {
[all …]
/packages/modules/Bluetooth/system/pdl/security/
Dsmp_packets.pdl23 code : Code,
55 packet PairingRequest : Command (code = PAIRING_REQUEST) {
59 packet PairingResponse : Command (code = PAIRING_RESPONSE) {
63 packet PairingConfirm : Command (code = PAIRING_CONFIRM) {
67 packet PairingRandom : Command (code = PAIRING_RANDOM) {
88 packet PairingFailed : Command (code = PAIRING_FAILED) {
92 packet EncryptionInformation : Command (code = ENCRYPTION_INFORMATION) {
96 packet CentralIdentification : Command (code = CENTRAL_IDENTIFICATION) {
101 packet IdentityInformation : Command (code = IDENTITY_INFORMATION) {
110 packet IdentityAddressInformation : Command (code = IDENTITY_ADDRESS_INFORMATION) {
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DConstants.java251 public static boolean isLetterCode(final int code) { in isLetterCode() argument
252 return code >= CODE_SPACE; in isLetterCode()
256 public static String printableCode(final int code) { in printableCode() argument
257 switch (code) { in printableCode()
276 if (code < CODE_SPACE) return String.format("\\u%02X", code); in printableCode()
277 if (code < 0x100) return String.format("%c", code); in printableCode()
278 if (code < 0x10000) return String.format("\\u%04X", code); in printableCode()
279 return String.format("\\U%05X", code); in printableCode()
287 for (final int code : codes) { in printableCodes()
288 if (code == NOT_A_CODE) break; in printableCodes()
[all …]
/packages/modules/Bluetooth/system/pdl/l2cap/
Dl2cap_packets.pdl242 code : CommandCode,
254 packet CommandReject : Control (code = COMMAND_REJECT) {
271 packet ConnectionRequest : Control (code = CONNECTION_REQUEST) {
292 packet ConnectionResponse : Control (code = CONNECTION_RESPONSE) {
386 packet ConfigurationRequest : Control (code = CONFIGURATION_REQUEST) {
402 packet ConfigurationResponse : Control (code = CONFIGURATION_RESPONSE) {
410 packet DisconnectionRequest : Control (code = DISCONNECTION_REQUEST) {
415 packet DisconnectionResponse : Control (code = DISCONNECTION_RESPONSE) {
420 packet EchoRequest : Control (code = ECHO_REQUEST) {
424 packet EchoResponse : Control (code = ECHO_RESPONSE) {
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DChatServiceException.java51 public ChatServiceException(@Nullable String message, @ErrorCode int code) { in ChatServiceException() argument
52 super(getMessage(message, code)); in ChatServiceException()
53 mCode = code; in ChatServiceException()
65 @Nullable String message, @ErrorCode int code, @Nullable Throwable cause) { in ChatServiceException() argument
66 super(getMessage(message, code), cause); in ChatServiceException()
67 mCode = code; in ChatServiceException()
70 private static String getMessage(String message, int code) { in getMessage() argument
75 builder.append(code); in getMessage()
79 return "code: " + code; in getMessage()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java105 protected IkeProtocolException(@ErrorType int code) { in IkeProtocolException() argument
107 mErrorType = code; in IkeProtocolException()
112 protected IkeProtocolException(@ErrorType int code, String message) { in IkeProtocolException() argument
114 mErrorType = code; in IkeProtocolException()
119 protected IkeProtocolException(@ErrorType int code, Throwable cause) { in IkeProtocolException() argument
121 mErrorType = code; in IkeProtocolException()
126 protected IkeProtocolException(@ErrorType int code, String message, Throwable cause) { in IkeProtocolException() argument
128 mErrorType = code; in IkeProtocolException()
137 protected IkeProtocolException(@ErrorType int code, byte[] notifyData) { in IkeProtocolException() argument
143 + code in IkeProtocolException()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java94 final int code = key.getCode(); in getDescriptionForKey() local
96 if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in getDescriptionForKey()
103 if (code == Constants.CODE_SHIFT) { in getDescriptionForKey()
107 if (code == Constants.CODE_ENTER) { in getDescriptionForKey()
113 if (code == Constants.CODE_OUTPUT_TEXT) { in getDescriptionForKey()
120 if (code != Constants.CODE_UNSPECIFIED) { in getDescriptionForKey()
122 final boolean isDefinedNonCtrl = Character.isDefined(code) in getDescriptionForKey()
123 && !Character.isISOControl(code); in getDescriptionForKey()
127 final String description = getDescriptionForCodePoint(context, code); in getDescriptionForKey()
292 private String getSpokenAccentedLetterDescription(final Context context, final int code) { in getSpokenAccentedLetterDescription() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardState.java353 public void onPressKey(final int code, final boolean isSinglePointer, final int autoCapsFlags, in onPressKey() argument
356 Log.d(TAG, "onPressKey: code=" + Constants.printableCode(code) in onPressKey()
360 if (code != Constants.CODE_SHIFT) { in onPressKey()
365 if (code == Constants.CODE_SHIFT) { in onPressKey()
367 } else if (code == Constants.CODE_CAPSLOCK) { in onPressKey()
369 } else if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in onPressKey()
393 public void onReleaseKey(final int code, final boolean withSliding, final int autoCapsFlags, in onReleaseKey() argument
396 Log.d(TAG, "onReleaseKey: code=" + Constants.printableCode(code) in onReleaseKey()
400 if (code == Constants.CODE_SHIFT) { in onReleaseKey()
402 } else if (code == Constants.CODE_CAPSLOCK) { in onReleaseKey()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfNewTest.kt208 byteArrayOf(1, 'A'.code.toByte(), 0, 0), in testApfInstructionEncodingSizeCheck()
213 byteArrayOf(1, 'a'.code.toByte(), 0, 0), in testApfInstructionEncodingSizeCheck()
218 byteArrayOf(1, '.'.code.toByte(), 0, 0), in testApfInstructionEncodingSizeCheck()
228 byteArrayOf(1, 'A'.code.toByte()), in testApfInstructionEncodingSizeCheck()
233 byteArrayOf(64) + ByteArray(64) { 'A'.code.toByte() } + byteArrayOf(0, 0), in testApfInstructionEncodingSizeCheck()
238 byteArrayOf(1, 'A'.code.toByte(), 1, 'B'.code.toByte(), 0), in testApfInstructionEncodingSizeCheck()
243 byteArrayOf(1, 'A'.code.toByte(), 1, 'B'.code.toByte()), in testApfInstructionEncodingSizeCheck()
248 byteArrayOf(1, 'A'.code.toByte(), 0, 0), in testApfInstructionEncodingSizeCheck()
253 byteArrayOf(1, 'a'.code.toByte(), 0, 0), in testApfInstructionEncodingSizeCheck()
258 byteArrayOf(1, '.'.code.toByte(), 0, 0), in testApfInstructionEncodingSizeCheck()
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DStatus.h39 explicit Status(int code) : mCode(code) {} in Status() argument
42 Status(int code, std::string msg) : mCode(code), mMsg(std::move(msg)) { assert(!ok()); } in Status() argument
48 : mCode(result.ok() ? 0 : static_cast<int>(result.error().code())), in Status()
51 int code() const { return mCode; } in code() function
53 bool ok() const { return code() == 0; } in ok()
60 bool operator==(const Status& other) const { return code() == other.code(); }
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppAddDeviceFragment.java71 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
76 public void onFailure(int code, String ssid, SparseArray<int[]> channelListArray, in onFailure() argument
78 Log.d(TAG, "EasyConnectConfiguratorStatusCallback.onFailure: " + code); in onFailure()
93 showErrorUi(code, getResultIntent(code, ssid, channelListArray, in onFailure()
98 public void onProgress(int code) { in onProgress() argument
125 private Intent getResultIntent(int code, String ssid, SparseArray<int[]> channelListArray, in getResultIntent() argument
128 intent.putExtra(EXTRA_EASY_CONNECT_ERROR_CODE, code); in getResultIntent()
171 private void showErrorUi(int code, Intent resultIntent, boolean isConfigurationChange) { in showErrorUi() argument
173 switch (code) { in showErrorUi()
197 if (code == mLatestStatusCode) { in showErrorUi()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStopRequestException.java50 public static StopRequestException throwUnhandledHttpError(int code, String message) in throwUnhandledHttpError() argument
52 final String error = "Unhandled HTTP response: " + code + " " + message; in throwUnhandledHttpError()
53 if (code >= 400 && code < 600) { in throwUnhandledHttpError()
54 throw new StopRequestException(code, error); in throwUnhandledHttpError()
55 } else if (code >= 300 && code < 400) { in throwUnhandledHttpError()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackHidlV1_4Impl.java143 public void onEapFailure_1_1(int code) { in onEapFailure_1_1() argument
144 mCallbackV13.onEapFailure_1_1(code); in onEapFailure_1_1()
148 public void onEapFailure_1_3(int code) { in onEapFailure_1_3() argument
149 mCallbackV13.onEapFailure_1_3(code); in onEapFailure_1_3()
190 public void onDppProgress(int code) { in onDppProgress() argument
191 mCallbackV13.onDppProgress(code); in onDppProgress()
227 public void onDppFailure(int code) { in onDppFailure() argument
228 mCallbackV13.onDppFailureInternal(halToFrameworkDppFailureCode(code)); in onDppFailure()
237 public void onDppProgress_1_3(int code) { in onDppProgress_1_3() argument
238 mCallbackV13.onDppProgress_1_3(code); in onDppProgress_1_3()
[all …]
/packages/modules/IntentResolver/tests/
DREADME.md3 IntentResolver test code is organized into sub-modules by scope and purpose.
11 **Use cases**: The first choice for all new code. Fakes and other reusable test code should be plac…
17 **Use cases**: Larger tests which require device preparation and setup to test production code usin…
21 …tests which launch target activity code directly in the instrumentation context. These operate mos…
23 Originally from `frameworks/base/core/tests`, these cover the widest range of code but are historic…
27 …expansion of existing tests should be considered only as last resort for otherwise untestable code.
31 Testing code as a common dependency available to all the above test types.
33 **Use cases**: Fakes, reusable assertions, or other test setup code. Tests for code here should be …
/packages/modules/common/
DREADME.md3 This project includes mainline build and other utility code. Any library code
7 ## java code
9 This project uses a single source path for java code. All java code should go
12 include java source for a single java package to encourage good code hygiene.
14 Tests for java code should go in the `javatests` directory and follow the same
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DDTC.java67 String code, in DTC() argument
72 this.mCode = code; in DTC()
87 DTC(String code, long timestamp, Context context) { in DTC() argument
88 this.mCode = code; in DTC()
90 DTCMetadata dtcMetadata = getDTCMetadata(code, context); in DTC()
143 String code = String.format("P%04d", 8 + number); in createSampleDTC() local
145 return new DTC(code, timestamp, context); in createSampleDTC()
148 private DTCMetadata getDTCMetadata(String code, Context context) { in getDTCMetadata() argument
149 return MetadataProcessing.getInstance(context).getDTCMetadata(code); in getDTCMetadata()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetVendorSpecificResultCodeTest.java48 HeadsetVendorSpecificResultCode code = in constructor() local
51 assertThat(code.mDevice).isEqualTo(mTestDevice); in constructor()
52 assertThat(code.mCommand).isEqualTo(TEST_COMMAND); in constructor()
53 assertThat(code.mArg).isEqualTo(TEST_ARG); in constructor()
58 HeadsetVendorSpecificResultCode code = in buildString() local
62 code.buildString(builder); in buildString()
65 code.getClass().getSimpleName() in buildString()
/packages/modules/Bluetooth/tools/rootcanal/scripts/
Dhci_socket.py201 bind_layers(HCI_Event_Hdr, HCI_Event_Inquiry_Result, code=0x02)
202 bind_layers(HCI_Event_Hdr, HCI_Event_Connection_Complete, code=0x03)
203 bind_layers(HCI_Event_Hdr, HCI_Event_Remote_Name_Request_Complete, code=0x07)
204 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Remote_Supported_Features_Complete, code=0x0b)
205 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Remote_Version_Information_Complete, code=0x0c)
206 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Clock_Offset_Complete, code=0x1c)
207 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Remote_Extended_Features_Complete, code=0x23)
208 bind_layers(HCI_Event_Hdr, HCI_Event_Extended_Inquiry_Result, code=0x2f)
319 …).type and response[HCI_Event_Hdr].code == 0xf and response[HCI_Event_Command_Status].opcode == co…
331 connection_complete[HCI_Event_Hdr].code == 0x3):
[all …]
/packages/modules/DnsResolver/
DDnsTlsDispatcher.cpp122 DnsTlsTransport::Response code = DnsTlsTransport::Response::internal_error; in query() local
130 code = this->query(server, statp->netid, statp->mark, query, ans, resplen, in query()
141 switch (code) { in query()
148 return code; in query()
152 return code; in query()
160 return code; in query()
171 return code; in query()
198 DnsTlsTransport::Response code = result.code; in query() local
199 if (code == DnsTlsTransport::Response::success) { in query()
202 code = DnsTlsTransport::Response::limit_error; in query()
[all …]

12345678910>>...27