Function: tramp-adb-parse-device-names

tramp-adb-parse-device-names is an autoloaded and byte-compiled function defined in tramp-adb.el.gz.

Signature

(tramp-adb-parse-device-names IGNORE)

Documentation

Return a list of (nil host) tuples allowed to access.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-adb.el.gz
;;;###tramp-autoload
(defun tramp-adb-parse-device-names (_ignore)
  "Return a list of (nil host) tuples allowed to access."
  (delq nil
	(mapcar
	 (lambda (line)
	   (when (string-match
		  (rx bol (group (+ (not blank))) (+ blank) "device" eol) line)
	     ;; Replace ":" by "#".
	     `(nil ,(tramp-compat-string-replace
		     ":" tramp-prefix-port-format (match-string 1 line)))))
	 (tramp-process-lines nil tramp-adb-program "devices"))))