Searched defs:frame (Results 1 - 25 of 77) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/
H A DFrameLayoutGravity.java17 package android.widget.layout.frame;
H A DFrameLayoutMargin.java17 package android.widget.layout.frame;
H A DFrameLayoutMarginTest.java17 package android.widget.layout.frame;
25 import android.widget.layout.frame.FrameLayoutMargin;
H A DFrameLayoutGravityTest.java17 package android.widget.layout.frame;
24 import android.widget.layout.frame.FrameLayoutGravity;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFinalPort.java32 protected synchronized void setFieldFrame(Frame frame, boolean isAssignment) { argument
34 checkFrameType(frame, isAssignment);
38 super.setFieldFrame(frame, isAssignment);
H A DSimpleFrameManager.java83 throw new RuntimeException("Unsupported frame target type: " +
90 public Frame retainFrame(Frame frame) { argument
91 frame.incRefCount();
92 return frame;
96 public Frame releaseFrame(Frame frame) { argument
97 int refCount = frame.decRefCount();
98 if (refCount == 0 && frame.hasNativeAllocation()) {
99 frame.releaseNativeAllocation();
104 return frame;
H A DStreamPort.java41 public void setFrame(Frame frame) { argument
42 assignFrame(frame, true);
46 public void pushFrame(Frame frame) { argument
47 assignFrame(frame, false);
50 protected synchronized void assignFrame(Frame frame, boolean persistent) { argument
52 checkFrameType(frame, persistent);
60 "Attempting to push more than one frame on port: " + this + "!");
62 mFrame = frame.retain();
69 // Make sure we have a frame
71 throw new RuntimeException("No frame availabl
[all...]
H A DCachedFrameManager.java64 public Frame retainFrame(Frame frame) { argument
65 return super.retainFrame(frame);
69 public Frame releaseFrame(Frame frame) { argument
70 if (frame.isReusable()) {
71 int refCount = frame.decRefCount();
72 if (refCount == 0 && frame.hasNativeAllocation()) {
73 if (!storeFrame(frame)) {
74 frame.releaseNativeAllocation();
81 super.releaseFrame(frame);
83 return frame;
98 storeFrame(Frame frame) argument
[all...]
H A DFieldPort.java43 public void pushFrame(Frame frame) { argument
44 setFieldFrame(frame, false);
48 public void setFrame(Frame frame) { argument
49 setFieldFrame(frame, true);
79 throw new RuntimeException("Cannot pull frame on " + this + "!");
97 protected synchronized void setFieldFrame(Frame frame, boolean isAssignment) { argument
99 checkFrameType(frame, isAssignment);
102 Object value = frame.getObjectValue();
108 // Since a frame was set, mark this port as having a frame t
[all...]
H A DFilterContext.java69 public void onFrameReceived(Filter filter, Frame frame, Object userData); argument
72 public synchronized void storeFrame(String key, Frame frame) { argument
77 frame.onFrameStore();
78 mStoredFrames.put(key, frame.retain());
82 Frame frame = mStoredFrames.get(key);
83 if (frame != null) {
84 frame.onFrameFetch();
86 return frame;
90 Frame frame = mStoredFrames.get(key);
91 if (frame !
[all...]
H A DFilterFunction.java112 public void setInputFrame(String input, Frame frame) { argument
113 mFilter.setInputFrame(input, frame);
H A DFrameManager.java35 public Frame duplicateFrame(Frame frame) { argument
36 Frame result = newFrame(frame.getFormat());
37 result.setDataFromFrame(frame);
41 public Frame duplicateFrameToTarget(Frame frame, int newTarget) { argument
42 MutableFrameFormat newFormat = frame.getFormat().mutableCopy();
45 result.setDataFromFrame(frame);
49 public abstract Frame retainFrame(Frame frame); argument
51 public abstract Frame releaseFrame(Frame frame); argument
H A DNativeBuffer.java107 void attachToFrame(Frame frame) { argument
109 // the frame.
110 mAttachedFrame = frame;
116 throw new NullPointerException("Attempting to read from null data frame!");
H A DOutputPort.java90 public void pushFrame(Frame frame) { argument
93 "Attempting to push frame on unconnected port: " + this + "!");
95 mTargetPort.pushFrame(frame);
99 public void setFrame(Frame frame) { argument
103 "Attempting to set frame on unconnected port: " + this + "!");
105 mTargetPort.setFrame(frame);
110 throw new RuntimeException("Cannot pull frame on " + this + "!");
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGraphInputSource.java22 .addOutputPort("frame", Signature.PORT_REQUIRED, FrameType.any())
26 public void pushFrame(Frame frame) { argument
30 if (frame == null) {
31 throw new RuntimeException("Attempting to assign null-frame!");
33 mFrame = frame.retain();
39 getConnectedOutputPort("frame").pushFrame(mFrame);
H A DTransformUtils.java43 // widely used, we can add a check here to disable frame expansion on such devices.
66 public static void generateMipMaps(FrameImage2D frame) { argument
67 TextureSource texture = frame.lockTextureSource();
69 frame.unlock();
72 public static void setTextureParameter(FrameImage2D frame, int param, int value) { argument
73 TextureSource texture = frame.lockTextureSource();
75 frame.unlock();
H A DFrameValues.java44 * can treat any object based frame as arrays.
46 * @return The array of values in this frame.
99 * Assign the array of values to the frame.
103 * @param values The values to assign to the frame.
138 * @param frame The frame value to assign.
141 public void setFrameValueAtIndex(FrameValue frame, int index) { argument
142 Object value = frame.getValue();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
H A DFrameSourceFilter.java23 * <p> When a frame is injected using {@link #injectFrame(Frame)}, this source will push it on its
24 * output port and then sleep until another frame is injected.
25 * <p> Multiple frames may be injected before any frame is pushed out. In this case they will be
53 * Call this method to inject a frame that will be pushed in a future execution of the filter.
56 public synchronized void injectFrame(Frame frame) { argument
57 mFrames.add(frame);
63 Frame frame = obtainFrame();
64 if (frame != null) {
65 getConnectedOutputPort("output").pushFrame(frame);
H A DFrameTargetFilter.java20 * a new frame has been consumed.
26 * Called each time this filter receives a new frame. The implementer of this method is
27 * responsible for releasing the frame.
29 void onFramePushed(String filterName, Frame frame); argument
51 Frame frame = getConnectedInputPort("input").pullFrame();
53 frame.retain();
54 mListener.onFramePushed(getName(), frame);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_vertex_frame.cpp38 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); local
39 if (frame && ints) {
43 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(int_ptr),
55 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); local
56 if (frame && floats) {
60 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(float_ptr),
74 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); local
75 if (frame && data) {
78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
88 VertexFrame* frame local
[all...]
/frameworks/av/cmds/stagefright/
H A Djpeg.cpp40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument
74 uint16_t *src = (uint16_t *)(frame + row * width * 2);
/frameworks/base/core/java/android/view/
H A DDisplayEventReceiver.java99 * The recipient should render a frame and then call {@link #scheduleVsync}
106 * @param frame The frame number. Increases by one for each vertical sync interval.
108 public void onVsync(long timestampNanos, int builtInDisplayId, int frame) { argument
125 * display frame begins.
138 private void dispatchVsync(long timestampNanos, int builtInDisplayId, int frame) { argument
139 onVsync(timestampNanos, builtInDisplayId, frame);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DCallbackFilter.java52 public CallbackRunnable(FilterContext.OnFrameReceivedListener listener, Filter filter, Frame frame, Object userData) { argument
55 mFrame = frame;
71 addInputPort("frame");
81 // Get frame and forward to listener
82 final Frame input = pullInput("frame");
94 throw new RuntimeException("CallbackFilter received frame, but no listener set!");
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageSlicer.java73 private void calcOutputFormatForInput(Frame frame) { argument
76 mInputWidth = frame.getFormat().getWidth();
77 mInputHeight = frame.getFormat().getHeight();
90 // Get input frame
100 // Create output frame
129 // Retain the original frame so it can be used next time.
137 // Release pushed frame
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp190 VideoFrame *frame = mRetriever->getFrameAtTime(timeUs, option); local
191 if (frame == NULL) {
192 ALOGE("failed to capture a video frame");
195 size_t size = sizeof(VideoFrame) + frame->mSize;
199 delete frame;
205 delete frame;
209 frameCopy->mWidth = frame->mWidth;
210 frameCopy->mHeight = frame->mHeight;
211 frameCopy->mDisplayWidth = frame->mDisplayWidth;
212 frameCopy->mDisplayHeight = frame
[all...]

Completed in 332 milliseconds

1234