Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nstevens1040 committed May 3, 2024
0 parents commit f168e77
Show file tree
Hide file tree
Showing 47 changed files with 2,622 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
48 changes: 48 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
plugins {
alias(libs.plugins.androidApplication)
}

android {
namespace 'org.nanick.nr5gperf'
compileSdk 34

defaultConfig {
applicationId "org.nanick.nr5gperf"
minSdk 33
targetSdk 34
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {

implementation libs.appcompat
implementation libs.material
implementation libs.activity
implementation libs.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.ext.junit
androidTestImplementation libs.espresso.core
implementation 'com.fasterxml.jackson.core:jackson-core:2.10.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.1'
implementation group: 'commons-io', name: 'commons-io', version: '2.0.1'
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.12.0"))
// define any required OkHttp artifacts without version
implementation("com.squareup.okhttp3:okhttp")
implementation("com.squareup.okhttp3:logging-interceptor")
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package org.nanick.nr5gperf;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("org.nanick.nr5gperf", appContext.getPackageName());
}
}
34 changes: 34 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@drawable/tower_icon"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:roundIcon="@drawable/circle_icon"
android:supportsRtl="true"
android:theme="@style/Theme.CellPerf"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
30 changes: 30 additions & 0 deletions app/src/main/java/org/nanick/nr5gperf/LteBands.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.nanick.nr5gperf;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;

public class LteBands{
@JsonProperty("Downlink")
public ArrayList<Double> downlink;
@JsonProperty("DLEARFCN")
public ArrayList<Double> dLEARFCN;
@JsonProperty("Uplink")
public ArrayList<Double> uplink;
@JsonProperty("ULEARFCN")
public ArrayList<Double> uLEARFCN;
@JsonProperty("Band")
public int band;
@JsonProperty("Name")
public String name;
@JsonProperty("Mode")
public String mode;
@JsonProperty("Bandwidth")
public double bandwidth;
@JsonProperty("DuplexSpacing")
public int duplexSpacing;
@JsonProperty("Geographical")
public String geographical;
@JsonProperty("GSM3GPP")
public int gSM3GPP;
}
845 changes: 845 additions & 0 deletions app/src/main/java/org/nanick/nr5gperf/MainActivity.java

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions app/src/main/java/org/nanick/nr5gperf/Nr5GBands.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.nanick.nr5gperf;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;

public class Nr5GBands {
@JsonProperty("Downlink")
public ArrayList<Double> downlink;
@JsonProperty("DLNRARFCN")
public ArrayList<Double> dlNRARFCN;
@JsonProperty("Uplink")
public ArrayList<Double> uplink;
@JsonProperty("UPNRARFCN")
public ArrayList<Double> upNRARFCN;
@JsonProperty("Band")
public String band;
@JsonProperty("Name")
public String name;
@JsonProperty("Mode")
public String mode;
@JsonProperty("BandWidth")
public double bandwidth;
@JsonProperty("DuplexSpacing")
public int duplexSpacing;
@JsonProperty("Geographical")
public String geographical;
@JsonProperty("GSM3GPP")
public int gSM3GPP;
}
14 changes: 14 additions & 0 deletions app/src/main/res/drawable/circle_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="1400dp"
android:height="1400dp"
android:viewportWidth="1400"
android:viewportHeight="1400">
<path
android:strokeWidth="1"
android:pathData="M680,600m-600,0a600,600 0,1 1,1200 0a600,600 0,1 1,-1200 0"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M396,804q-57,-60 -86.5,-133T280,520q0,-78 29.5,-151T396,236l48,48q-48,48 -72,110.5T348,520q0,63 24,125.5T444,756l-48,48ZM492,708q-39,-39 -59.5,-88T412,520q0,-51 20.5,-100t59.5,-88l48,48q-30,27 -45,64t-15,76q0,36 15,73t45,67l-48,48ZM480,1000l135,-405q-16,-14 -25.5,-33t-9.5,-42q0,-42 29,-71t71,-29q42,0 71,29t29,71q0,23 -9.5,42T745,595L880,1000h-80l-26,-80L587,920l-27,80h-80ZM613,840h134l-67,-200 -67,200ZM868,708 L820,660q30,-27 45,-64t15,-76q0,-36 -15,-73t-45,-67l48,-48q39,39 58,88t22,100q0,51 -20.5,100T868,708ZM964,804 L916,756q48,-48 72,-110.5T1012,520q0,-63 -24,-125.5T916,284l48,-48q57,60 86.5,133T1080,520q0,78 -28,151t-88,133Z"
android:fillColor="#7fff00"/>
</vector>
Loading

0 comments on commit f168e77

Please sign in to comment.