Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 869) sorted by relevance

12345678910>>...35

/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/
DChatViewModel.kt46 chatId.value?.let { id -> in <lambda>() method
48 repository.activateChat(id) in <lambda>()
50 repository.deactivateChat(id) in <lambda>()
58 val contact: LiveData<Contact?> = Transformations.switchMap(chatId) { id -> in <lambda>() method
59 repository.findContact(id) in <lambda>()
65 val messages: LiveData<List<Message>> = Transformations.switchMap(chatId) { id -> in <lambda>() method
66 repository.findMessages(id) in <lambda>()
79 fun setChatId(id: Long) { in <lambda>()
80 chatId.value = id in <lambda>()
82 repository.activateChat(id) in <lambda>()
[all …]
/developers/build/templates/CardStream/_MODULE_/src/template/res/layout/
Dcard.xml.ftl2 android:id="@+id/card_layout"
9 android:id="@+id/card_actionarea"
12 android:layout_below="@+id/card_contentarea"
23 android:id="@id/card_contentarea"
30 android:id="@+id/card_title"
36 android:id="@+id/card_content"
40 android:layout_below="@id/card_title"/>
45 android:id="@+id/card_overlay"
48 android:layout_alignBottom="@id/card_contentarea"
49 android:layout_alignLeft="@id/card_contentarea"
[all …]
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DChatRepository.kt27 fun findContact(id: Long): LiveData<Contact?> in <lambda>()
28 fun findMessages(id: Long): LiveData<List<Message>> in <lambda>()
29 fun sendMessage(id: Long, text: String) in <lambda>()
30 fun activateChat(id: Long) in <lambda>()
31 fun deactivateChat(id: Long) in <lambda>()
32 fun showAsBubble(id: Long) in <lambda>()
59 contact.id to Chat(contact) in contact()
74 override fun findContact(id: Long): LiveData<Contact?> { in findContact()
76 postValue(Contact.CONTACTS.find { it.id == id }) in findContact()
81 override fun findMessages(id: Long): LiveData<List<Message>> { in findMessages()
[all …]
/developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
DSimpleGeofenceStore.java54 public SimpleGeofence getGeofence(String id) { in getGeofence() argument
57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), in getGeofence()
59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), in getGeofence()
61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), in getGeofence()
64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION), in getGeofence()
66 int transitionType = mPrefs.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE), in getGeofence()
74 return new SimpleGeofence(id, lat, lng, radius, expirationDuration, transitionType); in getGeofence()
84 public void setGeofence(String id, SimpleGeofence geofence) { in setGeofence() argument
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude()); in setGeofence()
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude()); in setGeofence()
[all …]
/developers/samples/android/deprecated/wearable/wear/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
DSimpleGeofenceStore.java54 public SimpleGeofence getGeofence(String id) { in getGeofence() argument
57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), in getGeofence()
59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), in getGeofence()
61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), in getGeofence()
64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION), in getGeofence()
66 int transitionType = mPrefs.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE), in getGeofence()
74 return new SimpleGeofence(id, lat, lng, radius, expirationDuration, transitionType); in getGeofence()
84 public void setGeofence(String id, SimpleGeofence geofence) { in setGeofence() argument
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude()); in setGeofence()
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude()); in setGeofence()
[all …]
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/data/
DTestChatRepository.kt38 override fun findContact(id: Long): LiveData<Contact?> { in <lambda>()
40 value = Contact.CONTACTS.find { it.id == id } in <lambda>()
44 override fun findMessages(id: Long): LiveData<List<Message>> { in <lambda>()
45 val chat = chats.getValue(id) in <lambda>()
63 override fun sendMessage(id: Long, text: String) { in <lambda>()
64 val chat = chats.getValue(id) in <lambda>()
73 override fun activateChat(id: Long) { in <lambda>()
74 activatedId = id in <lambda>()
77 override fun deactivateChat(id: Long) { in <lambda>()
81 override fun showAsBubble(id: Long) { in <lambda>()
[all …]
/developers/build/prebuilts/gradle/NotificationChannels/Application/src/main/java/com/example/android/notificationchannels/
DMainActivity.java59 ui = new MainUi(findViewById(R.id.activity_main)); in onCreate()
68 public void sendNotification(int id, String title) { in sendNotification() argument
70 switch (id) { in sendNotification()
88 noti.notify(id, nb); in sendNotification()
122 titlePrimary = (TextView) root.findViewById(R.id.main_primary_title); in MainUi()
123 ((Button) root.findViewById(R.id.main_primary_send1)).setOnClickListener(this); in MainUi()
124 ((Button) root.findViewById(R.id.main_primary_send2)).setOnClickListener(this); in MainUi()
125 ((ImageButton) root.findViewById(R.id.main_primary_config)).setOnClickListener(this); in MainUi()
127 titleSecondary = (TextView) root.findViewById(R.id.main_secondary_title); in MainUi()
128 ((Button) root.findViewById(R.id.main_secondary_send1)).setOnClickListener(this); in MainUi()
[all …]
/developers/samples/android/notification/NotificationChannels/Application/src/main/java/com/example/android/notificationchannels/
DMainActivity.java59 ui = new MainUi(findViewById(R.id.activity_main)); in onCreate()
68 public void sendNotification(int id, String title) { in sendNotification() argument
70 switch (id) { in sendNotification()
88 noti.notify(id, nb); in sendNotification()
122 titlePrimary = (TextView) root.findViewById(R.id.main_primary_title); in MainUi()
123 ((Button) root.findViewById(R.id.main_primary_send1)).setOnClickListener(this); in MainUi()
124 ((Button) root.findViewById(R.id.main_primary_send2)).setOnClickListener(this); in MainUi()
125 ((ImageButton) root.findViewById(R.id.main_primary_config)).setOnClickListener(this); in MainUi()
127 titleSecondary = (TextView) root.findViewById(R.id.main_secondary_title); in MainUi()
128 ((Button) root.findViewById(R.id.main_secondary_send1)).setOnClickListener(this); in MainUi()
[all …]
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/
DMessage.java23 private String id; field in Message
38 id = builder.id; in Message()
44 return id; in getId()
47 public void setId(String id) { in setId() argument
48 this.id = id; in setId()
77 private String id; field in Message.Builder
83 public Builder id(String val) { in id() method in Message.Builder
84 id = val; in id()
123 if (id != null ? !id.equals(message.id) : message.id != null) { in equals()
142 int result = id != null ? id.hashCode() : 0; in hashCode()
DProfile.java26 private String id; field in Profile
36 this.id = account.getId(); in Profile()
44 public Profile(String id, String name, String imageUri) { in Profile() argument
45 this.id = id; in Profile()
52 setId(builder.id); in Profile()
60 return id; in getId()
63 public void setId(String id) { in setId() argument
64 this.id = id; in setId()
134 if (!id.equals(profile.id)) { in equals()
158 int result = id.hashCode(); in hashCode()
[all …]
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/
DMessage.java23 private String id; field in Message
38 id = builder.id; in Message()
44 return id; in getId()
47 public void setId(String id) { in setId() argument
48 this.id = id; in setId()
77 private String id; field in Message.Builder
83 public Builder id(String val) { in id() method in Message.Builder
84 id = val; in id()
123 if (id != null ? !id.equals(message.id) : message.id != null) { in equals()
142 int result = id != null ? id.hashCode() : 0; in hashCode()
DProfile.java26 private String id; field in Profile
36 this.id = account.getId(); in Profile()
44 public Profile(String id, String name, String imageUri) { in Profile() argument
45 this.id = id; in Profile()
52 setId(builder.id); in Profile()
60 return id; in getId()
63 public void setId(String id) { in setId() argument
64 this.id = id; in setId()
134 if (!id.equals(profile.id)) { in equals()
158 int result = id.hashCode(); in hashCode()
[all …]
/developers/build/prebuilts/gradle/NotificationChannels/kotlinApp/Application/src/main/java/com/example/android/notificationchannels/
DMainActivity.kt54 fun sendNotification(id: Int, title: String) { in sendNotification()
55 when (id) { in sendNotification()
57 id, helper.getNotification1(title, getString(R.string.primary1_body))) in sendNotification()
59 id, helper.getNotification1(title, getString(R.string.primary2_body))) in sendNotification()
61 id, helper.getNotification2(title, getString(R.string.secondary1_body))) in sendNotification()
63 id, helper.getNotification2(title, getString(R.string.secondary2_body))) in sendNotification()
103 (root.findViewById<View>(R.id.btnA) as Button).setOnClickListener(this)
123 when (view.id) { in onClick()
124 R.id.main_primary_send1 -> sendNotification(NOTI_PRIMARY1, titlePrimaryText) in onClick()
125 R.id.main_primary_send2 -> sendNotification(NOTI_PRIMARY2, titlePrimaryText) in onClick()
[all …]
/developers/samples/android/notification/NotificationChannels/kotlinApp/Application/src/main/java/com/example/android/notificationchannels/
DMainActivity.kt54 fun sendNotification(id: Int, title: String) { in sendNotification()
55 when (id) { in sendNotification()
57 id, helper.getNotification1(title, getString(R.string.primary1_body))) in sendNotification()
59 id, helper.getNotification1(title, getString(R.string.primary2_body))) in sendNotification()
61 id, helper.getNotification2(title, getString(R.string.secondary1_body))) in sendNotification()
63 id, helper.getNotification2(title, getString(R.string.secondary2_body))) in sendNotification()
103 (root.findViewById<View>(R.id.btnA) as Button).setOnClickListener(this)
123 when (view.id) { in onClick()
124 R.id.main_primary_send1 -> sendNotification(NOTI_PRIMARY1, titlePrimaryText) in onClick()
125 R.id.main_primary_send2 -> sendNotification(NOTI_PRIMARY2, titlePrimaryText) in onClick()
[all …]
/developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
DMediaEffectsFragment.java69 mEffectView = (GLSurfaceView) view.findViewById(R.id.effectsview); in onViewCreated()
76 setCurrentEffect(R.id.none); in onViewCreated()
118 if (mCurrentEffect != R.id.none) { in onDrawFrame()
156 case R.id.none: in initEffect()
159 case R.id.autofix: in initEffect()
164 case R.id.bw: in initEffect()
170 case R.id.brightness: in initEffect()
175 case R.id.contrast: in initEffect()
180 case R.id.crossprocess: in initEffect()
184 case R.id.documentary: in initEffect()
[all …]
/developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
DMediaEffectsFragment.java69 mEffectView = (GLSurfaceView) view.findViewById(R.id.effectsview); in onViewCreated()
76 setCurrentEffect(R.id.none); in onViewCreated()
118 if (mCurrentEffect != R.id.none) { in onDrawFrame()
156 case R.id.none: in initEffect()
159 case R.id.autofix: in initEffect()
164 case R.id.bw: in initEffect()
170 case R.id.brightness: in initEffect()
175 case R.id.contrast: in initEffect()
180 case R.id.crossprocess: in initEffect()
184 case R.id.documentary: in initEffect()
[all …]
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java79 mEditPackageName = (EditText) view.findViewById(R.id.package_name); in onViewCreated()
80 mEditClassName = (EditText) view.findViewById(R.id.class_name); in onViewCreated()
81 mEditLocale = (EditText) view.findViewById(R.id.locale); in onViewCreated()
82 mEditTimezone = (EditText) view.findViewById(R.id.timezone); in onViewCreated()
83 mEditWifiSsid = (EditText) view.findViewById(R.id.wifi_ssid); in onViewCreated()
84 mEditWifiSecurityType = (EditText) view.findViewById(R.id.wifi_security_type); in onViewCreated()
85 mEditWifiPassword = (EditText) view.findViewById(R.id.wifi_password); in onViewCreated()
87 mEditPackageName.addTextChangedListener(new TextWatcherWrapper(R.id.package_name, this)); in onViewCreated()
88 mEditClassName.addTextChangedListener(new TextWatcherWrapper(R.id.class_name, this)); in onViewCreated()
89 mEditLocale.addTextChangedListener(new TextWatcherWrapper(R.id.locale, this)); in onViewCreated()
[all …]
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DNfcProvisioningFragment.java79 mEditPackageName = (EditText) view.findViewById(R.id.package_name); in onViewCreated()
80 mEditClassName = (EditText) view.findViewById(R.id.class_name); in onViewCreated()
81 mEditLocale = (EditText) view.findViewById(R.id.locale); in onViewCreated()
82 mEditTimezone = (EditText) view.findViewById(R.id.timezone); in onViewCreated()
83 mEditWifiSsid = (EditText) view.findViewById(R.id.wifi_ssid); in onViewCreated()
84 mEditWifiSecurityType = (EditText) view.findViewById(R.id.wifi_security_type); in onViewCreated()
85 mEditWifiPassword = (EditText) view.findViewById(R.id.wifi_password); in onViewCreated()
87 mEditPackageName.addTextChangedListener(new TextWatcherWrapper(R.id.package_name, this)); in onViewCreated()
88 mEditClassName.addTextChangedListener(new TextWatcherWrapper(R.id.class_name, this)); in onViewCreated()
89 mEditLocale.addTextChangedListener(new TextWatcherWrapper(R.id.locale, this)); in onViewCreated()
[all …]
/developers/samples/android/ui/window/MultiWindowPlayground/Application/src/androidTest/java/
DLaunchTests.java47 onView(withId(R.id.button_start_basic)).perform(scrollTo(), click()); in testLaunchBasicActivity()
50 onView(withId(R.id.description)) in testLaunchBasicActivity()
57 onView(withId(R.id.start_unresizable)).perform(scrollTo(), click()); in testLaunchUnresizableActivity()
60 onView(withId(R.id.description)) in testLaunchUnresizableActivity()
68 onView(withId(R.id.start_adjacent)).perform(scrollTo(), click()); in testLaunchAdjacentActivity()
71 onView(withId(R.id.description)) in testLaunchAdjacentActivity()
78 onView(withId(R.id.start_customconfiguration)).perform(scrollTo(), click()); in testLaunchCustomConfigurationActivity()
81 onView(withId(R.id.description)) in testLaunchCustomConfigurationActivity()
89 onView(withId(R.id.start_minimumsize)).perform(scrollTo(), click()); in testLaunchMinimumSizeActivity()
92 onView(withId(R.id.description)) in testLaunchMinimumSizeActivity()
[all …]
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/
DMainActivity.kt52 setSupportActionBar(findViewById(R.id.toolbar)) in onCreate()
54 appBar = findViewById(R.id.app_bar) in onCreate()
55 name = findViewById(R.id.name) in onCreate()
56 icon = findViewById(R.id.icon) in onCreate()
59 replace(R.id.container, MainFragment()) in onCreate()
74 val id = intent.data.lastPathSegment.toLongOrNull() in handleIntent() constant
75 if (id != null) { in handleIntent()
76 openChat(id) in handleIntent()
100 override fun openChat(id: Long) { in openChat()
104 replace(R.id.container, ChatFragment.newInstance(id, true)) in openChat()
[all …]
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/
DSettingsActivity.java92 setupSettingsSwitch(R.id.settings_auth_responses_container, in onCreate()
93 R.id.settings_auth_responses_label, in onCreate()
94 R.id.settings_auth_responses_switch, in onCreate()
97 setupSettingsSwitch(R.id.settings_auth_datasets_container, in onCreate()
98 R.id.settings_auth_datasets_label, in onCreate()
99 R.id.settings_auth_datasets_switch, in onCreate()
102 setupSettingsButton(R.id.settings_add_data_container, in onCreate()
103 R.id.settings_add_data_label, in onCreate()
104 R.id.settings_add_data_icon, in onCreate()
106 setupSettingsButton(R.id.settings_clear_data_container, in onCreate()
[all …]
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/
DSettingsActivity.java92 setupSettingsSwitch(R.id.settings_auth_responses_container, in onCreate()
93 R.id.settings_auth_responses_label, in onCreate()
94 R.id.settings_auth_responses_switch, in onCreate()
97 setupSettingsSwitch(R.id.settings_auth_datasets_container, in onCreate()
98 R.id.settings_auth_datasets_label, in onCreate()
99 R.id.settings_auth_datasets_switch, in onCreate()
102 setupSettingsButton(R.id.settings_add_data_container, in onCreate()
103 R.id.settings_add_data_label, in onCreate()
104 R.id.settings_add_data_icon, in onCreate()
106 setupSettingsButton(R.id.settings_clear_data_container, in onCreate()
[all …]
/developers/build/prebuilts/gradle/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DMainActivity.kt60 anyConnectivityRadioButton = findViewById(R.id.checkbox_any) in onCreate()
61 deadlineEditText = findViewById(R.id.deadline_time) in onCreate()
62 delayEditText = findViewById(R.id.delay_time) in onCreate()
63 durationTimeEditText = findViewById(R.id.duration_time) in onCreate()
64 requiresChargingCheckBox = findViewById(R.id.checkbox_charging) in onCreate()
65 requiresIdleCheckbox = findViewById(R.id.checkbox_idle) in onCreate()
66 wiFiConnectivityRadioButton = findViewById(R.id.checkbox_unmetered) in onCreate()
71 findViewById<Button>(R.id.cancel_button).setOnClickListener { cancelAllJobs() } in onCreate()
72 findViewById<Button>(R.id.finished_button).setOnClickListener { finishJob() } in onCreate()
73 findViewById<Button>(R.id.schedule_button).setOnClickListener { scheduleJob() } in onCreate()
[all …]
/developers/samples/android/background/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DMainActivity.kt60 anyConnectivityRadioButton = findViewById(R.id.checkbox_any) in onCreate()
61 deadlineEditText = findViewById(R.id.deadline_time) in onCreate()
62 delayEditText = findViewById(R.id.delay_time) in onCreate()
63 durationTimeEditText = findViewById(R.id.duration_time) in onCreate()
64 requiresChargingCheckBox = findViewById(R.id.checkbox_charging) in onCreate()
65 requiresIdleCheckbox = findViewById(R.id.checkbox_idle) in onCreate()
66 wiFiConnectivityRadioButton = findViewById(R.id.checkbox_unmetered) in onCreate()
71 findViewById<Button>(R.id.cancel_button).setOnClickListener { cancelAllJobs() } in onCreate()
72 findViewById<Button>(R.id.finished_button).setOnClickListener { finishJob() } in onCreate()
73 findViewById<Button>(R.id.schedule_button).setOnClickListener { scheduleJob() } in onCreate()
[all …]
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/androidTest/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicTest.java47 .findFragmentById(R.id.container); in integration()
50 onView(withId(R.id.image)).check(matches(isDisplayed())); in integration()
51 onView(withId(R.id.previous)).check(matches(allOf(isDisplayed(), not(isEnabled())))); in integration()
52 onView(withId(R.id.next)).check(matches(allOf(isDisplayed(), isEnabled()))); in integration()
54 onView(withId(R.id.next)).perform(click()); in integration()
56 onView(withId(R.id.previous)).check(matches(allOf(isDisplayed(), isEnabled()))); in integration()
57 onView(withId(R.id.next)).check(matches(allOf(isDisplayed(), isEnabled()))); in integration()
59 onView(withId(R.id.next)).perform(click()); in integration()
62 onView(withId(R.id.previous)).check(matches(allOf(isDisplayed(), isEnabled()))); in integration()
63 onView(withId(R.id.next)).check(matches(allOf(isDisplayed(), not(isEnabled())))); in integration()

12345678910>>...35