Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 69) sorted by relevance

123

/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DPixelStreamManagerTest.cpp106 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
107 Status status = memHandle.setFrameData(timestamp, frame); in TEST()
120 EXPECT_THAT(buffer, ContainsDataFromFrame(&frame)); in TEST()
134 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
135 Status status = memHandle.setFrameData(timestamp, frame); in TEST()
159 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
160 Status status = memHandle.setFrameData(timestamp, frame); in TEST()
163 EXPECT_THAT(memHandle.getHardwareBuffer(), ContainsDataFromFrame(&frame)); in TEST()
219 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
225 EXPECT_EQ(manager->queuePacket(frame, 0), Status::SUCCESS); in TEST()
[all …]
/packages/services/Car/cpp/computepipe/tests/fuzz/
DPixelMemHandleFuzzer.cpp35 InputFrame convertToInputFrame(const fuzz::proto::Frame frame) { in convertToInputFrame() argument
36 uint32_t height = frame.height(); in convertToInputFrame()
37 uint32_t width = frame.width(); in convertToInputFrame()
38 uint32_t stride = frame.stride(); in convertToInputFrame()
39 PixelFormat pixelFormat = static_cast<PixelFormat>(frame.format()); in convertToInputFrame()
40 const uint8_t* data = reinterpret_cast<const uint8_t*>(frame.buffer().c_str()); in convertToInputFrame()
64 for (auto& frame : input.frames()) { in isValid() local
65 uint64_t height = frame.height(); in isValid()
66 uint64_t width = frame.width(); in isValid()
67 uint64_t stride = frame.stride(); in isValid()
[all …]
DPixelStreamManagerFuzzer.cpp76 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &pixelData[0]); in LLVMFuzzerTestOneInput() local
106 manager->queuePacket(frame, rand()); in LLVMFuzzerTestOneInput()
/packages/modules/ExtServices/native/tests/
DImageHashManager_test.cpp54 const auto frame = NewFrameFromJpeg(filename); in GetFingerprint() local
56 return fingerprinter.GenerateFingerprint(reinterpret_cast<const uint8_t*>(frame.c_str())); in GetFingerprint()
67 const auto frame = NewFrameFromJpeg(filename); in CreatePHash() local
69 const auto buffer = reinterpret_cast<const uint8_t*>(frame.c_str()); in CreatePHash()
88 const auto frame = NewFrameFromJpeg("120.jpg.raw"); in TEST() local
90 const auto buffer = reinterpret_cast<const uint8_t*>(frame.c_str()); in TEST()
109 const auto frame = NewFrameFromJpeg("120.jpg.raw"); in TEST() local
111 const auto buffer = reinterpret_cast<const uint8_t*>(frame.c_str()); in TEST()
/packages/services/Car/cpp/computepipe/runner/input_manager/
DEvsInputManager.cpp37 void AnalyzeCallback::analyze(const ::android::automotive::evs::support::Frame& frame) { in analyze() argument
47 InputFrame inputFrame(frame.height, frame.width, PixelFormat::RGBA, frame.stride * 4, in analyze()
48 frame.data); in analyze()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java306 Rect frame = new Rect(); in finalGeometryRect() local
307 crop.roundOut(frame); in finalGeometryRect()
308 return frame; in finalGeometryRect()
315 Rect frame = new Rect(); in applyFullGeometryMatrix() local
316 crop.roundOut(frame); in applyFullGeometryMatrix()
317 Matrix m = getCropSelectionToScreenMatrix(null, holder, width, height, frame.width(), in applyFullGeometryMatrix()
318 frame.height()); in applyFullGeometryMatrix()
320 Bitmap temp = bitmapCache.getBitmap(frame.width(), in applyFullGeometryMatrix()
321 frame.height(), BitmapCache.UTIL_GEOMETRY); in applyFullGeometryMatrix()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionControlPreference.java278 ViewGroup frame = (ViewGroup) holder.findViewById(frameId); in setIcons() local
280 frame.setVisibility(View.VISIBLE); in setIcons()
281 frame.removeAllViews(); in setIcons()
289 frame.addView(group); in setIcons()
291 } else if (frame != null) { in setIcons()
292 frame.setVisibility(View.GONE); in setIcons()
/packages/modules/ExtServices/native/pHash/
Dphash_fingerprinter.cpp28 int64_t PhashFingerprinter::GenerateFingerprint(const uint8_t* frame) { in GenerateFingerprint() argument
30 if (frame == nullptr) { in GenerateFingerprint()
35 Array2D<const uint8_t> dct_in(frame); in GenerateFingerprint()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DMosaic.cpp134 MosaicFrame *frame = frames[frames_size]; in addFrame() local
136 frame->image = imageYVU; in addFrame()
144 align_flag = aligner->addFrame(frame->image); in addFrame()
145 aligner->getLastTRS(frame->trs); in addFrame()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java368 final Rect frame = mScannerCallback.getFramePosition(mPreviewSize, mCameraOrientation); in getFrameImage() local
372 image.crop(frame.left, frame.top, frame.width(), frame.height()); in getFrameImage()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java182 AppWidgetResizeFrame frame = (AppWidgetResizeFrame) launcher.getLayoutInflater() in showForWidget() local
186 ImageView imageView = frame.findViewById(R.id.widget_resize_frame); in showForWidget()
193 frame.setupForWidget(widget, cellLayout, dl); in showForWidget()
194 ((DragLayer.LayoutParams) frame.getLayoutParams()).customPosition = true; in showForWidget()
196 dl.addView(frame); in showForWidget()
197 frame.mIsOpen = true; in showForWidget()
198 frame.snapToWidget(false); in showForWidget()
/packages/services/Car/cpp/computepipe/runner/debug_display_manager/
DEvsDisplayManager.cpp41 BufferDesc getBufferDesc(const std::shared_ptr<MemHandle>& frame) { in getBufferDesc() argument
43 AHardwareBuffer_describe(frame->getHardwareBuffer(), &hwDesc); in getBufferDesc()
52 buffer.memHandle = AHardwareBuffer_getNativeHandle(frame->getHardwareBuffer()); in getBufferDesc()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNative.java1803 public void sendMgmtFrame(@NonNull String ifaceName, @NonNull byte[] frame,
1805 mWifiCondManager.sendMgmtFrame(ifaceName, frame, mcs, Runnable::run, callback);
1842 byte[] frame = buildProbeRequestFrame(
1845 sendMgmtFrame(ifaceName, frame, callback, mcs);
1852 ByteBuffer frame = ByteBuffer.allocate(BASIC_PROBE_REQUEST_FRAME_SIZE);
1854 frame.order(ByteOrder.LITTLE_ENDIAN);
1857 frame.put((byte) 0x40);
1860 frame.put((byte) 0x00);
1865 frame.putShort((short) 0x3c);
1868 frame.put(receiverMac);
[all …]
/packages/services/Car/cpp/computepipe/tests/runner/graph/includes/
DPrebuiltEngineInterfaceImpl.h52 const runner::InputFrame& frame) override { in DispatchPixelData() argument
53 mPixelCallbackFn(streamId, timestamp, frame); in DispatchPixelData()
/packages/services/Car/cpp/computepipe/runner/engine/
DDefaultEngine.cpp206 void DefaultEngine::DispatchPixelData(int streamId, int64_t timestamp, const InputFrame& frame) { in DispatchPixelData() argument
213 mStreamManagers[streamId]->queuePacket(frame, timestamp); in DispatchPixelData()
598 [this](int streamId, int64_t timestamp, const InputFrame& frame) { in populateInputManagers() argument
599 return this->mGraph->SetInputStreamPixelData(streamId, timestamp, frame); in populateInputManagers()
737 Status InputCallback::dispatchInputFrame(int streamId, int64_t timestamp, const InputFrame& frame) { in dispatchInputFrame() argument
738 return mPacketHandler(streamId, timestamp, frame); in dispatchInputFrame()
DDefaultEngine.h106 void DispatchPixelData(int streamId, int64_t timestamp, const InputFrame& frame) override;
323 Status dispatchInputFrame(int streamId, int64_t timestamp, const InputFrame& frame) override;
/packages/services/Car/cpp/evs/apps/demo_app_evs_support_lib/
Devs_app_support_lib.cpp58 void analyze(const Frame &frame) { in analyze() argument
60 if (frame.data == nullptr) { in analyze()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSurfaceTransactionApplier.java81 mTargetViewRootImpl.registerRtFrameCallback(frame -> { in scheduleApply()
94 mTargetViewRootImpl.mergeWithNextTransaction(t, frame); in scheduleApply()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStatePanelTrack.java319 Rect frame = new Rect(); in findChildAt() local
324 child.getHitRect(frame); in findChildAt()
325 if (frame.contains(scrolledXInt, scrolledYInt)) { in findChildAt()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAbstractSlotRenderer.java114 protected static void drawFrame(GLCanvas canvas, Rect padding, Texture frame, in drawFrame() argument
116 frame.draw(canvas, x - padding.left, y - padding.top, width + padding.left + padding.right, in drawFrame()
/packages/services/Car/cpp/computepipe/runner/graph/
DStreamSetObserver.cpp73 runner::InputFrame frame(pixels.height(), pixels.width(), in startObservingStream() local
80 frame); in startObservingStream()
/packages/services/Car/cpp/computepipe/tests/runner/graph/
DGrpcGraphTest.cpp152 runner::InputFrame frame(0, 0, static_cast<PixelFormat>(0), 0, nullptr); in TEST_F() local
154 EXPECT_EQ(mGrpcGraph->SetInputStreamPixelData(0, 0, frame), Status::FATAL_ERROR); in TEST_F()
/packages/services/Car/cpp/evs/manager/1.1/
DVirtualCamera.cpp403 const auto frame = mFramesHeld[key].back(); in startVideoStream() local
404 if (frame.timestamp > lastFrameTimestamp) { in startVideoStream()
405 lastFrameTimestamp = frame.timestamp; in startVideoStream()
407 frames[i++] = frame; in startVideoStream()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java263 Drawable frame = holder.tileView.getForeground(); in initOptions()
264 Drawable[] layers = {frame, checkmark}; in initOptions()
265 if (frame == null) { in initOptions()
/packages/services/Car/cpp/computepipe/runner/stream_manager/
DPixelStreamManager.cpp191 Status PixelStreamManager::queuePacket(const InputFrame& frame, uint64_t timestamp) { in queuePacket() argument
231 Status status = memHandle->setFrameData(timestamp, frame); in queuePacket()

123