Home
last modified time | relevance | path

Searched refs:face (Results 1 – 25 of 114) sorted by relevance

12345

/frameworks/base/core/jni/android/graphics/
DTypeface.cpp31 TypefaceImpl* face = TypefaceImpl_createFromTypeface(family, (SkTypeface::Style)style); in Typeface_createFromTypeface() local
34 if (NULL == face) { in Typeface_createFromTypeface()
35face = TypefaceImpl_createFromTypeface(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_createFromTypeface()
37 for (int i = 0; NULL == face && i < 4; i++) { in Typeface_createFromTypeface()
38 face = TypefaceImpl_createFromTypeface(family, (SkTypeface::Style)i); in Typeface_createFromTypeface()
40 return reinterpret_cast<jlong>(face); in Typeface_createFromTypeface()
45 TypefaceImpl* face = TypefaceImpl_createWeightAlias(family, weight); in Typeface_createWeightAlias() local
46 return reinterpret_cast<jlong>(face); in Typeface_createWeightAlias()
50 TypefaceImpl* face = reinterpret_cast<TypefaceImpl*>(faceHandle); in Typeface_unref() local
51 TypefaceImpl_unref(face); in Typeface_unref()
[all …]
DFontFamily.cpp52 static jboolean addSkTypeface(FontFamily* family, SkTypeface* face) { in addSkTypeface() argument
53 MinikinFont* minikinFont = new MinikinFontSkia(face); in addSkTypeface()
62 SkTypeface* face = SkTypeface::CreateFromFile(str.c_str()); in FontFamily_addFont() local
63 if (face == NULL) { in FontFamily_addFont()
68 return addSkTypeface(fontFamily, face); in FontFamily_addFont()
75 SkTypeface* face = SkTypeface::CreateFromFile(str.c_str()); in FontFamily_addFontWeightStyle() local
76 if (face == NULL) { in FontFamily_addFontWeightStyle()
81 MinikinFont* minikinFont = new MinikinFontSkia(face); in FontFamily_addFontWeightStyle()
116 SkTypeface* face = SkTypeface::CreateFromStream(stream); in FontFamily_addFontFromAsset() local
117 if (face == NULL) { in FontFamily_addFontFromAsset()
[all …]
DTypefaceImpl.cpp165 void TypefaceImpl_unref(TypefaceImpl* face) { in TypefaceImpl_unref() argument
166 if (face != NULL) { in TypefaceImpl_unref()
167 face->fFontCollection->Unref(); in TypefaceImpl_unref()
169 delete face; in TypefaceImpl_unref()
172 int TypefaceImpl_getStyle(TypefaceImpl* face) { in TypefaceImpl_getStyle() argument
173 return face->fSkiaStyle; in TypefaceImpl_getStyle()
176 void TypefaceImpl_setDefault(TypefaceImpl* face) { in TypefaceImpl_setDefault() argument
177 gDefaultTypeface = face; in TypefaceImpl_setDefault()
DTypefaceImpl.h57 void TypefaceImpl_unref(TypefaceImpl* face);
59 int TypefaceImpl_getStyle(TypefaceImpl* face);
61 void TypefaceImpl_setDefault(TypefaceImpl* face);
DHarfBuzzNGFaceSkia.h53 hb_blob_t* harfbuzzSkiaReferenceTable(hb_face_t* face, hb_tag_t tag, void* userData);
55 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY);
DHarfBuzzNGFaceSkia.cpp140 hb_blob_t* harfbuzzSkiaReferenceTable(hb_face_t* face, hb_tag_t tag, void* userData) in harfbuzzSkiaReferenceTable() argument
165 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { in createFont() argument
166 hb_font_t* font = hb_font_create(face); in createFont()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DFrameProcessor.cpp197 camera_face_t face; in processFaceDetect() local
199 face.rect[0] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
201 face.rect[1] = l.mParameters.arrayYToNormalizedWithCrop( in processFaceDetect()
203 face.rect[2] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
205 face.rect[3] = l.mParameters.arrayYToNormalizedWithCrop( in processFaceDetect()
208 face.score = faceScores[i]; in processFaceDetect()
210 face.id = faceIds[i]; in processFaceDetect()
211 face.left_eye[0] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
213 face.left_eye[1] = l.mParameters.arrayYToNormalizedWithCrop( in processFaceDetect()
215 face.right_eye[0] = l.mParameters.arrayXToNormalizedWithCrop( in processFaceDetect()
[all …]
/frameworks/base/docs/html/training/wearables/watch-faces/
Dconfiguration.jd28 the watch face picker on the wearable. Users can choose the active watch face for their wearable
29 device by selecting it on the companion app or using the watch face picker on the wearable
32 <p>Some watch faces support configuration parameters to let users customize how the watch face
37 <p>Watch faces that support configuration parameters can let users customize a watch face using
42 <p>The digital watch face from the
44 implement handheld and wearable configuration activities and how to update a watch face in
51 <p>If your watch face includes configuration activities, add the following metadata entries to
75 intent when users want to configure your watch face.</p>
77 <p>If your watch face only includes a companion or a wearable configuration activity, you only
85 watch face, because complex menus are hard to navigate on smaller screens. Your wearable
[all …]
Ddrawing.jd27 face service, you can start writing code to initialize and draw your custom watch face.</p>
31 the watch face service. Many aspects of the
33 apply to any watch face, so you can reuse some of the code in your own watch faces.</p>
49 that your watch face needs, including loading bitmap resources, creating timer objects to run
52 of your watch face and makes it easier to maintain your code.</p>
54 <p>To initialize your watch face, follow these steps:</p>
58 <li>Initialize the watch face elements in the
80 <dd>Most watch faces contain at least one bitmap image used as the background of the watch face,
84 other design elements of your watch face.</dd>
86 <dd>The system notifies the watch face once a minute when the time changes, but some watch faces
[all …]
Dservice.jd31 Wear companion app</a> on the handheld device and in the watch face picker on the wearable. When
32 users select one of the available watch faces, the wearable device shows the watch face and
36 to implement the watch face service.</p>
42 <p>To create an Android project for your watch face in Android Studio:</p>
75 face implementations. The Google Play services client libraries (<code>play-services</code> and
121 When a watch face is active, the system invokes the methods in its service when the time changes
123 notification). The service implementation then draws the watch face on the screen using the
126 <p>To implement a watch face, you extend the
143 /* provide your watch face implementation */
153 /* initialize your watch face */
[all …]
Dinteracting.jd23 <p>Your watch's display is more than just a pretty face: Users can interact with it.
24 For example, a user might tap the watch face to learn what song is currently playing, or
26 the single-tap gesture at a given location on the watch face, as long as there's not another
29 <p>This lesson teaches you how to implement an interactive watch face by first constructing the
30 watch face style, and then implementing gesture handling.</p>
33 face, you should be sure to read the <a href="{@docRoot}design/wear/watchfaces.html">Watch Faces for
38 <p>When constructing an interactive watch-face style, the first thing the app must do is tell the
39 system that the watch face receives <a href="{@docRoot}design/wear/watchfaces.html#ag">tap events</…
49 <p>When the system detects a tap on the watch face, it triggers the
55 as showing a detailed step count or changing the theme of the watch face. The code snippet
[all …]
Dissues.jd20 <p>Creating a custom watch face for Android Wear is substantially different from creating
29 round screens can contain an inset (or "chin") at the bottom of the screen. Your watch face
33 <p>Android Wear lets your watch face determine the screen shape at runtime. To detect whether
55 <p>To adapt your design when you draw your watch face, check the value of the
74 watch face should adapt to these situations by ensuring that users can still tell the time while
78 down the watch face to fit inside the portion of the screen not covered by the peek card. Digital
81 your watch face, use the
85 <p>In ambient mode, peek cards have a transparent background. If your watch face contains details
114 method. This is usually necessary if your watch face has a light background, since the system
127 resolutions. Your watch face should adapt to these variations by using relative measurements
[all …]
Dinformation.jd26 watch face not only gives you the opportunity to tell time in visually compelling ways, but
29 <p>Like any other wearable app, your watch face can communicate with apps running on the handheld
33 watch face.</p>
45 <p>Before you design and implement a contextually-aware watch face, answer the following
57 in your watch face, such as location, calendar events, social media trends, picture feeds, stock
59 appropriate for a watch face, so you should consider what kinds of data are most relevant to
60 your users throughout the day. Your watch face should also gracefully handle the case where the
63 <p>The active watch face on an Android Wear device is an app that runs continuously, so you
69 <p>You should summarize contextual information on your watch face, since there is limited
72 and colors. For example, a watch face could change its background image depending on the current
[all …]
Dindex.jd36 wearable device previews the watch face and lets the user set configuration options.</p>
41 on the handheld device and in the watch face picker on the wearable device.</p>
58 <dd>Learn how to design a watch face that works on any Android Wear device.</dd>
61 <dd>Learn how to respond to important events during the lifecycle of your watch face.</dd>
64 <dd>Learn how to draw your watch face on a Wear device screen.</dd>
67 <dd>Learn how to incorporate contextual information into your watch face.</dd>
70 <dd>Learn how to enable the user to interact with your watch face.</dd>
76 <dd>Learn how to fix common problems when developing a watch face.</dd>
Ddesigning.jd27 <p>Similar to the process of designing a traditional watch face, creating one for
41 <p>As you plan the look of your watch face and what kind of information it should present
60 <dd>Your watch face should support ambient mode with limited color and interactive mode with
64 <dd>In ambient mode, your watch face should keep most pixels black. Depending on the screen
73 <dd>Your watch face can leverage sensors and cellular connectivity on the companion mobile
89 <p>After you finalize the design for your watch face, you need to determine how to obtain any
90 necessary data and draw the watch face on the wearable device. Most implementations
108 and store the results to reuse the data every time you draw the watch face. For example, you
111 <p>To increase battery life, the application code that draws your watch face in ambient mode
114 animations to draw your watch face.</p>
Dperformance.jd23 the animations in your watch face run smoothly and that your service does not perform unnecessary
25 that your watch face uses power efficiently.</p>
38 method every time the system redraws the watch face, as described in
56 <p>To improve the performance of your watch face:</p>
75 marks to avoid drawing two full-screen bitmaps every time the system redraws the watch face.</p>
112 method every time it redraws your watch face, so you should only include operations that are
113 strictly required to update the watch face inside this method to improve performance.<p>
133 <p>To analyze the performance of your watch face, use the Android Device Monitor. In particular,
145 practices in this section to reduce the power consumption of your watch face.</p>
155 <p>Animations and small changes to the contents of the watch face wake up the CPU. Your watch
[all …]
/frameworks/minikin/sample/
Dexample.cpp50 FT_Face face; in makeFontCollection() local
55 error = FT_New_Face(library, fn, 0, &face); in makeFontCollection()
59 MinikinFont *font = new MinikinFontFreeType(face); in makeFontCollection()
67 error = FT_New_Face(library, fn, 0, &face); in makeFontCollection()
68 MinikinFont *font = new MinikinFontFreeType(face); in makeFontCollection()
/frameworks/base/docs/html/design/wear/
Dwatchfaces.jd15 information to users. Designing a watch face requires a careful blending of data and visual
33 <p>Creating a watch face for Android Wear is an exercise centered around visualizing time clearly.
39 most successful watch face designs leverage these advanced capabilities while delivering a
42 <p>Glanceability is the single most important principle to consider when creating a watch face
43 design. Your watch face designs should deliver a singular expression of time and related data.
53 format, but a little planning will allow users to enjoy your watch face regardless of screen
61 <p>Ideally, the visual functionality of the watch face works for both round and square
62 formats. In this example, the visual functionality of the watch face is flexible enough
110 <p>Android Wear devices operate in two main modes: ambient and interactive. Your watch face
111 designs should take these modes into account. Generally, if your watch face design looks great
[all …]
/frameworks/rs/
DrsAdapter.h45 inline void setFace(RsAllocationCubemapFace face) {mFace = face;} in setFace() argument
77 inline void setFace(RsAllocationCubemapFace face) {mFace = face;} in setFace() argument
DrsAllocation.cpp160 void * Allocation::getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, in getPointer() argument
165 ((face != RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X) && !mHal.state.hasFaces) || in getPointer()
172 mRSC->mHal.funcs.allocation.getPointer(rsc, this, lod, face, z, array); in getPointer()
199 …ation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in data() argument
201 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data()
228 …ation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in read() argument
243 …rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in read()
681 …xt *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsi_Allocation2DData() argument
684 a->data(rsc, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in rsi_Allocation2DData()
772 for (uint32_t face = 0; face < 6; face ++) { in rsi_AllocationCubeCreateFromBitmap() local
[all …]
/frameworks/rs/driver/
DrsdAllocation.cpp93 uint32_t lod, RsAllocationCubemapFace face) { in GetOffsetPtr() argument
95 ptr += face * alloc->mHal.drvState.faceOffset; in GetOffsetPtr()
105 RsAllocationCubemapFace face, uint32_t w, uint32_t h) { in Update2DTexture() argument
114 t = gFaceOrder[face]; in Update2DTexture()
134 for (uint32_t face = 0; face < faceCount; face ++) { in Upload2DTexture() local
136 const uint8_t *p = GetOffsetPtr(alloc, 0, 0, 0, lod, (RsAllocationCubemapFace)face); in Upload2DTexture()
140 t = gFaceOrder[face]; in Upload2DTexture()
864 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsdAllocationData2D() argument
876 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
906 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
[all …]
/frameworks/base/docs/html/design/downloads/
Dindex.jd100 <h4>Slide watch face</h4>
101 <p>Example of a watch face design in AI format.
120 <h4>Slide watch face specifications</h4>
121 <p>Design specifications for the Slide watch face in PSD format.
140 <h4>Watch face icon example</h4>
141 <p>Template for creating watch face icons for the carousel on Android Wear devices.
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java602 for (Face face : faces) { in setFaces()
603 if (face == null) { in setFaces()
609 if (face.getId() == Face.ID_UNSUPPORTED) { in setFaces()
625 for (Face face : faces) { in setFaces()
626 if (face == null) { in setFaces()
630 faceRectangles[i] = face.getBounds(); in setFaces()
631 faceScores[i] = (byte)face.getScore(); in setFaces()
634 faceIds[i] = face.getId(); in setFaces()
638 faceLandmarks[i * FACE_LANDMARK_SIZE + j++] = face.getLeftEyePosition().x; in setFaces()
639 faceLandmarks[i * FACE_LANDMARK_SIZE + j++] = face.getLeftEyePosition().y; in setFaces()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp338 RsAllocationCubemapFace face = RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X, in FepPtrSetup() argument
342 …fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3… in FepPtrSetup()
346 …fep->outPtr[0] = (uint8_t *)mtls->aout[0]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4); in FepPtrSetup()
368 r = sliceInt(&fep->current.face, r, mtls->start.face, mtls->end.face); in SelectOuterSlice()
396 (RsAllocationCubemapFace)fep.current.face, in walk_general()
463 (mtls->start.face != mtls->end.face) || in launchThreads()
537 (RsAllocationCubemapFace) mtls->fep.current.face, in launchThreads()
/frameworks/base/opengl/java/android/opengl/
DGLErrorWrapper.java510 public void glMaterialf(int face, int pname, float param) { in glMaterialf() argument
512 mgl.glMaterialf(face, pname, param); in glMaterialf()
516 public void glMaterialfv(int face, int pname, float[] params, int offset) { in glMaterialfv() argument
518 mgl.glMaterialfv(face, pname, params, offset); in glMaterialfv()
522 public void glMaterialfv(int face, int pname, FloatBuffer params) { in glMaterialfv() argument
524 mgl.glMaterialfv(face, pname, params); in glMaterialfv()
528 public void glMaterialx(int face, int pname, int param) { in glMaterialx() argument
530 mgl.glMaterialx(face, pname, param); in glMaterialx()
534 public void glMaterialxv(int face, int pname, int[] params, int offset) { in glMaterialxv() argument
536 mgl.glMaterialxv(face, pname, params, offset); in glMaterialxv()
[all …]

12345