diff options
Diffstat (limited to 'benchmark/app/src/main/res')
35 files changed, 695 insertions, 0 deletions
diff --git a/benchmark/app/src/main/res/drawable/card_bg.xml b/benchmark/app/src/main/res/drawable/card_bg.xml new file mode 100644 index 0000000..6c35bba --- /dev/null +++ b/benchmark/app/src/main/res/drawable/card_bg.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <gradient + android:type="linear" + android:angle="180" + android:startColor="@color/lagoon" + android:endColor="#dcf3ec"/> +<!-- + <stroke android:width="1dp" android:color="#B1BCBE"/>--> + <corners + android:radius="10dp"/> +</shape> diff --git a/benchmark/app/src/main/res/drawable/ic_bench_icon.xml b/benchmark/app/src/main/res/drawable/ic_bench_icon.xml new file mode 100644 index 0000000..a10538e --- /dev/null +++ b/benchmark/app/src/main/res/drawable/ic_bench_icon.xml @@ -0,0 +1,93 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="192dp" + android:height="192dp" + android:viewportWidth="512" + android:viewportHeight="512"> + <path + android:pathData="M15.019 195.698L169.247 106.655 207.804 128.915 207.804 255.999 53.577 345.044 15.019 322.782Z" + android:fillColor="#ACABB1"/> + <path + android:pathData="M15.019 195.698L15.019 322.782 53.577 345.044 53.577 217.96Z" + android:fillColor="#C6C5CB"/> + <path + android:pathData="M15.019 195.698L169.247 106.655 207.804 128.915 53.577 217.96Z" + android:fillColor="#D8D8DA"/> + <path + android:pathData="M15.019 166.956L169.247 77.913 207.804 100.174 207.804 122.434 53.577 211.478 15.019 189.217Z" + android:fillColor="#FFA834"/> + <path + android:pathData="M15.019 189.217L15.019 166.956 53.577 189.217 53.577 211.478Z" + android:fillColor="#F18700"/> + <path + android:pathData="M53.577 189.217L207.804 100.174 207.804 122.434 53.577 211.478Z" + android:fillColor="#D07400"/> + <path + android:pathData="M53.577 233.739L111.412 200.348 362.003 345.041 304.196 378.435 304.196 400.695 53.577 255.999Z" + android:fillColor="#FF9911"/> + <path + android:pathData="M304.196 378.435L53.577 233.739 53.577 255.999 304.196 400.695Z" + android:fillColor="#F18700"/> + <path + android:pathData="M72.855 267.13L72.855 298.689 304.238 432.288 304.196 400.695Z" + android:fillColor="#D07400"/> + <path + android:pathData="M130.69 189.217L130.689 211.478 362.003 345.041 419.867 311.652 169.247 166.956Z" + android:fillColor="#FF9911"/> + <path + android:pathData="M130.69 189.217L130.689 211.478 362.003 345.041 381.311 333.913Z" + android:fillColor="#F18700"/> + <path + android:pathData="M208.838 11.131L207.804 77.913 458.424 222.608 477.702 211.478 477.702 144.696 227.083 0Z" + android:fillColor="#FF9911"/> + <path + android:pathData="M207.804 100.174L207.804 144.696 458.424 289.391 477.702 278.261 477.702 233.739 227.083 89.043Z" + android:fillColor="#FF9911"/> + <path + android:pathData="M208.838 11.131L227.083 0 477.702 144.696 458.424 155.826Z" + android:fillColor="#FFA834"/> + <path + android:pathData="M207.804 100.174L227.083 89.043 477.702 233.739 458.424 244.87Z" + android:fillColor="#FFA834"/> + <path + android:pathData="M477.702 144.696L477.702 211.478 458.424 222.608 458.424 155.826Z" + android:fillColor="#F18700"/> + <path + android:pathData="M477.702 233.739L477.702 278.261 458.424 289.391 458.424 244.87Z" + android:fillColor="#F18700"/> + <path + android:pathData="M304.196 362.654L458.424 273.611 496.981 295.872 496.981 422.956 342.753 512 304.196 489.738Z" + android:fillColor="#ACABB1"/> + <path + android:pathData="M304.196 362.654L304.196 489.738 342.753 512 342.753 384.916Z" + android:fillColor="#C6C5CB"/> + <path + android:pathData="M304.196 362.654L458.424 273.611 496.981 295.872 342.753 384.916Z" + android:fillColor="#D8D8DA"/> + <path + android:pathData="M304.196 333.913L458.424 244.87 496.981 267.13 496.981 289.391 342.753 378.435 304.196 356.173Z" + android:fillColor="#FFA834"/> + <path + android:pathData="M304.196 356.173L304.196 333.913 342.753 356.173 342.753 378.435Z" + android:fillColor="#F18700"/> + <path + android:pathData="M342.753 356.173L496.981 267.13 496.981 289.391 342.753 378.435Z" + android:fillColor="#D07400"/> + <path + android:pathData="M284.928 189.211L246.372 166.951 246.372 189.187 227.083 200.348 265.65 222.603 284.928 211.448Z" + android:fillColor="#ACABB1"/> + <path + android:pathData="M246.372 166.951L246.372 189.187 265.702 200.348 265.702 178.08Z" + android:fillColor="#C6C5CB"/> + <path + android:pathData="M246.372 189.187c0 0 -19.299 11.167 -19.288 11.161c0.01 -0.006 19.374 11.076 19.331 11.1s19.288 -11.1 19.288 -11.1L246.372 189.187z" + android:fillColor="#D8D8DA"/> + <path + android:pathData="M400.546 256.024L361.99 233.764 361.99 255.999 342.701 267.161 381.268 289.415 400.546 278.261Z" + android:fillColor="#ACABB1"/> + <path + android:pathData="M361.99 233.764L361.99 255.999 381.32 267.161 381.32 244.893Z" + android:fillColor="#C6C5CB"/> + <path + android:pathData="M361.99 255.999c0 0 -19.299 11.167 -19.288 11.161c0.01 -0.006 19.374 11.076 19.331 11.1c-0.043 0.025 19.288 -11.1 19.288 -11.1L361.99 255.999z" + android:fillColor="#D8D8DA"/> +</vector>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/drawable/ic_launcher_background.xml b/benchmark/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..956b344 --- /dev/null +++ b/benchmark/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="108dp" + android:width="108dp" + android:viewportHeight="108" + android:viewportWidth="108"> + <path android:fillColor="#3DDC84" + android:pathData="M0,0h108v108h-108z"/> + <path android:fillColor="#00000000" android:pathData="M9,0L9,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,0L19,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M29,0L29,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M39,0L39,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M49,0L49,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M59,0L59,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M69,0L69,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M79,0L79,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M89,0L89,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M99,0L99,108" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,9L108,9" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,19L108,19" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,29L108,29" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,39L108,39" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,49L108,49" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,59L108,59" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,69L108,69" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,79L108,79" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,89L108,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M0,99L108,99" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,29L89,29" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,39L89,39" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,49L89,49" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,59L89,59" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,69L89,69" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M19,79L89,79" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M29,19L29,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M39,19L39,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M49,19L49,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M59,19L59,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M69,19L69,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> + <path android:fillColor="#00000000" android:pathData="M79,19L79,89" + android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> +</vector> diff --git a/benchmark/app/src/main/res/drawable/ic_launcher_foreground.xml b/benchmark/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..1ee1493 --- /dev/null +++ b/benchmark/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,31 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z"> + <aapt:attr name="android:fillColor"> + <gradient + android:startY="49.59793" + android:startX="42.9492" + android:endY="92.4963" + android:endX="85.84757" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0"/> + <item + android:color="#00000000" + android:offset="1.0"/> + </gradient> + </aapt:attr> + </path> + <path + android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z" + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:strokeWidth="1" + android:strokeColor="#00000000"/> +</vector>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/drawable/list_handle_layout.xml b/benchmark/app/src/main/res/drawable/list_handle_layout.xml new file mode 100644 index 0000000..3470014 --- /dev/null +++ b/benchmark/app/src/main/res/drawable/list_handle_layout.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <gradient + android:type="linear" + android:angle="270" + android:startColor="@color/salmon" + android:endColor="#ffdbd0"/> + + <stroke android:width="3dp" android:color="#B1BCBE"/> + <corners + android:radius="10dp"/> +</shape> diff --git a/benchmark/app/src/main/res/drawable/plus_5345954.png b/benchmark/app/src/main/res/drawable/plus_5345954.png Binary files differnew file mode 100644 index 0000000..257843f --- /dev/null +++ b/benchmark/app/src/main/res/drawable/plus_5345954.png diff --git a/benchmark/app/src/main/res/drawable/target.xml b/benchmark/app/src/main/res/drawable/target.xml new file mode 100644 index 0000000..f22fb1a --- /dev/null +++ b/benchmark/app/src/main/res/drawable/target.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" + android:viewportWidth="512" + android:viewportHeight="512" + android:width="50dp" + android:height="50dp"> + <path + android:pathData="M256 176c-44.004 0 -80.001 36 -80.001 80 0 44.004 35.997 80 80.001 80 44.005 0 79.999 -35.996 79.999 -80 0 -44 -35.994 -80 -79.999 -80zm190.938 58.667c-9.605 -88.531 -81.074 -160 -169.605 -169.599V32h-42.666v33.067c-88.531 9.599 -160 81.068 -169.604 169.599H32v42.667h33.062c9.604 88.531 81.072 160 169.604 169.604V480h42.666v-33.062c88.531 -9.604 160 -81.073 169.605 -169.604H480v-42.667h-33.062zM256 405.333c-82.137 0 -149.334 -67.198 -149.334 -149.333 0 -82.136 67.197 -149.333 149.334 -149.333 82.135 0 149.332 67.198 149.332 149.333S338.135 405.333 256 405.333z" + android:fillColor="#000000" /> +</vector>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/font/nokia_font.xml b/benchmark/app/src/main/res/font/nokia_font.xml new file mode 100644 index 0000000..136a952 --- /dev/null +++ b/benchmark/app/src/main/res/font/nokia_font.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<font-family xmlns:android="http://schemas.android.com/apk/res/android"> + <font + android:font="@font/nokiafc22" + android:fontStyle="normal" + android:fontWeight="800"/> +</font-family>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/font/nokiafc22.ttf b/benchmark/app/src/main/res/font/nokiafc22.ttf Binary files differnew file mode 100644 index 0000000..9dd011a --- /dev/null +++ b/benchmark/app/src/main/res/font/nokiafc22.ttf diff --git a/benchmark/app/src/main/res/layout/bottom_sheet_dialog.xml b/benchmark/app/src/main/res/layout/bottom_sheet_dialog.xml new file mode 100644 index 0000000..07539b9 --- /dev/null +++ b/benchmark/app/src/main/res/layout/bottom_sheet_dialog.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" + android:background="@color/grass" + android:id="@+id/slideUpContainer" + app:behavior_hideable="false" + app:behavior_peekHeight="65dp" + app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" + android:orientation="vertical"> + + <TextView + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="60dp" + android:background="@drawable/list_handle_layout" + android:text="@string/divider_text" + android:gravity="center|center" + /> + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/listContainer"> + <androidx.recyclerview.widget.RecyclerView + android:layout_width="match_parent" + android:layout_height="wrap_content" android:id="@+id/greenwashed"> + </androidx.recyclerview.widget.RecyclerView> + </ScrollView> +</LinearLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/layout/card_layout.xml b/benchmark/app/src/main/res/layout/card_layout.xml new file mode 100644 index 0000000..28154a7 --- /dev/null +++ b/benchmark/app/src/main/res/layout/card_layout.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" android:padding="5dp" android:layout_margin="5dp"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="4dp" + android:background="@drawable/card_bg"> + + <ImageView + android:contentDescription="@string/bench_image" android:src="@drawable/ic_bench_icon" + android:layout_width="50dp" + android:layout_height="50dp" android:id="@+id/benchPfp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"/> + <TextView + android:text="@string/bench_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/benchName" + app:layout_constraintStart_toEndOf="@id/benchPfp" app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/benchPos"/> + <TextView + android:text="@string/bench_position" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/benchPos" + app:layout_constraintTop_toBottomOf="@id/benchName" + app:layout_constraintBottom_toTopOf="@id/benchRating" + app:layout_constraintStart_toEndOf="@id/benchPfp" app:layout_constraintEnd_toEndOf="parent"/> + <RatingBar + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/benchRating" + android:isIndicator="true" + app:layout_constraintStart_toEndOf="@id/benchPfp" app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/benchPos" app:layout_constraintBottom_toBottomOf="parent"/> + </androidx.constraintlayout.widget.ConstraintLayout> +</androidx.cardview.widget.CardView> diff --git a/benchmark/app/src/main/res/layout/dialog_bench_details.xml b/benchmark/app/src/main/res/layout/dialog_bench_details.xml new file mode 100644 index 0000000..7ded3bd --- /dev/null +++ b/benchmark/app/src/main/res/layout/dialog_bench_details.xml @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + android:padding="16dp"> + + <TextView + android:id="@+id/dialogTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Bench Name" + android:textSize="18sp" + android:textStyle="bold" + android:layout_marginBottom="8dp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toTopOf="@id/dialogMessage"/> + + <TextView + android:id="@+id/dialogMessage" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Loading information..." + android:layout_marginBottom="8dp" + app:layout_constraintTop_toBottomOf="@id/dialogTitle" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toTopOf="@id/benchImageView" /> + + <ImageView + android:id="@+id/benchImageView" + android:layout_width="match_parent" + android:layout_height="200dp" + android:scaleType="centerCrop" + android:layout_marginBottom="16dp" + android:contentDescription="Bench Image" + app:layout_constraintTop_toBottomOf="@id/dialogMessage" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toTopOf="@id/btnFirstRow"/> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:id="@+id/btnFirstRow" + app:layout_constraintTop_toBottomOf="@id/benchImageView" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toTopOf="@id/btnSecondRow"> + + <Button + android:id="@+id/btnAddReview" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:text="Nouvel avis" + android:layout_marginEnd="4dp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toStartOf="@id/btnViewReviews" /> + + <Button + android:id="@+id/btnViewReviews" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Voir les avis" + android:layout_marginStart="4dp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toEndOf="@id/btnAddReview" + app:layout_constraintEnd_toEndOf="parent" /> + </androidx.constraintlayout.widget.ConstraintLayout> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_marginTop="8dp" + android:id="@+id/btnSecondRow" + app:layout_constraintTop_toBottomOf="@id/btnFirstRow" + app:layout_constraintBottom_toBottomOf="parent"> + + <Button + android:id="@+id/btnShowPath" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Itinéraire" + android:layout_marginEnd="4dp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toStartOf="@id/btnClose" /> + + <Button + android:id="@+id/btnClose" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Retour" + android:layout_marginStart="4dp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toEndOf="@id/btnShowPath" + app:layout_constraintEnd_toEndOf="parent" /> + </androidx.constraintlayout.widget.ConstraintLayout> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/layout/dialog_review.xml b/benchmark/app/src/main/res/layout/dialog_review.xml new file mode 100644 index 0000000..c43f746 --- /dev/null +++ b/benchmark/app/src/main/res/layout/dialog_review.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="16dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Note:" + android:textSize="16sp" + android:layout_marginBottom="8dp" /> + + <RatingBar + android:id="@+id/ratingBar" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:numStars="5" + android:stepSize="1.0" + android:layout_marginBottom="16dp" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Commentaire (optionnel):" + android:textSize="16sp" + android:layout_marginBottom="8dp" /> + + <EditText + android:id="@+id/commentEditText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="Entrez votre commentaire ici" + android:inputType="textMultiLine" + android:minLines="3" + android:gravity="top|start" /> + +</LinearLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/layout/dialog_reviews_list.xml b/benchmark/app/src/main/res/layout/dialog_reviews_list.xml new file mode 100644 index 0000000..20f211b --- /dev/null +++ b/benchmark/app/src/main/res/layout/dialog_reviews_list.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="16dp"> + + <TextView + android:id="@+id/reviewsTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Avis" + android:textSize="18sp" + android:textStyle="bold" + android:layout_marginBottom="8dp" /> + + <TextView + android:id="@+id/averageRatingText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Note moyenne: 0.0/5" + android:textSize="16sp" + android:layout_marginBottom="8dp" /> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/reviewsRecyclerView" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" /> + + <TextView + android:id="@+id/noReviewsText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Aucun avis pour le moment" + android:textSize="16sp" + android:textAlignment="center" + android:visibility="gone" /> + +</LinearLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/layout/item_review.xml b/benchmark/app/src/main/res/layout/item_review.xml new file mode 100644 index 0000000..71d40e1 --- /dev/null +++ b/benchmark/app/src/main/res/layout/item_review.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="8dp" + android:layout_marginBottom="8dp" + android:background="#F5F5F5"> + + <RatingBar + android:id="@+id/itemRatingBar" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:isIndicator="true" + style="?android:attr/ratingBarStyleSmall" + android:numStars="5" + android:stepSize="1.0" + android:layout_marginBottom="4dp" /> + + <TextView + android:id="@+id/itemCommentText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="14sp" /> + +</LinearLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/layout/main_layout.xml b/benchmark/app/src/main/res/layout/main_layout.xml new file mode 100644 index 0000000..a399a07 --- /dev/null +++ b/benchmark/app/src/main/res/layout/main_layout.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/root_layout" + android:gravity="bottom"> + <org.osmdroid.views.MapView android:id="@+id/map" + android:layout_width="fill_parent" + android:layout_height="fill_parent" app:layout_constraintStart_toStartOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent"> + </org.osmdroid.views.MapView> + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" + android:orientation="vertical" android:layout_alignParentEnd="true" android:layout_marginEnd="10dp" + android:layout_centerVertical="true"> + <ImageButton + android:contentDescription="@string/button_content" android:src="@drawable/plus_5345954" + android:layout_width="50dp" + android:layout_height="50dp" android:id="@+id/plusBtn" + android:layout_gravity="end|bottom"/> + <ImageButton + android:contentDescription="@string/button_content" android:src="@drawable/target" + android:layout_width="50dp" + android:layout_height="50dp" android:id="@+id/posBtn" + android:layout_gravity="end|bottom"/> + </LinearLayout> + <androidx.coordinatorlayout.widget.CoordinatorLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:id="@+id/listWrapper"> + <include layout="@layout/bottom_sheet_dialog"/> + </androidx.coordinatorlayout.widget.CoordinatorLayout> +</RelativeLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/layout/new_bench_layout.xml b/benchmark/app/src/main/res/layout/new_bench_layout.xml new file mode 100644 index 0000000..05d0f25 --- /dev/null +++ b/benchmark/app/src/main/res/layout/new_bench_layout.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" + android:layout_height="350dp" + android:layout_marginHorizontal="25dp" + android:background="@drawable/card_bg"> + + <TextView + android:text="@string/new_bench" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/title" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/editTextTextMultiLine" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> + <EditText + android:layout_width="wrap_content" + android:layout_height="200dp" + android:autofillHints="" android:inputType="textMultiLine" + android:gravity="start|top" + android:ems="10" + android:id="@+id/editTextTextMultiLine" + app:layout_constraintTop_toBottomOf="@id/title" app:layout_constraintBottom_toTopOf="@id/ratingBar" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" + tools:ignore="LabelFor"/> + <RatingBar + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/ratingBar" + app:layout_constraintTop_toBottomOf="@id/editTextTextMultiLine" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> + <Button + android:text="@string/save" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/submit" + android:layout_marginEnd="20dp" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/ratingBar" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="@id/cancel"/> + <Button + android:text="@string/cancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:id="@+id/cancel" + android:layout_marginStart="20dp" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/ratingBar" + app:layout_constraintStart_toStartOf="@id/submit" app:layout_constraintEnd_toEndOf="parent"/> +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/mipmap-anydpi/ic_launcher.xml b/benchmark/app/src/main/res/mipmap-anydpi/ic_launcher.xml new file mode 100644 index 0000000..50ec886 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-anydpi/ic_launcher.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background"/> + <foreground android:drawable="@drawable/ic_launcher_foreground"/> + <monochrome android:drawable="@drawable/ic_launcher_foreground"/> +</adaptive-icon>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml b/benchmark/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml new file mode 100644 index 0000000..50ec886 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background"/> + <foreground android:drawable="@drawable/ic_launcher_foreground"/> + <monochrome android:drawable="@drawable/ic_launcher_foreground"/> +</adaptive-icon>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/benchmark/app/src/main/res/mipmap-hdpi/ic_launcher.webp Binary files differnew file mode 100644 index 0000000..c209e78 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-hdpi/ic_launcher.webp diff --git a/benchmark/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/benchmark/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp Binary files differnew file mode 100644 index 0000000..b2dfe3d --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp diff --git a/benchmark/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/benchmark/app/src/main/res/mipmap-mdpi/ic_launcher.webp Binary files differnew file mode 100644 index 0000000..4f0f1d6 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-mdpi/ic_launcher.webp diff --git a/benchmark/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/benchmark/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp Binary files differnew file mode 100644 index 0000000..62b611d --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp diff --git a/benchmark/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/benchmark/app/src/main/res/mipmap-xhdpi/ic_launcher.webp Binary files differnew file mode 100644 index 0000000..948a307 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-xhdpi/ic_launcher.webp diff --git a/benchmark/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/benchmark/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp Binary files differnew file mode 100644 index 0000000..1b9a695 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp diff --git a/benchmark/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/benchmark/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp Binary files differnew file mode 100644 index 0000000..28d4b77 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp diff --git a/benchmark/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/benchmark/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp Binary files differnew file mode 100644 index 0000000..9287f50 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp diff --git a/benchmark/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/benchmark/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp Binary files differnew file mode 100644 index 0000000..aa7d642 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp diff --git a/benchmark/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/benchmark/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp Binary files differnew file mode 100644 index 0000000..9126ae3 --- /dev/null +++ b/benchmark/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp diff --git a/benchmark/app/src/main/res/values/colors.xml b/benchmark/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..6482580 --- /dev/null +++ b/benchmark/app/src/main/res/values/colors.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="purple_200">#FFBB86FC</color> + <color name="purple_500">#FF6200EE</color> + <color name="purple_700">#FF3700B3</color> + <color name="teal_200">#FF03DAC5</color> + <color name="teal_700">#FF018786</color> + <color name="black">#FF000000</color> + <color name="white">#FFFFFFFF</color> + <color name="salmon">#FF8C69</color> + <color name="grass">#81c9b5</color> + <color name="lagoon">#90d8c4</color> +</resources>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/values/strings.xml b/benchmark/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..f5059a1 --- /dev/null +++ b/benchmark/app/src/main/res/values/strings.xml @@ -0,0 +1,18 @@ +<resources> + <string name="app_name">BenchMark</string> + <string name="bench1">Banc n°1</string> + <string name="bench2">Banc n°2</string> + <string name="bench3">Banc n°3</string> + <string name="divider_text">Haut !</string> + <string name="bench_image">Bench image</string> + <string name="new_bench">Nouveau banc</string> + <string name="save">Enregistrer</string> + <string name="cancel">Annuler</string> + <string name="devs">Martial Simon - Ethan Lefevre</string> + <string name="quote">\'Tite bière ?</string> + <string name="bench_name">Nom du Banc</string> + <string name="bench_position">Position du banc</string> + <string name="addPosText">+</string> + <string name="getPosText">0</string> + <string name="button_content">Un bouton pour les gouverner tous</string> +</resources>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/values/themes.xml b/benchmark/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..076cab1 --- /dev/null +++ b/benchmark/app/src/main/res/values/themes.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <style name="Theme.Benchmark" + parent="android:Theme.Material.Light.NoActionBar"> + <item name="android:fontFamily">@font/nokia_font</item> + </style> + <style name="Theme.AppSplash" parent="Theme.SplashScreen"> + <item name="windowSplashScreenBackground">@color/grass</item> + <item name="windowSplashScreenAnimatedIcon">@drawable/ic_bench_icon</item> + <item name="postSplashScreenTheme">@style/Theme.Benchmark</item> + </style> +</resources>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/xml/backup_rules.xml b/benchmark/app/src/main/res/xml/backup_rules.xml new file mode 100644 index 0000000..120dbfe --- /dev/null +++ b/benchmark/app/src/main/res/xml/backup_rules.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Sample backup rules file; uncomment and customize as necessary. + See https://developer.android.com/guide/topics/data/autobackup + for details. + Note: This file is ignored for devices older than API 31 + See https://developer.android.com/about/versions/12/backup-restore +--> +<full-backup-content> + <!-- + <include domain="sharedpref" path="."/> + <exclude domain="sharedpref" path="device.xml"/> +--> +</full-backup-content>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/xml/data_extraction_rules.xml b/benchmark/app/src/main/res/xml/data_extraction_rules.xml new file mode 100644 index 0000000..a73ffe1 --- /dev/null +++ b/benchmark/app/src/main/res/xml/data_extraction_rules.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Sample data extraction rules file; uncomment and customize as necessary. + See https://developer.android.com/about/versions/12/backup-restore#xml-changes + for details. +--> +<data-extraction-rules> + <cloud-backup> + <!-- TODO: Use <include> and <exclude> to control what is backed up. + <include .../> + <exclude .../> + --> + </cloud-backup> + <!-- + <device-transfer> + <include .../> + <exclude .../> + </device-transfer> + --> +</data-extraction-rules>
\ No newline at end of file diff --git a/benchmark/app/src/main/res/xml/network_security_config.xml b/benchmark/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000..fe6acf6 --- /dev/null +++ b/benchmark/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<network-security-config> + <domain-config cleartextTrafficPermitted="true"> + <domain includeSubdomains="true">89.168.39.144</domain> + <domain includeSubdomains="true">la-banquise.fr</domain> + </domain-config> +</network-security-config>
\ No newline at end of file |
