Exploit databaseDownload repository ZIP
GH-31c028f5638c2b362488617d5ac6548b
pvharmo2/gha-lab-360f77d0d4
Sources for CVE-2026-39866
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files45
pvharmo2/gha-lab-360f77d0d4Revision 8f24b3d2bc38
- ↑..Parent directory
- bubbles/
- desktopmode/
- magnetictarget/
- pip/
- split/
- suppliers/
- transition/
- AlphaOptimizedButton.java
- BoostExecutor.kt
- BoxShadowHelper.java
- ComponentUtils.kt
- DevicePostureController.java
- DisplayChangeController.java
- DisplayController.java
- DisplayImeController.java
- DisplayInsetsController.java
- DisplayLayout.java
- DockStateReader.java
- ExternalInterfaceBinder.java
- FloatingContentCoordinator.kt
- HandlerExecutor.java
- HomeIntentProvider.kt
- ImeListener.kt
- InteractionJankMonitorUtils.java
- LaunchAdjacentController.kt
- MultiDisplayDragMoveBoundsCalculator.kt
- MultiDisplayDragMoveIndicatorController.kt
- MultiDisplayDragMoveIndicatorSurface.kt
- MultiInstanceHelper.kt
- NavigationBarsListener.kt
- OWNERS
- RemoteCallable.java
- ScreenshotUtils.java
- ShellExecutor.java
- SingleInstanceRemoteListener.java
- SurfaceUtils.java
- SyncTransactionQueue.java
- SystemWindows.java
- TabletopModeController.java
- TaskStackListenerCallback.java
- TaskStackListenerImpl.java
- TransactionPool.java
- TriangleShape.java
- TvWindowMenuActionButton.java
- UserProfileContexts.kt
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wmshell/src/com/android/wm/shell/common/BoxShadowHelper.java
Java · 3,110 bytes/*
* Copyright (C) 2025 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.wm.shell.common;
import android.content.Context;
import android.content.res.TypedArray;
import android.gui.BorderSettings;
import android.gui.BoxShadowSettings;
import com.android.wm.shell.R;
/**
* This class has helper functions for obtaining box shadow and border parameters from
* resource ids.
*/
public class BoxShadowHelper {
/**
* Gets border settings from an id.
*
* @return the border settings.
*/
public static BorderSettings getBorderSettings(Context context, int borderSettingsId) {
final TypedArray attr = context.obtainStyledAttributes(
borderSettingsId, R.styleable.BorderSettings);
final BorderSettings result = new BorderSettings();
result.strokeWidth =
attr.getDimension(
R.styleable.BorderSettings_borderStrokeWidth, 0f);
result.color =
attr.getColor(
R.styleable.BorderSettings_borderColor, 0);
attr.recycle();
return result;
}
/**
* Gets box shadow settings from an id.
*
* @return the box shadow settings.
*/
public static BoxShadowSettings getBoxShadowSettings(Context context,
int[] boxShadowSettingsIds) {
final BoxShadowSettings result = new BoxShadowSettings();
result.boxShadows =
new BoxShadowSettings.BoxShadowParams[boxShadowSettingsIds.length];
for (int i = 0; i < boxShadowSettingsIds.length; i++) {
final TypedArray attr = context.obtainStyledAttributes(
boxShadowSettingsIds[i], R.styleable.BoxShadowSettings);
final BoxShadowSettings.BoxShadowParams box =
new BoxShadowSettings.BoxShadowParams();
box.blurRadius = attr.getDimension(
R.styleable.BoxShadowSettings_boxShadowBlurRadius, 0f);
box.spreadRadius = attr.getDimension(
R.styleable.BoxShadowSettings_boxShadowSpreadRadius, 0f);
box.offsetX = attr.getDimension(
R.styleable.BoxShadowSettings_boxShadowOffsetX, 0f);
box.offsetY = attr.getDimension(
R.styleable.BoxShadowSettings_boxShadowOffsetY, 0f);
box.color = attr.getColor(
R.styleable.BoxShadowSettings_boxShadowColor, 0);
result.boxShadows[i] = box;
attr.recycle();
}
return result;
}
}