/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | BufferDebug.java | 64 final StringBuilder str = new StringBuilder(); in toHex() local 69 writeRow(str, buf, row * WIDTH, WIDTH, max); in toHex() 74 writeRow(str, buf, rows * WIDTH, max - (rows * WIDTH), max); in toHex() 78 str.append(String.format("%10d 0x%08x ", buf.length, buf.length)); in toHex() 80 str.append(String.format("truncated to %d 0x%08x", max, max)); in toHex() 82 str.append('\n'); in toHex() 84 return str.toString(); in toHex() 87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() argument 88 final Formatter f = new Formatter(str); in writeRow() 106 str.append(" "); in writeRow() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | StringBuilderPrinterTest.java | 40 String str = strBuilder.toString(); in testStringBuilderPrinter() local 41 assertTrue(str.startsWith("Hello")); in testStringBuilderPrinter() 42 assertEquals(' ', str.charAt(5)); in testStringBuilderPrinter() 43 assertEquals('A', str.charAt(6)); in testStringBuilderPrinter() 44 assertEquals('n', str.charAt(7)); in testStringBuilderPrinter() 45 assertEquals('d', str.charAt(8)); in testStringBuilderPrinter() 46 assertEquals('r', str.charAt(9)); in testStringBuilderPrinter() 47 assertEquals('o', str.charAt(10)); in testStringBuilderPrinter() 48 assertEquals('i', str.charAt(11)); in testStringBuilderPrinter() 49 assertEquals('d', str.charAt(12)); in testStringBuilderPrinter()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioTestRunner.java | 53 public void sendMessage(int msgType, String str) { in sendMessage() argument 54 sendMessage(mTestId, msgType, str); in sendMessage() 57 public void sendMessage(int testId, int msgType, String str) { in sendMessage() argument 60 msg.obj = str; in sendMessage() 69 String str = (String) msg.obj; in handleMessage() local 72 testStarted(testId, str); in handleMessage() 75 testMessage(testId, str); in handleMessage() 78 testEndedOk(testId, str); in handleMessage() 81 testEndedError(testId, str); in handleMessage() 88 public void testStarted(int testId, String str) { in testStarted() argument [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | MetaKeyKeyListenerTest.java | 53 final CharSequence str = "123456"; in testPressKey() local 56 final Editable content = Editable.Factory.getInstance().newEditable(str); in testPressKey() 79 final CharSequence str = "123456"; in testReleaseKey() local 82 final Editable content = Editable.Factory.getInstance().newEditable(str); in testReleaseKey() 88 assertEquals(str.charAt(0), content.charAt(0)); in testReleaseKey() 94 assertEquals(str.charAt(1), content.charAt(1)); in testReleaseKey() 100 assertEquals(str.charAt(3), content.charAt(3)); in testReleaseKey() 105 CharSequence str = "123456"; in testAdjustMetaAfterKeypress() local 106 Spannable content = Editable.Factory.getInstance().newEditable(str); in testAdjustMetaAfterKeypress() 108 int len = str.length(); // for one line less than 100 in testAdjustMetaAfterKeypress() [all …]
|
D | CharacterPickerDialogTest.java | 67 final CharSequence str = "123456"; in testConstructor() local 68 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructor() 76 final CharSequence str = "123456"; in testConstructorNullContext() local 77 final Editable content = Editable.Factory.getInstance().newEditable(str); in testConstructorNullContext() 86 final CharSequence str = "123456"; in testOnItemClick() local 87 Editable text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick() 95 assertEquals(str, text.toString()); in testOnItemClick() 112 text = Editable.Factory.getInstance().newEditable(str); in testOnItemClick() 116 assertEquals(str, text.toString()); in testOnItemClick() 128 final CharSequence str = "123456"; in testOnClick() local [all …]
|
D | TextKeyListenerTest.java | 69 String str = "hello world! man"; in testShouldCap() local 73 assertFalse(TextKeyListener.shouldCap(Capitalize.NONE, str, 0)); in testShouldCap() 74 assertTrue(TextKeyListener.shouldCap(Capitalize.SENTENCES, str, 0)); in testShouldCap() 75 assertTrue(TextKeyListener.shouldCap(Capitalize.WORDS, str, 0)); in testShouldCap() 76 assertTrue(TextKeyListener.shouldCap(Capitalize.CHARACTERS, str, 0)); in testShouldCap() 78 assertFalse(TextKeyListener.shouldCap(Capitalize.NONE, str, 6)); in testShouldCap() 79 assertFalse(TextKeyListener.shouldCap(Capitalize.SENTENCES, str, 6)); in testShouldCap() 80 assertTrue(TextKeyListener.shouldCap(Capitalize.WORDS, str, 6)); in testShouldCap() 81 assertTrue(TextKeyListener.shouldCap(Capitalize.CHARACTERS, str, 6)); in testShouldCap() 83 assertFalse(TextKeyListener.shouldCap(Capitalize.NONE, str, 13)); in testShouldCap() [all …]
|
/cts/tests/signature/api-check/scripts/ |
D | transform_expected_failures.py | 11 def transform(self, errors: str, expected_types: str | None = None) -> None: argument 24 def _extract_error_logs(self, errors: str, expected_types: str) -> list[str]: argument 30 def _transform(self, error_logs : list[str]) -> list[str]: argument 35 def _transform_single_message(self, error_log: str) -> str: argument
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | utils.cpp | 68 std::string str; in GLCheckErrorStr() local 72 str = "GL_INVALID_ENUM"; in GLCheckErrorStr() 75 str = "GL_INVALID_OPERATION"; in GLCheckErrorStr() 78 str = "GL_INVALID_VALUE"; in GLCheckErrorStr() 81 str = "GL_OUT_OF_MEMORY"; in GLCheckErrorStr() 84 str = "GL_INVALID_FRAMEBUFFER_OPERATION"; in GLCheckErrorStr() 87 LOGE("OpenGL error : %s : %s (%#08x)\n", msg.c_str(), str.c_str(), e); in GLCheckErrorStr()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_solid_color_test_pattern.py | 98 color, str(exp_values)) 100 logging.debug('Captured frame averages: %s', str(rgb_means)) 103 logging.debug('Captured frame variances: %s', str(rgb_vars)) 108 color, str(rgb_means), str(exp_values), bw_ch_atol) 113 color, str(rgb_vars), ch_variance_atol) 122 color, str(rgb_means), str(exp_values), rgb_primary_min) 127 color, str(rgb_means), str(exp_values), rgb_secondary_max) 135 color, str(rgb_vars), ch_variance_atol) 140 color, str(rgb_vars), ch_variance_atol) 213 str([int(c/_SAT) for c in color['RGGB']])) [all …]
|
/cts/common/device-side/bedstead/activitycontext/src/test/java/com/android/activitycontext/ |
D | ActivityContextTest.java | 60 STRING_VALUE, (context, str) -> context != null); in getWithContext_oneArgument_passesActivityContext() 67 String passedString = ActivityContext.getWithContext(STRING_VALUE, (context, str) -> str); in getWithContext_oneArgument_passesFirstArgument() 75 STRING_VALUE, INT_VALUE, (context, str, i) -> context != null); in getWithContext_twoArguments_passesActivityContext() 83 STRING_VALUE, INT_VALUE, (context, str, i) -> str); in getWithContext_twoArguments_passesFirstArgument() 91 STRING_VALUE, INT_VALUE, (context, str, i) -> i); in getWithContext_twoArguments_passesSecondArgument() 100 (context, str, i, b) -> context != null); in getWithContext_threeArguments_passesActivityContext() 108 STRING_VALUE, INT_VALUE, BOOLEAN_VALUE, (context, str, i, b) -> str); in getWithContext_threeArguments_passesFirstArgument() 116 STRING_VALUE, INT_VALUE, BOOLEAN_VALUE, (context, str, i, b) -> i); in getWithContext_threeArguments_passesSecondArgument() 124 STRING_VALUE, INT_VALUE, BOOLEAN_VALUE, (context, str, i, b) -> b); in getWithContext_threeArguments_passesThirdArgument()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2180/ |
D | poc.c | 31 static size_t (*realStrlen)(const char *str) = NULL; 41 size_t strlen(const char *str) { in strlen() argument 45 if (isTestInProgress && (strcmp(str, kExposedLanguageString) == 0)) { in strlen() 48 return realStrlen(str); in strlen()
|
/cts/apps/CameraITS/tests/ |
D | tutorial.py | 95 logging.debug('props\n%s', str(props)) 108 logging.debug('metadata\n%s', str(cap['metadata'])) 133 logging.info('AWB: gains %s', str(gains)) 134 logging.info('AWB: transform %s', str(xform)) 157 logging.debug('req: %s', str(req)) 167 logging.info('RGB image dimensions: %s', str(rgbimg.shape)) 168 logging.info('RGB image top-left pixel: %s', str(rgbimg[0, 0])) 179 logging.info('RGB means: %s', str(rgb_means))
|
D | its_base_test.py | 59 self.camera = str(self.user_params['camera']) 67 self.lighting_ch = str(self.user_params['lighting_ch']) 92 tablet_name = str(tablet_name_unencoded.decode('utf-8')).strip() 107 self.rotator_ch = str(self.user_params['rotator_ch']) 126 foldable_state = str(foldable_state_unencoded.decode('utf-8')).strip() 162 logging.debug('Setting up device: %s', str(device)) 182 str(self.tablet_screen_brightness)]) 203 output_list = str(output.decode('utf-8')).strip().split(' ') 206 landscape_val = str(val.split('=')[-1])
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9472/ |
D | poc.cpp | 35 size_t strlen(const char *str) { in strlen() argument 39 if (!strncmp(str, TEST_STRING, sizeof(TEST_STRING))) { in strlen() 42 return real_strlen(str); in strlen()
|
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/ |
D | MockDataService.java | 401 for (String str : lines) { in setBridgeTheDataConnection() 402 String capabilities = getCapabilities(str); in setBridgeTheDataConnection() 404 Log.d(mTag, "[internet]:" + str); in setBridgeTheDataConnection() 406 this.mInternetCid = getCid(str); in setBridgeTheDataConnection() 407 this.mInternetIfname = getInterfaceName(str); in setBridgeTheDataConnection() 408 this.mDefaultLinkAddress = getIpAddress(str); in setBridgeTheDataConnection() 409 this.mInternetDnses = getDnses(str); in setBridgeTheDataConnection() 410 this.mInternetGateways = getGateways(str); in setBridgeTheDataConnection() 411 this.mInternetMtuV4 = getMtu(str); in setBridgeTheDataConnection() 412 this.mInternetMtuV6 = getMtu(str); in setBridgeTheDataConnection() [all …]
|
D | MockCentralizedNetworkAgent.java | 98 for (String str : lines) { in storeDataCall() 99 String capabilities = getCapabilities(str); in storeDataCall() 103 + " " + str in storeDataCall() 111 + " " + str in storeDataCall() 118 + " " + str in storeDataCall()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | SoParser.java | 239 for (String str : roStrings) { in getDynamicLoadingDependencies() 241 if (str.length() < 4) { in getDynamicLoadingDependencies() 245 if (str.endsWith(".so")) { in getDynamicLoadingDependencies() 247 if (str.contains(getFileName())) { in getDynamicLoadingDependencies() 250 if (str.contains(" ")) { in getDynamicLoadingDependencies() 253 if (str.contains("?")) { in getDynamicLoadingDependencies() 256 if (str.contains("%")) { in getDynamicLoadingDependencies() 257 System.err.println("ToDo getDynamicLoadingDependencies: " + str); in getDynamicLoadingDependencies() 260 if (str.startsWith("_")) { in getDynamicLoadingDependencies() 261 System.err.println("ToDo getDynamicLoadingDependencies: " + str); in getDynamicLoadingDependencies() [all …]
|
/cts/common/device-side/bedstead/btest/ |
D | btest | 105 … execute_shell_command("Test", self.args, ["adb", "shell", "am", "switch-user", str(self.user_id)]) 107 …nd("Test", self.args, ["adb", "shell", "pm", "install-existing", "--user", str(self.user_id), supp… 110 … command = ["adb", "install-existing", "--user", str(self.user_id), additional_app[PACKAGE_NAME]] 140 … execute_shell_command("Test", self.args, ["adb", "shell", "am", "switch-user", str(self.user_id)]) 142 …nd("Test", self.args, ["adb", "shell", "pm", "install-existing", "--user", str(self.user_id), supp… 145 … command = ["adb", "install-existing", "--user", str(self.user_id), additional_app[PACKAGE_NAME]] 180 …execute_shell_command("Test", self.args, ["adb", "shell", "am", "switch-user", str(user["parent"])… 181 … execute_shell_command("Test", self.args, ["adb", "shell", "am", "start-user ", str(self.user_id)]) 183 …nd("Test", self.args, ["adb", "shell", "pm", "install-existing", "--user", str(self.user_id), supp… 186 … command = ["adb", "install-existing", "--user", str(self.user_id), additional_app[PACKAGE_NAME]] [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/if_nez/ |
D | Test_if_nez.java | 26 String str = null; in testN2() local 27 assertEquals(1234, t.run(str)); in testN2() 35 String str = "abc"; in testN3() local 36 assertEquals(1, t.run(str)); in testN3()
|
/cts/hostsidetests/incrementalinstall/app/nativelibcompressed/src/cpp/ |
D | compressednative_lib.cpp | 7 std::string str = "String from compressed native lib"; in Java_android_incrementalinstall_incrementaltestapp_nativelib_CompressedNativeLib_getString() local 8 return env->NewStringUTF(str.c_str()); in Java_android_incrementalinstall_incrementaltestapp_nativelib_CompressedNativeLib_getString()
|
/cts/hostsidetests/incrementalinstall/app/nativelibuncompressed/src/cpp/ |
D | uncompressednative_lib.cpp | 7 std::string str = "String from uncompressed native lib"; in Java_android_incrementalinstall_incrementaltestapp_nativelib_UncompressedNativeLib_getString() local 8 return env->NewStringUTF(str.c_str()); in Java_android_incrementalinstall_incrementaltestapp_nativelib_UncompressedNativeLib_getString()
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | LineSpliteratorTestBase.java | 39 protected static final Function<String, Integer> CONVERTER = str -> { 40 return Integer.parseInt(str.substring(4)); 42 protected static final Consumer<Integer> FAIL_CONSUMER = str -> { 72 doTestConverter(str -> createSpliterator(str, CONVERTER), i -> createVerifier(i)); in testConverter()
|
/cts/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | PowerPolicyGroups.java | 59 StringBuilder str = new StringBuilder(); in toString() local 60 str.append("Power policy groups:\n"); in toString() 61 mPolicyGroups.forEach((k, v) -> str.append(v.toString())); in toString() 62 return str.toString(); in toString() 214 StringBuilder str = new StringBuilder(); in toString() local 215 str.append(" ").append(mGroupId).append('\n'); in toString() 216 str.append(" - WaitForVHAL --> ").append(mWaitForVHALStatePolicy).append('\n'); in toString() 217 str.append(" - On --> ").append(mOnStatePolicy).append('\n'); in toString() 218 return str.toString(); in toString()
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | AndroidOut.h | 40 __android_log_print(mPriority, mLogTag, "%s", str().c_str()); in sync() 42 str(""); in sync()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_capture_result.py | 77 logging.debug('AWB gains: %s', str(awb_gains)) 78 logging.debug('AWB transform: %s', str( 81 logging.debug('AE region: %s', str(metadata['android.control.aeRegions'])) 83 logging.debug('AF region: %s', str(metadata['android.control.afRegions'])) 85 logging.debug('AWB region: %s', str(metadata['android.control.awbRegions'])) 150 logging.debug('LSC map: %dx%d, %s', lsc_map_w, lsc_map_h, str(lsc_map[:8])) 220 logging.debug('Tonemap: %s', str(curves[0][1::16])) 240 logging.debug('LSC map: %dx%d, %s', lsc_map_w, lsc_map_h, str(lsc_map[:8]))
|