OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:displayMetrics
(Results
1 - 8
of
8
) sorted by null
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowResources.java
12
import android.util.
DisplayMetrics
;
37
private
DisplayMetrics
displayMetrics
;
133
displayMetrics
= null;
137
public
DisplayMetrics
getDisplayMetrics() {
138
if (
displayMetrics
== null) {
143
displayMetrics
= new
DisplayMetrics
();
144
display.getMetrics(
displayMetrics
);
146
displayMetrics
.density = this.density
[
all
...]
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/ui/
ImageDetailActivity.java
28
import android.util.
DisplayMetrics
;
62
final
DisplayMetrics
displayMetrics
= new
DisplayMetrics
();
63
getWindowManager().getDefaultDisplay().getMetrics(
displayMetrics
);
64
final int height =
displayMetrics
.heightPixels;
65
final int width =
displayMetrics
.widthPixels;
/packages/apps/VideoEditor/src/com/android/videoeditor/
ProjectsActivity.java
26
import android.util.
DisplayMetrics
;
96
final
DisplayMetrics
displayMetrics
= new
DisplayMetrics
();
97
getWindowManager().getDefaultDisplay().getMetrics(
displayMetrics
);
98
final int widthDip = (int) (
displayMetrics
.widthPixels /
displayMetrics
.scaledDensity);
VideoEditorActivity.java
50
import android.util.
DisplayMetrics
;
210
DisplayMetrics
displayMetrics
= new
DisplayMetrics
();
211
getWindowManager().getDefaultDisplay().getMetrics(
displayMetrics
);
213
int widthDip = (int) (
displayMetrics
.widthPixels /
displayMetrics
.scaledDensity);
[
all
...]
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
ContactDetailFragment.java
38
import android.util.
DisplayMetrics
;
519
// Gets a
DisplayMetrics
object, which is used to retrieve the display's pixel height and
521
final
DisplayMetrics
displayMetrics
= new
DisplayMetrics
();
523
// Retrieves a
displayMetrics
object for the device's default display
524
getActivity().getWindowManager().getDefaultDisplay().getMetrics(
displayMetrics
);
525
final int height =
displayMetrics
.heightPixels;
526
final int width =
displayMetrics
.widthPixels;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
ConversationListView.java
11
import android.util.
DisplayMetrics
;
129
DisplayMetrics
displayMetrics
= getResources().getDisplayMetrics();
130
mDensity =
displayMetrics
.density;
134
float threshold = (
displayMetrics
.heightPixels) / mDensity / 2.5f;
/frameworks/base/core/java/android/widget/
CalendarView.java
34
import android.util.
DisplayMetrics
;
382
DisplayMetrics
displayMetrics
= getResources().getDisplayMetrics();
384
UNSCALED_WEEK_MIN_VISIBLE_HEIGHT,
displayMetrics
);
386
UNSCALED_LIST_SCROLL_TOP_OFFSET,
displayMetrics
);
388
UNSCALED_BOTTOM_BUFFER,
displayMetrics
);
390
UNSCALED_SELECTED_DATE_VERTICAL_BAR_WIDTH,
displayMetrics
);
392
UNSCALED_WEEK_SEPARATOR_LINE_WIDTH,
displayMetrics
);
[
all
...]
Editor.java
74
import android.util.
DisplayMetrics
;
[
all
...]
Completed in 830 milliseconds