/frameworks/av/services/audioflinger/ |
H A D | PatchPanel.cpp | 69 /* Connect a patch between several source and sink ports */ 70 status_t AudioFlinger::createAudioPatch(const struct audio_patch *patch, argument 75 return mPatchPanel->createAudioPatch(patch, handle); 80 /* Disconnect a patch */ 138 /* Connect a patch between several source and sink ports */ 139 status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *patch, argument 143 patch->num_sources, patch->num_sinks, *handle); 151 if (handle == NULL || patch == NULL) { 154 if (patch 363 createPatchConnections(Patch *patch, const struct audio_patch *audioPatch) argument 457 clearPatchConnections(Patch *patch) argument 534 struct audio_patch *patch = &removedPatch->mAudioPatch; local [all...] |
H A D | PatchPanel.h | 37 /* Create a patch between several source and sink ports */ 38 status_t createAudioPatch(const struct audio_patch *patch, 41 /* Release a patch */ 51 status_t createPatchConnections(Patch *patch, 53 void clearPatchConnections(Patch *patch); 57 Patch(const struct audio_patch *patch) : argument 58 mAudioPatch(*patch), mHandle(AUDIO_PATCH_HANDLE_NONE),
|
H A D | Threads.h | 174 CreateAudioPatchConfigEventData(const struct audio_patch patch, argument 176 mPatch(patch), mHandle(handle) {} 188 CreateAudioPatchConfigEvent(const struct audio_patch patch, argument 191 mData = new CreateAudioPatchConfigEventData(patch, handle); 269 status_t sendCreateAudioPatchConfigEvent(const struct audio_patch *patch, 274 virtual status_t createAudioPatch_l(const struct audio_patch *patch, 731 virtual status_t createAudioPatch_l(const struct audio_patch *patch, 889 virtual status_t createAudioPatch_l(const struct audio_patch *patch, 1260 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
|
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatchPeeker.cpp | 25 Res_png_9patch* patch = (Res_png_9patch*) data; local 26 size_t patchSize = patch->serializedSize(); 32 memcpy(patchNew, patch, patchSize); 40 // 'cause we don't want 565 predithered, since as a 9patch, we know
|
H A D | NinePatch.cpp | 18 #define LOG_TAG "9patch" 41 * IMPORTANT NOTE: 9patch chunks can be manipuated either as an array of bytes 43 * array required to hold a 9patch chunk is greater than sizeof(Res_png_9patch). 82 int8_t* patch = reinterpret_cast<int8_t*>(patchHandle); local 84 Res_png_9patch* p = (Res_png_9patch*) patch; 87 delete[] patch; 94 ALOGV("Drawing unscaled 9-patch: (%g,%g)-(%g,%g)", 109 ALOGV("Drawing scaled 9-patch: (%g,%g)-(%g,%g) srcDensity=%d destDensity=%d",
|
/frameworks/base/libs/hwui/ |
H A D | PatchCache.cpp | 44 INIT_LOGD(" Setting patch cache size to %skB", property); 47 INIT_LOGD(" Using default patch cache size of %.2fkB", DEFAULT_PATCH_CACHE_SIZE); 116 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { argument 120 if (key.getPatch() == patch) { 126 void PatchCache::removeDeferred(Res_png_9patch* patch) { argument 129 // Assert that patch is not already garbage 132 if (patch == mGarbage[i]) { 133 patch = nullptr; 137 LOG_ALWAYS_FATAL_IF(patch == nullptr); 139 mGarbage.push(patch); 149 Res_png_9patch* patch = mGarbage[i]; local 164 Patch* patch = pair.getSecond(); local 249 get(const AssetAtlas::Entry* entry, const uint32_t bitmapWidth, const uint32_t bitmapHeight, const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) argument [all...] |
H A D | PatchCache.h | 60 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch); 80 * Removes the entries associated with the specified 9-patch. This is meant 84 void removeDeferred(Res_png_9patch* patch); 99 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch): 100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), 145 * The patch cache maintains a linked-list of buffer blocks 165 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch); 98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) argument
|
H A D | Patch.cpp | 41 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) 42 : mColors(patch->getColors()) { 45 const int8_t numColors = patch->numColors; 56 uint32_t xCount = patch->numXDivs; 57 uint32_t yCount = patch->numYDivs; 65 const int32_t* xDivs = patch->getXDivs(); 66 const int32_t* yDivs = patch->getYDivs(); 40 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
|
H A D | ResourceCache.cpp | 145 int8_t* patch = (int8_t*) resource; local 146 delete[] patch;
|
H A D | Patch.h | 37 // 9-patch structures 44 const UvMapper& mapper, const Res_png_9patch* patch); 47 * Returns the size of this patch's mesh in bytes.
|
H A D | DisplayListCanvas.h | 101 void drawPatch(const SkBitmap& bitmap, const Res_png_9patch* patch, 362 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { argument 363 mDisplayListData->patchResources.add(patch); 364 mResourceCache.incrementRefcount(patch); 365 return patch;
|
H A D | GlopBuilder.h | 58 GlopBuilder& setMeshPatchQuads(const Patch& patch);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPatch.cpp | 30 AudioPatch::AudioPatch(const struct audio_patch *patch, uid_t uid) : argument 32 mPatch(*patch), 44 snprintf(buffer, SIZE, "%*sAudio patch %d:\n", spaces, "", index+1); 86 const sp<AudioPatch>& patch) 91 ALOGW("addAudioPatch() patch %d already in", handle); 94 add(handle, patch); 97 handle, patch->mAfPatchHandle, patch->mPatch.num_sources, patch->mPatch.num_sinks, 98 patch 85 addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch) argument 130 const sp<AudioPatch> patch = valueAt(i); local [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioPatch.h | 30 AudioPatch(const struct audio_patch *patch, uid_t uid); 46 status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 25 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">2D 35 * Struct of inset information attached to a 9 patch bitmap. 37 * Present on a 9 patch bitmap if it optical insets were manually included, 83 * @param chunk The 9-patch data chunk describing how the underlying bitmap 94 * @param chunk The 9-patch data chunk describing how the underlying 107 public NinePatch(NinePatch patch) { argument 108 mBitmap = patch.mBitmap; 109 mSrcName = patch.mSrcName; 110 if (patch.mPaint != null) { 111 mPaint = new Paint(patch [all...] |
/frameworks/webview/chromium/plat_support/ |
H A D | draw_sw.h | 51 typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch);
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayListCanvas.java | 271 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { argument 272 Bitmap bitmap = patch.getBitmap(); 275 nDrawPatch(mNativeCanvasWrapper, bitmap, patch.mNativeChunk, 281 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { argument 282 Bitmap bitmap = patch.getBitmap(); 285 nDrawPatch(mNativeCanvasWrapper, bitmap, patch.mNativeChunk,
|
/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.cpp | 298 struct audio_patch patch; local 299 patch.num_sources = 1; 300 patch.num_sinks = 1; 311 // release existing RX patch if any 316 // release TX patch if any 328 // of it due to legacy implementation. If not, create a patch. 334 // create RX path audio patch 344 rxSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]); 345 rxSinkDeviceDesc->toAudioPortConfig(&patch.sinks[0]); 357 outputDesc->toAudioPortConfig(&patch 375 struct audio_patch patch; local 2149 createAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle, uid_t uid) argument 2432 struct audio_patch *patch = &patchDesc->mPatch; local 4270 struct audio_patch patch; local 4372 struct audio_patch patch; local [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 54 mPatch1 = resources.getDrawable(R.drawable.patch);
|
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyInterface.h | 206 virtual status_t createAudioPatch(const struct audio_patch *patch, 315 /* Create a patch between several source and sink ports */ 316 virtual status_t createAudioPatch(const struct audio_patch *patch, 320 /* Release a patch */
|
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyClientImpl.cpp | 186 status_t AudioPolicyService::AudioPolicyClient::createAudioPatch(const struct audio_patch *patch, argument 190 return mAudioPolicyService->clientCreateAudioPatch(patch, handle, delayMs);
|
H A D | AudioPolicyService.cpp | 215 status_t AudioPolicyService::clientCreateAudioPatch(const struct audio_patch *patch, argument 219 return mAudioCommandThread->createAudioPatchCommand(patch, handle, delayMs); 507 ALOGV("AudioCommandThread() processing create audio patch"); 517 ALOGV("AudioCommandThread() processing release audio patch"); 536 ALOGV("AudioCommandThread() processing update audio patch list"); 742 const struct audio_patch *patch, 751 data->mPatch = *patch; 755 ALOGV("AudioCommandThread() adding create patch delay %d", delayMs); 772 ALOGV("AudioCommandThread() adding release patch delay %d", delayMs); 788 ALOGV("AudioCommandThread() adding update audio patch lis 741 createAudioPatchCommand( const struct audio_patch *patch, audio_patch_handle_t *handle, int delayMs) argument 919 struct audio_patch patch; local [all...] |
H A D | AudioPolicyService.h | 178 virtual status_t createAudioPatch(const struct audio_patch *patch, 212 status_t clientCreateAudioPatch(const struct audio_patch *patch, 288 status_t createAudioPatchCommand(const struct audio_patch *patch, 479 /* Create a patch between several source and sink ports */ 480 virtual status_t createAudioPatch(const struct audio_patch *patch, 484 /* Release a patch */
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 61 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch"> 64 * <a href="{@docRoot}guide/developing/tools/draw9patch.html">Draw 9-patch</a> tool guide.</p></div> 88 * Create drawable from raw nine-patch data, not dealing with density. 98 * Create drawable from raw nine-patch data, setting initial target density 108 * Create drawable from raw nine-patch data, setting initial target density 121 * Create drawable from existing nine-patch, not dealing with density. 126 public NinePatchDrawable(NinePatch patch) { argument 127 this(new NinePatchState(patch, new Rect()), null); 131 * Create drawable from existing nine-patch, setting initial target density 134 public NinePatchDrawable(Resources res, NinePatch patch) { argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_DisplayListCanvas.cpp | 122 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(patchPtr); local 124 renderer->drawPatch(bitmap, patch, left, top, right, bottom, paint);
|