Implement custom glide loader for thumbnails in photo picker

By default, glide calls into CloudMediaProvider#openTypedAssetFileDescriptor without Bundle
params which internally calls CloudMediaProvider#onOpenFile and that
results in download of entire file even during thumbnail loading. Hence
we need a custom glide model loader which passes Bundle params into
CloudMediaProvider#openTypedAssetFileDescriptor so that
CloudMediaProvider#onOpenThumbnail gets called, which downloads just the
thumbnail instead of the original media file.

Test: Manually tested photo picker with and without cloud media
provider, m
Bug: 195008673
Change-Id: I9d2cc28b0be96d03f193e3d16d467b1b238a9764
Merged-In: I9d2cc28b0be96d03f193e3d16d467b1b238a9764

Change-Id: I4daf03296e16bb907b97bf180983dd045a860a50
Merged-In: I4daf03296e16bb907b97bf180983dd045a860a50
(cherry picked from commit a95ab738f8fd2ab1420d1b2ae7551d9b7b1cff9a)
diff --git a/proguard.flags b/proguard.flags
index 862b47f..b1d1903 100644
--- a/proguard.flags
+++ b/proguard.flags
@@ -1 +1,12 @@
 -keep class com.android.providers.media.** { *; }
+-keep public class * implements com.bumptech.glide.module.GlideModule
+-keep class * extends com.bumptech.glide.module.AppGlideModule {
+ <init>(...);
+}
+-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
+  **[] $VALUES;
+  public *;
+}
+-keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
+  *** rewind();
+}