Searched defs:path (Results 151 - 175 of 481) sorted by relevance

1234567891011>>

/frameworks/base/graphics/java/android/graphics/
H A DFontFamily.java92 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, argument
97 try (FileInputStream file = new FileInputStream(path)) {
108 Log.e(TAG, "Error mapping font file " + path);
128 * @param path The path to the font file to load.
138 public boolean addFontFromAssetManager(AssetManager mgr, String path, int cookie, argument
149 return nAddFontFromAssetManager(mBuilderPtr, mgr, path, cookie, isAsset, ttcIndex, weight,
197 String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic);
196 nAddFontFromAssetManager(long builderPtr, AssetManager mgr, String path, int cookie, boolean isAsset, int ttcIndex, int weight, int isItalic) argument
H A DPathMeasure.java24 * of a path, and/or to find the position and tangent along it, call
27 * Note that once a path is associated with the measure object, it is
28 * undefined if the path is subsequently modified and the the measure object
29 * is used. If the path is modified, you must call setPath with the path.
37 * Create a PathMeasure object associated with the specified path object
39 * path's length, and the position and tangent of any position along the
40 * path.
42 * Note that once a path is associated with the measure object, it is
43 * undefined if the path i
50 PathMeasure(Path path, boolean forceClosed) argument
60 setPath(Path path, boolean forceClosed) argument
[all...]
/frameworks/base/libs/androidfw/include/androidfw/
H A DAsset.h117 * path, it might be a colon-separated list of identifiers.
144 void setAssetSource(const String8& path) { mAssetSource = path; } argument
H A DAssetDir.h81 FileInfo(const String8& path) // useful for e.g. svect.indexOf argument
82 : mFileName(path), mFileType(kFileTypeUnknown)
110 void set(const String8& path, FileType type) { argument
111 mFileName = path;
116 void setFileName(const String8& path) { mFileName = path; } argument
122 void setSourceName(const String8& path) { mSourceName = path; } argument
H A DAssetManager.h82 * added asset path will be examined first when searching for assets,
90 bool addAssetPath(const String8& path, int32_t* cookie,
92 bool addOverlayPath(const String8& path, int32_t* cookie);
110 * Return an asset path in the manager. 'cookie' must be a non-negative value
140 * path hierarchy, and will not be seen by "AssetDir".
158 * Open a directory within a particular path of the asset manager.
200 asset_path() : path(""), type(kFileTypeRegular), idmap(""),
202 String8 path; member in struct:android::AssetManager::asset_path
210 const asset_path& path);
211 String8 createPathNameLocked(const asset_path& path, cons
[all...]
/frameworks/base/libs/androidfw/tests/
H A DAssetManager2_bench.cpp40 std::string path = GetTestDataPath() + "/basic/basic.apk"; local
42 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path);
50 String8 path((GetTestDataPath() + "/basic/basic.apk").data());
53 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */,
63 std::string path = kFrameworkPath; local
65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path);
73 String8 path(kFrameworkPath);
76 assets.addAssetPath(path, nullptr /* cookie */, false /* appAsLib */,
90 for (const std::string& path : paths) {
91 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path);
[all...]
H A DTestHelpers.cpp34 // Extract the directory of the current executable path.
36 const std::string path = base::GetExecutablePath(); local
37 std::unique_ptr<char, decltype(&std::free)> mutable_path = {strdup(path.c_str()), std::free};
43 // Set the default test data path to be the executable path directory.
64 void SetTestDataPath(const std::string& path) { sTestDataPath = path; } argument
67 CHECK(!sTestDataPath.empty()) << "no test data path set.";
/frameworks/base/libs/hwui/
H A DCanvasState.h126 bool clipPath(const SkPath* path, SkClipOp op);
139 void setProjectionPathMask(const SkPath* path) { argument
140 mSnapshot->setProjectionPathMask(path);
H A DRecordingCanvas.h132 virtual bool quickRejectPath(const SkPath& path) const override;
136 virtual bool clipPath(const SkPath* path, SkClipOp op) override;
170 virtual void drawPath(const SkPath& path, const SkPaint& paint) override;
199 const SkPaint& paint, const SkPath& path, size_t start, size_t end) override;
227 inline const SkPath* refPath(const SkPath* path) { argument
228 if (!path) return nullptr;
230 // The points/verbs within the path are refcounted so this copy operation
231 // is inexpensive and maintains the generationID of the original path.
232 const SkPath* cachedPath = new SkPath(*path);
H A DSnapshot.cpp80 void Snapshot::clipPath(const SkPath& path, SkClipOp op) { argument
82 mClipArea->clipPathWithTransform(path, transform, static_cast<SkRegion::Op>(op));
161 void Snapshot::setProjectionPathMask(const SkPath* path) { argument
162 projectionPathMask = path;
/frameworks/base/libs/hwui/tests/unit/
H A DClipAreaTests.cpp95 SkPath path; local
97 path.addCircle(r, r, r);
98 area.clipPathWithTransform(path, &Matrix4::identity(), SkRegion::kIntersect_Op);
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c134 char path[100]; local
136 snprintf(path, sizeof(path), "/dev/%s", name);
137 int fd = open(path, O_RDWR);
/frameworks/base/media/java/android/media/
H A DMediaScannerConnection.java50 public void scanCompleted(String path, Uri uri) {
53 client.onScanCompleted(path, uri);
66 * @param path the path to the file that has been scanned.
70 public void onScanCompleted(String path, Uri uri); argument
88 * @param path the path to the file that has been scanned.
92 public void onScanCompleted(String path, Uri uri); argument
163 * @param path the path t
167 scanFile(String path, String mimeType) argument
202 onScanCompleted(String path, Uri uri) argument
[all...]
/frameworks/base/media/java/android/mtp/
H A DMtpPropertyGroup.java280 private static String nameFromPath(String path) { argument
281 // extract name from full path
283 int lastSlash = path.lastIndexOf('/');
287 int end = path.length();
291 return path.substring(start, end);
366 // special case - need to extract file name from full path
381 // if title and name fail, extract name from full path
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DObjectViewer.java66 public void setScanPath(String path) { argument
67 mPath = path;
76 public void onScanCompleted(String path, Uri uri) { argument
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
H A DOMAConstructed.java58 public String getScalarValue(Iterator<String> path) throws OMAException { argument
59 if (!path.hasNext()) {
62 String tag = path.next();
65 return child.getScalarValue(path);
72 public OMANode getListValue(Iterator<String> path) throws OMAException { argument
73 if (!path.hasNext()) {
76 String tag = path.next();
86 } else if (path.hasNext()) {
87 return child.getListValue(path);
H A DOMANode.java54 LinkedList<String> path = new LinkedList<>();
56 path.addFirst(node.getName());
58 return path;
71 public abstract String getScalarValue(Iterator<String> path) throws OMAException; argument
73 public abstract OMANode getListValue(Iterator<String> path) throws OMAException; argument
83 public abstract OMANode addChild(String name, String context, String value, String path) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPathInterpolatorBuilder.java30 public PathInterpolatorBuilder(Path path) { argument
31 initPath(path);
44 Path path = new Path();
45 path.moveTo(0, 0);
46 path.quadTo(controlX, controlY, 1f, 1f);
47 initPath(path);
51 Path path = new Path();
52 path.moveTo(0, 0);
53 path.cubicTo(x1, y1, x2, y2, 1f, 1f);
54 initPath(path);
57 initPath(Path path) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DFileA3D.java228 * @param path location of the file to load
232 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { argument
234 long fileId = rs.nFileA3DCreateFromAsset(mgr, path);
237 throw new RSRuntimeException("Unable to create a3d file from asset " + path);
249 * @param path location of the file to load
253 static public FileA3D createFromFile(RenderScript rs, String path) { argument
254 long fileId = rs.nFileA3DCreateFromFile(path);
257 throw new RSRuntimeException("Unable to create a3d file from " + path);
269 * @param path location of the file to load
273 static public FileA3D createFromFile(RenderScript rs, File path) { argument
[all...]
H A DFont.java160 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { argument
163 long fontId = rs.nFontCreateFromFile(path, pointSize, dpi);
166 throw new RSRuntimeException("Unable to create font from file " + path);
176 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { argument
177 return createFromFile(rs, res, path.getAbsolutePath(), pointSize);
183 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { argument
188 long fontId = rs.nFontCreateFromAsset(mgr, path, pointSize, dpi);
190 throw new RSRuntimeException("Unable to create font from asset " + path);
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DRoutingControlAction.java36 * <li> New CEC device at the tail of the active routing path
37 * <li> Removed CEC device from the active routing path
45 // latest routing path to set the new active source.
60 // true if <Give Power Status> should be sent once the new active routing path is determined.
71 // The latest routing path. Updated by each <Routing Information> from CEC switches.
74 RoutingControlAction(HdmiCecLocalDevice localDevice, int path, boolean queryDevicePowerStatus, argument
78 mCurrentRoutingPath = path;
101 // If the routing path doesn't belong to the currently active one, we should
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DAccessibilityGestureDetectorTest.java131 /** Test recognizing path from PATH_START to PATH_START+delta. */
133 ArrayList<PointF> path = new ArrayList<>();
134 path.add(PATH_START);
137 fillPath(PATH_START, segmentEnd, path);
139 testPath(path, gestureId);
142 /** Test recognizing path from PATH_START to PATH_START+delta1 to PATH_START+delta2. */
144 ArrayList<PointF> path = new ArrayList<>();
145 path.add(PATH_START);
148 fillPath(PATH_START, startPlusDelta1, path);
151 fillPath(startPlusDelta1, startPlusDelta2, path);
157 fillPath(PointF start, PointF end, ArrayList<PointF> path) argument
175 testPath(ArrayList<PointF> path, int gestureId) argument
[all...]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DMainActivity.java63 String path = intent.getStringExtra(EXTRA_PATH);
65 if (path == null) {
66 path = "";
69 setTitle(path);
75 listFragment.setListAdapter(new SimpleAdapter(this, getData(path),
155 protected Intent browseIntent(String path) { argument
158 result.putExtra(EXTRA_PATH, path);
/frameworks/base/tests/net/java/com/android/internal/net/
H A DNetworkStatsFactoryTest.java220 private File file(String path) throws Exception { argument
221 return new File(mTestProc, path);
/frameworks/base/tools/aapt2/io/
H A DZipArchive.cpp81 const StringPiece& path, std::string* out_error) {
87 int32_t result = OpenArchive(path.data(), &collection->handle_);
116 std::string nested_path = path.to_string() + "@" + zip_entry_path;
130 IFile* ZipFileCollection::FindFile(const StringPiece& path) { argument
131 auto iter = files_by_name_.find(path.to_string());
80 Create( const StringPiece& path, std::string* out_error) argument

Completed in 426 milliseconds

1234567891011>>