Files
rr3-apk/decompiled/sources/com/mbridge/msdk/foundation/tools/s.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

54 lines
1.8 KiB
Java

package com.mbridge.msdk.foundation.tools;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import csdk.gluads.Consts;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class s {
public static String a(int i, int i2, int i3, int i4, int i5) {
JSONObject jSONObject = new JSONObject();
try {
try {
jSONObject.put("code", 0);
jSONObject.put("message", "Success");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("rotateAngle", i);
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put("left", i2);
jSONObject3.put(TtmlNode.RIGHT, i3);
jSONObject3.put("top", i4);
jSONObject3.put(Consts.SDK_BANNER_POSITION_BOTTOM, i5);
jSONObject2.put("cutoutInfo", jSONObject3);
jSONObject.put("data", jSONObject2);
} catch (Exception e) {
af.b("JSONUtils", e.getMessage());
}
} catch (Throwable th) {
af.b("JSONUtils", th.getMessage());
try {
jSONObject.put("code", 1);
jSONObject.put("message", "Fail");
} catch (JSONException e2) {
af.b("JSONUtils", e2.getMessage());
}
}
return jSONObject.toString();
}
public static ArrayList<String> a(JSONArray jSONArray) {
if (jSONArray == null) {
return null;
}
int length = jSONArray.length();
ArrayList<String> arrayList = new ArrayList<>(length);
for (int i = 0; i < length; i++) {
arrayList.add(jSONArray.optString(i));
}
return arrayList;
}
}