/development/python-packages/adb/adb/ |
D | __init__.py | 32 def __init__(self, serial: str) -> None: argument 45 self, cmd: list[str], stdout: str, stderr: str, exit_code: int argument 55 def get_devices(adb_path: str = 'adb') -> list[str]: argument 77 product: str | None = None, adb_path: str = 'adb' argument 86 serial: str, product: str | None = None, adb_path: str = 'adb' argument 95 serial: str | None = None, product: str | None = None, adb_path: str = 'adb' argument 127 def _get_device_by_type(flag: str, adb_path: str) -> AndroidDevice: argument 141 def get_usb_device(adb_path: str = 'adb') -> AndroidDevice: argument 154 def get_emulator_device(adb_path: str = 'adb') -> AndroidDevice: argument 167 def split_lines(s: str) -> list[str]: argument [all …]
|
/development/tools/winscope/src/trace_processor/ |
D | string_utils.ts | 30 let Utf8Encoder: {encode: (str: string) => Uint8Array;}; 43 encode: (str: string) => { 44 const arr = new Uint8Array(utf8Len(str)); 45 const written = utf8Write(str, arr, 0); 56 export function base64Decode(str: string): Uint8Array { 58 const b64 = str.replace(/-/g, '+').replace(/_/g, '/'); 71 export function utf8Encode(str: string): Uint8Array { 72 return Utf8Encoder.encode(str); 91 let str = ''; 93 str += String.fromCharCode(buf[i]); [all …]
|
/development/python-packages/fetchartifact/fetchartifact/ |
D | __init__.py | 33 target: str, argument 34 build_id: str, argument 35 artifact_name: str, argument 36 query_url_base: str, argument 37 ) -> str: 58 target: str, argument 59 build_id: str, argument 60 artifact_name: str, argument 62 query_url_base: str = _DEFAULT_QUERY_URL_BASE, argument 86 target: str, argument [all …]
|
/development/tools/ndk/ndkabidump/ |
D | soong.py | 39 args: list[str], argument 40 env: dict[str, str] | None = None, argument 42 ) -> str: 69 "OUT_DIR": str(self.out_dir.resolve()), 74 cmd = [str(self.soong_ui_path)] + args 85 def get_make_var(self, name: str) -> str: argument 101 def build(self, targets: list[str], env: dict[str, str] | None = None) -> None: argument
|
/development/scripts/ |
D | lldbclient.py | 42 def read_toolchain_config(root: str) -> str: argument 50 def get_lldb_path(toolchain_path: str) -> str | None: argument 58 def get_lldb_server_path(root: str, clang_base: str, clang_version: str, arch: str) -> str: argument 70 def get_tracer_pid(device: adb.AndroidDevice, pid: int | str | None) -> int: 142 def get_device_dir_exists(device: adb.AndroidDevice, dir: str) -> bool: argument 147 def get_remote_pid(device: adb.AndroidDevice, process_name: str) -> int: argument 161 def make_temp_dir(prefix: str) -> str: argument 168 def ensure_linker(device: adb.AndroidDevice, sysroot: str, interp: str | None) -> str | None: argument 219 def handle_switches(args, sysroot: str) -> tuple[BinaryIO, int | None, str | None]: argument 272 def merge_launch_dict(base: dict[str, Any], to_add: dict[str, Any] | None) -> None: argument [all …]
|
D | gdbclient.py | 42 def read_toolchain_config(root: str) -> str: argument 50 def get_lldb_path(toolchain_path: str) -> str | None: argument 58 def get_lldb_server_path(root: str, clang_base: str, clang_version: str, arch: str) -> str: argument 70 def get_tracer_pid(device: adb.AndroidDevice, pid: int | str | None) -> int: 142 def get_device_dir_exists(device: adb.AndroidDevice, dir: str) -> bool: argument 147 def get_remote_pid(device: adb.AndroidDevice, process_name: str) -> int: argument 161 def make_temp_dir(prefix: str) -> str: argument 168 def ensure_linker(device: adb.AndroidDevice, sysroot: str, interp: str | None) -> str | None: argument 219 def handle_switches(args, sysroot: str) -> tuple[BinaryIO, int | None, str | None]: argument 272 def merge_launch_dict(base: dict[str, Any], to_add: dict[str, Any] | None) -> None: argument [all …]
|
D | boardconfig_usage_analysis.py | 183 str(len(locations)), 184 str(len(usage_in_sfe)), 185 str(len(usage_of_system_modules))]) + '\n' 190 print('Defined in (' + str(len(locations)) + ') :') 194 print('Used in (' + str(len(usage)) + ') :')
|
/development/tools/repo_diff/service/repodiff/persistence/filesystem/ |
D | unix.go | 58 for _, str := range strings { 59 if str != "" { 60 filtered[copyToIndex] = str 69 for _, str := range strings { 70 if str == "" {
|
/development/tools/otagui/ |
D | ota_interface.py | 16 id: str 17 target: str 18 incremental: str = '' 20 partial: list[str] = field(default_factory=list) 21 output: str = '' 22 status: str = 'Running' 24 extra: str = '' 25 stdout: str = '' 26 stderr: str = '' 44 if type(self.partial) == str: [all …]
|
D | target_lib.py | 20 file_name: str 21 path: str 23 build_id: str = '' 24 build_version: str = '' 25 build_flavor: str = '' 26 partitions: list[str] = field(default_factory=list) 60 raise BuildFileInvalidError("Invalid build due to " + str(e))
|
D | web_server.py | 92 str(self.path), str(self.headers), file_list 116 jobs.ota_generate(post_data, id=str(self.path[5:])) 125 400, "Failed to run ota_from_target_files", str(e)) 128 str(self.path), str(self.headers), 173 'http://' + str(server_address[0]) + ':' + str(port)) 188 EXTRACT_DIR = "/tmp/otatools-" + str(os.getpid())
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | TypeUtils.java | 259 private static String stripAngleBrackets(String str) { in stripAngleBrackets() argument 266 int ltIndex = str.indexOf('<'); in stripAngleBrackets() 268 return str; in stripAngleBrackets() 270 int gtIndex = str.lastIndexOf('>'); in stripAngleBrackets() 272 System.err.println("ERROR: found '<' without '>': " + str); in stripAngleBrackets() 273 return str; // not much we can do in stripAngleBrackets() 276 return str.substring(0, ltIndex) + str.substring(gtIndex+1); in stripAngleBrackets()
|
/development/samples/SampleSyncAdapter/samplesyncadapter_server/ |
D | web_services.py | 159 logging.info('Returning ' + str(len(updated_contacts)) + ' contact records') 193 high_water_mark = str(long(_time.mktime(high_water_date.utctimetuple())) + 1) 215 logging.info('Server-side updates: ' + str(update_count)) 216 logging.info('Server-side deletes: ' + str(delete_count)) 227 logging.info('Client-side updates: ' + str(len(json_list))) 237 logging.info('Updating contact: ' + str(id)) 276 high_water = str(long(_time.mktime(contact.updated.utctimetuple())) + 1) 285 logging.info('Client-side adds: ' + str(new_contact_count)) 290 contact_id = str(contact.key().id()) 371 contact[json_name] = str(v) [all …]
|
/development/tools/compare_cts_reports/ |
D | generate_spread_sheet.py | 87 def _read_csv(csv_path: str) -> Tuple[List[str], List[List[str]]]: argument 107 new_sheet_name: str, credentials_dir: str argument 128 begin_row: int, begin_column: str, num_rows: int, num_columns: int argument 129 ) -> str: 147 sheet: gspread.Worksheet, report_names: List[str] argument 163 sheet: gspread.Worksheet, compare_results: List[List[str]], start_row: int argument
|
/development/tools/winscope/src/common/ |
D | string_utils.ts | 87 static isBlank(str: string): boolean { 88 return str.replace(/\s/g, '').length === 0; 91 static isNumeric(str: string): boolean { 92 return Number(str).toString() === str;
|
/development/apps/Development/src/com/android/development/ |
D | AppHwPref.java | 134 String str = null; in displayTextView() local 137 str = getTouchScreenStr(config[i]); in displayTextView() 140 str = getKeyboardTypeStr(config[i]); in displayTextView() 143 str = getNavigationStr(config[i]); in displayTextView() 146 str = config[i].getGlEsVersion(); in displayTextView() 149 if(str != null) { in displayTextView() 150 list.add(str); in displayTextView() 155 for(String str : list) { in displayTextView() 157 listStr += str+","; in displayTextView()
|
D | Details.java | 95 TextView makeView(String str, boolean bold, int fontSize) in makeView() argument 97 if (str == null) { in makeView() 98 str = "(null)"; in makeView() 101 v.setText(str); in makeView() 123 String str = c.getString(i); 124 ColumnData cd = new ColumnData(columnNames[i], str);
|
/development/tools/cargo_embargo/src/ |
D | bp.rs | 76 pub fn get_string(&self, k: &str) -> &str { in get_string() argument 83 pub fn set<T: Into<BpValue>>(&mut self, k: &str, v: T) { in set() argument 87 pub fn set_if_nonempty<T: Into<BpValue>>(&mut self, k: &str, v: Vec<T>) { in set_if_nonempty() argument 93 pub fn object(&mut self, k: &str) -> &mut BpProperties { in object() 195 impl From<&str> for BpValue { 196 fn from(x: &str) -> Self { in from()
|
/development/tools/winscope/src/adb/ |
D | winscope_proxy.py | 183 def __init__(self, files, trace_start: str, trace_stop: str) -> None: argument 426 def add(self, config: str) -> None: argument 429 def is_valid(self, config: str) -> bool: argument 432 def command(self) -> str: 477 def setBufferSize(self) -> str: 498 def setBufferSize(self) -> str: 501 def setTracingLevel(self) -> str: 504 def setTracingType(self) -> str: 546 def __init__(self, files, dump_command: str) -> None: argument 614 def get_token() -> str: [all …]
|
/development/tools/bugreport/src/com/android/bugreport/util/ |
D | Utils.java | 71 final String str = matcher.group(group); in getInt() local 72 if (str == null || str.length() == 0) { in getInt() 75 return Integer.parseInt(str); in getInt()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ResourcesSample.java | 51 String str; in onCreate() local 64 str = getString(R.string.styled_text); in onCreate() 66 tv.setText(str); in onCreate()
|
D | StyledText.java | 46 CharSequence str = getText(R.string.styled_text); in onCreate() local 48 tv.setText(str); in onCreate()
|
D | TextUndoActivity.java | 104 private static String addSpaces(CharSequence str) { in addSpaces() argument 106 int len = str.length(); in addSpaces() 109 builder.append(str.subSequence(i, i + 4)); in addSpaces() 113 builder.append(str.subSequence(i, len)); in addSpaces()
|
/development/tools/external_crates/crate_health/src/ |
D | name_and_version.rs | 30 fn name(&self) -> &str; in name() argument 43 name: &'a str, 58 pub fn try_from_str(name: &str, version: &str) -> Result<Self> { in try_from_str() argument 64 fn name(&self) -> &str { in name() argument 77 pub fn new(name: &'a str, version: &'a Version) -> Self { in new() argument 83 fn name(&self) -> &str { in name() argument
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | LogHelper.java | 28 public static String makeLogTag(String str) { in makeLogTag() argument 29 if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) { in makeLogTag() 30 return LOG_PREFIX + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 1); in makeLogTag() 33 return LOG_PREFIX + str; in makeLogTag()
|