/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/model/ |
D | MockDatabase.java | 42 public static Subscription getTvShowSubscription(Context context) { in getTvShowSubscription() 57 public static Subscription getVideoSubscription(Context context) { in getVideoSubscription() 72 public static Subscription getCatVideosSubscription(Context context) { in getCatVideosSubscription() 82 Context context, in findOrCreateSubscription() 102 private static Subscription findSubscriptionByTitle(Context context, String title) { in findSubscriptionByTitle() 117 public static void saveSubscriptions(Context context, List<Subscription> subscriptions) { in saveSubscriptions() 128 public static void saveSubscription(Context context, Subscription subscription) { in saveSubscription() 156 public static List<Subscription> getSubscriptions(Context context) { in getSubscriptions() 168 public static Subscription findSubscriptionByChannelId(Context context, long channelId) { in findSubscriptionByChannelId() 185 public static Subscription findSubscriptionByName(Context context, String name) { in findSubscriptionByName() [all …]
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SharedPreferencesHelper.java | 52 public static Profile readUserFromJsonPref(Context context) { in readUserFromJsonPref() 72 public static void writeUserToJsonPref(Context context, Profile user) { in writeUserToJsonPref() 85 public static List<Profile> readContactsFromJsonPref(Context context) { in readContactsFromJsonPref() 102 public static void writeContactsToJsonPref(Context context, List<Profile> contacts) { in writeContactsToJsonPref() 113 public static List<Chat> readChatsFromJsonPref(Context context) throws IOException { in readChatsFromJsonPref() 128 public static void writeChatsToJsonPref(Context context, List<Chat> chats) { in writeChatsToJsonPref() 140 public static List<Message> readMessagesForChat(Context context, String chatId) { in readMessagesForChat() 157 Context context, Chat chat, List<Message> messages) { in writeMessagesForChatToJsonPref() 173 private static <T> List<T> getList(Context context, Class<T> clazz, String key) in getList() 198 private static <T> void setList(Context context, List<T> list, String key) { in setList()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 63 public static Chat createChat(Context context, Collection<Profile> participants, Profile user) { in createChat() 97 private static void persistsChats(Context context, Collection<Chat> chats) { in persistsChats() 118 public static Collection<Chat> getAllChats(Context context) { in getAllChats() 134 public static Chat findChatById(Context context, String id) { in findChatById() 144 private static void updateLastMessage(Context context, Chat chat, Message lastMessage) { in updateLastMessage() 184 public static Message saveMessage(Context context, Chat chat, Message message) { in saveMessage() 205 public static Collection<Message> getAllMessagesForChat(Context context, String chatId) { in getAllMessagesForChat() 217 public static Message findMessageById(Context context, String chatId, String messageId) { in findMessageById() 232 public static List<Profile> getUserContacts(Context context) { in getUserContacts() 251 public static void getUser(Context context, String id, RetrieveUserCallback callback) { in getUser() [all …]
|
/developers/samples/android/deprecated/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
D | NotificationPresets.java | 53 private static Notification.Builder buildBasicNotification(Context context) { in buildBasicNotification() 69 public Notification buildNotification(Context context) { in buildNotification() 115 public Notification buildNotification(Context context) { in buildNotification() 172 public Notification buildNotification(Context context) { in buildNotification() 191 public Notification buildNotification(Context context) { in buildNotification() 229 private Notification createPageForCustomHeight(Context context, int heightDisplayDp, in createPageForCustomHeight() 245 private Notification createPageForSizePreset(Context context, int sizePreset, in createPageForSizePreset() 267 public Notification buildNotification(Context context) { in buildNotification() 286 public Notification buildNotification(Context context) { in buildNotification()
|
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/util/ |
D | SharedPreferencesHelper.java | 60 public static List<Subscription> readSubscriptions(Context context) { in readSubscriptions() 70 public static void storeSubscriptions(Context context, List<Subscription> subscriptions) { in storeSubscriptions() 81 public static List<Movie> readMovies(Context context, long channelId) { in readMovies() 92 public static void storeMovies(Context context, long channelId, List<Movie> movies) { in storeMovies() 107 private static <T> List<T> getList(Context context, Class<T> clazz, String key) { in getList() 135 private static <T> void setList(Context context, List<T> list, String key) { in setList()
|
D | TvUtil.java | 63 public static long createChannel(Context context, Subscription subscription) { in createChannel() 114 public static int getNumberOfChannels(Context context) { in getNumberOfChannels() 135 public static Bitmap convertToBitmap(Context context, int resourceId) { in convertToBitmap() 157 public static void scheduleSyncingChannel(Context context) { in scheduleSyncingChannel() 176 public static void scheduleSyncingProgramsForChannel(Context context, long channelId) { in scheduleSyncingProgramsForChannel()
|
/developers/samples/android/deprecated/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
D | NotificationPresets.java | 70 private static NotificationCompat.Builder applyBasicOptions(Context context, in applyBasicOptions() 104 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 121 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 182 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 207 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 232 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 255 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 281 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 314 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() 354 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() [all …]
|
D | ActionsPresets.java | 45 public void apply(Context context, NotificationCompat.Builder builder, in apply() 56 public void apply(Context context, NotificationCompat.Builder builder, in apply() 72 public void apply(Context context, NotificationCompat.Builder builder, in apply() 88 public void apply(Context context, NotificationCompat.Builder builder, in apply() 110 public void apply(Context context, NotificationCompat.Builder builder, in apply() 134 public void apply(Context context, NotificationCompat.Builder builder, in apply()
|
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
D | MessageLogger.java | 39 public static void logMessage(Context context, String message) { in logMessage() 47 public static SharedPreferences getPrefs(Context context) { in getPrefs() 51 public static String getAllMessages(Context context) { in getAllMessages() 55 public static void clear(Context context) { in clear()
|
/developers/samples/android/ui/activityscenetransition/ActivitySceneTransitionBasic/Application/src/main/java/com/example/android/activityscenetransitionbasic/ |
D | SquareFrameLayout.java | 28 public SquareFrameLayout(Context context) { in SquareFrameLayout() 32 public SquareFrameLayout(Context context, AttributeSet attrs) { in SquareFrameLayout() 36 public SquareFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { in SquareFrameLayout() 40 public SquareFrameLayout(Context context, AttributeSet attrs, in SquareFrameLayout()
|
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/ |
D | CustomVirtualView.java | 48 public CustomVirtualView(Context context) { in CustomVirtualView() 52 public CustomVirtualView(Context context, AttributeSet attrs) { in CustomVirtualView() 56 public CustomVirtualView(Context context, AttributeSet attrs, int defStyleAttr) { in CustomVirtualView() 60 public CustomVirtualView(Context context, AttributeSet attrs, int defStyleAttr, in CustomVirtualView() 68 Context context = getContext(); in autofill() local
|
D | CustomVirtualViewCompatMode.java | 44 public CustomVirtualViewCompatMode(Context context) { in CustomVirtualViewCompatMode() 48 public CustomVirtualViewCompatMode(Context context, AttributeSet attrs) { in CustomVirtualViewCompatMode() 52 public CustomVirtualViewCompatMode(Context context, AttributeSet attrs, int defStyleAttr) { in CustomVirtualViewCompatMode() 56 public CustomVirtualViewCompatMode(Context context, AttributeSet attrs, int defStyleAttr, in CustomVirtualViewCompatMode()
|
D | CreditCardExpirationDateCompoundView.java | 51 public CreditCardExpirationDateCompoundView(@NonNull Context context) { in CreditCardExpirationDateCompoundView() 55 public CreditCardExpirationDateCompoundView(@NonNull Context context, in CreditCardExpirationDateCompoundView() 60 public CreditCardExpirationDateCompoundView(@NonNull Context context, in CreditCardExpirationDateCompoundView() 65 public CreditCardExpirationDateCompoundView(@NonNull final Context context, in CreditCardExpirationDateCompoundView()
|
D | ScrollableCustomVirtualView.java | 35 public ScrollableCustomVirtualView(Context context) { in ScrollableCustomVirtualView() 39 public ScrollableCustomVirtualView(Context context, AttributeSet attrs) { in ScrollableCustomVirtualView() 44 public ScrollableCustomVirtualView(Context context, @Nullable AttributeSet attrs, in ScrollableCustomVirtualView() 49 public ScrollableCustomVirtualView(Context context, @Nullable AttributeSet attrs, in ScrollableCustomVirtualView()
|
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/ |
D | MockDatabase.java | 38 public static MessagingStyleCommsAppData getMessagingStyleData(Context context) { in getMessagingStyleData() 60 public static MessagingStyleCommsAppData getInstance(Context context) { in getInstance() 67 private static synchronized MessagingStyleCommsAppData getSync(Context context) { in getSync() 75 private MessagingStyleCommsAppData(Context context) { in MessagingStyleCommsAppData() 255 public static Uri resourceToUri(Context context, int resId) { in resourceToUri()
|
/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/ |
D | DragFrameLayout.java | 46 public DragFrameLayout(Context context) { in DragFrameLayout() 50 public DragFrameLayout(Context context, AttributeSet attrs) { in DragFrameLayout() 54 public DragFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { in DragFrameLayout() 58 public DragFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in DragFrameLayout()
|
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
D | Utils.java | 36 public final static void vibrate(Context context, int duration) { in vibrate() 48 public static void saveCounterToPreference(Context context, int value) { in saveCounterToPreference() 62 public static int getCounterFromPreference(Context context) { in getCounterFromPreference()
|
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/widget/ |
D | InfoButton.java | 28 public InfoButton(Context context) { in InfoButton() 32 public InfoButton(Context context, AttributeSet attrs) { in InfoButton() 36 public InfoButton(Context context, AttributeSet attrs, int defStyleAttr) { in InfoButton()
|
D | NavigationItem.java | 42 public NavigationItem(Context context) { in NavigationItem() 46 public NavigationItem(Context context, AttributeSet attrs) { in NavigationItem() 50 public NavigationItem(Context context, AttributeSet attrs, int defStyleAttr) { in NavigationItem() 54 public NavigationItem(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, in NavigationItem()
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/ |
D | Utils.java | 64 public static boolean checkFineLocationPermission(Context context) { in checkFineLocationPermission() 94 public static void storeLocation(Context context, LatLng location) { in storeLocation() 105 public static LatLng getLocation(Context context) { in getLocation() 124 public static void storeGeofenceEnabled(Context context, boolean enable) { in storeGeofenceEnabled() 134 public static boolean getGeofenceEnabled(Context context) { in getGeofenceEnabled()
|
/developers/samples/android/views/EmojiCompat/app/src/main/java/com/example/android/emojicompat/ |
D | CustomTextView.java | 37 public CustomTextView(Context context) { in CustomTextView() 41 public CustomTextView(Context context, @Nullable AttributeSet attrs) { in CustomTextView() 45 public CustomTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in CustomTextView()
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/service/contentcatalogs/ |
D | MusicLibrary.java | 42 public static void createAllMedia(Context context) { in createAllMedia() 86 public static Bitmap getAlbumBitmap(Context context, String mediaId) { in getAlbumBitmap() 101 public static MediaMetadataCompat getMetadata(Context context, String mediaId) { in getMetadata() 126 Context context, in createMediaMetadataCompat()
|
/developers/samples/android/deprecated/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
D | AssetUtils.java | 33 public static byte[] loadAsset(Context context, String asset) { in loadAsset() 47 public static JSONObject loadJSONAsset(Context context, String asset) { in loadJSONAsset() 58 public static Bitmap loadBitmapAsset(Context context, String asset) { in loadBitmapAsset()
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
D | AttractionsRecyclerView.java | 40 public AttractionsRecyclerView(Context context) { in AttractionsRecyclerView() 44 public AttractionsRecyclerView(Context context, AttributeSet attrs) { in AttractionsRecyclerView() 48 public AttractionsRecyclerView(Context context, AttributeSet attrs, int defStyle) { in AttractionsRecyclerView()
|
/developers/samples/android/ui/views/FloatingActionButton/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/ |
D | FloatingActionButton.java | 63 public FloatingActionButton(Context context) { in FloatingActionButton() 67 public FloatingActionButton(Context context, AttributeSet attrs) { in FloatingActionButton() 71 public FloatingActionButton(Context context, AttributeSet attrs, int defStyleAttr) { in FloatingActionButton() 75 public FloatingActionButton(Context context, AttributeSet attrs, int defStyleAttr, in FloatingActionButton()
|