Lines Matching refs:product

25 ;; If the path the product's files/image uses an a product alias, you
26 ;; need to add a mapping in `android-product-alias-map'. For instance
27 ;; if TARGET_PRODUCT is foo but the build directory is out/target/product/bar,
54 (defcustom android-product-alias-map nil
55 "Alist between product targets (declared in buildspec.mk) and actual
56 product build directory used by `android-product'.
59 is 'out/target/product/bar', you need to add a mapping Target:foo -> Alias:bar."
102 (defun android-product ()
103 "Return the product built according to the buildspec.mk.
106 Additional product aliases can be listed in `android-product-alias-map'
107 if the product actually built is different from the one listed
111 (product (with-current-buffer (find-file-noselect buildspec)
116 (alias (assoc product android-product-alias-map)))
119 product
122 (defun android-product-path ()
123 "Return the full path to the product directory.
125 Additional product aliases can be added in `android-product-alias-map'
126 if the product actually built is different from the one listed
128 (let ((path (concat (android-find-build-tree-root) "out/target/product/"
129 (android-product))))
131 (error (format "%s does not exist. If product %s maps to another one,
132 add an entry to android-product-map." path (android-product))))
156 ; For fastboot -p is the name of the product, *not* the full path to
158 (concat (android-find-host-bin "fastboot") " -p " (android-product)))
160 (defun android-adb-command (command &optional product)
162 If the optional PRODUCT is not nil, -p (android-product-path) is used
167 (if product
168 (shell-command (concat (android-adb) " -p " (android-product-path)