OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:memoryInfo
(Results
1 - 15
of
15
) sorted by null
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
MemoryDeviceInfo.java
19
import android.app.ActivityManager.
MemoryInfo
;
39
MemoryInfo
memoryInfo
= new
MemoryInfo
();
40
activityManager.getMemoryInfo(
memoryInfo
);
41
store.addResult("total_memory",
memoryInfo
.totalMem);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ActivityManagerTest.java
20
ActivityManager.
MemoryInfo
memoryInfo
= new ActivityManager.
MemoryInfo
();
21
memoryInfo
.lowMemory = true;
22
shadowActivityManager.setMemoryInfo(
memoryInfo
);
23
ActivityManager.
MemoryInfo
fetchedMemoryInfo = new ActivityManager.
MemoryInfo
();
31
ActivityManager.
MemoryInfo
fetchedMemoryInfo = new ActivityManager.
MemoryInfo
();
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowActivityManager.java
24
private ActivityManager.
MemoryInfo
memoryInfo
;
42
public void getMemoryInfo(ActivityManager.
MemoryInfo
outInfo) {
43
if (
memoryInfo
!= null) {
44
outInfo.lowMemory =
memoryInfo
.lowMemory;
71
public void setMemoryInfo(ActivityManager.
MemoryInfo
memoryInfo
) {
72
this.
memoryInfo
=
memoryInfo
;
75
@Implements(ActivityManager.
MemoryInfo
.class
[
all
...]
/frameworks/base/tools/preload/loadclass/
LoadClass.java
62
Debug.
MemoryInfo
memoryInfo
= new Debug.
MemoryInfo
();
63
Debug.getMemoryInfo(
memoryInfo
);
64
response.append(',').append(
memoryInfo
.nativeSharedDirty);
65
response.append(',').append(
memoryInfo
.dalvikSharedDirty);
66
response.append(',').append(
memoryInfo
.otherSharedDirty);
67
response.append(',').append(
memoryInfo
.nativePrivateDirty);
68
response.append(',').append(
memoryInfo
.dalvikPrivateDirty);
69
response.append(',').append(
memoryInfo
.otherPrivateDirty)
[
all
...]
/cts/tests/tests/hardware/src/android/hardware/cts/
LowRamDeviceTest.java
135
* {@code ActivityManager.
MemoryInfo
}.
138
ActivityManager.
MemoryInfo
memoryInfo
= new ActivityManager.
MemoryInfo
();
139
mActivityManager.getMemoryInfo(
memoryInfo
);
140
return
memoryInfo
.totalMem;
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
GlifPatternDrawableTest.java
151
Debug.
MemoryInfo
memoryInfo
= new Debug.
MemoryInfo
();
152
Debug.getMemoryInfo(
memoryInfo
);
153
final long memoryBefore =
memoryInfo
.getTotalPss(); // Get memory usage in KB
159
Debug.getMemoryInfo(
memoryInfo
);
160
final long memoryAfter =
memoryInfo
.getTotalPss();
/packages/apps/Camera2/src/com/android/camera/app/
MemoryQuery.java
61
* the ActivityManager and Debug.
MemoryInfo
,
66
// Get ActivityManager.
MemoryInfo
.
69
ActivityManager.
MemoryInfo
memoryInfo
= new ActivityManager.
MemoryInfo
();
70
mActivityManager.getMemoryInfo(
memoryInfo
);
71
long availMem =
memoryInfo
.availMem / BYTES_IN_MEGABYTE;
72
long totalMem =
memoryInfo
.totalMem / BYTES_IN_MEGABYTE;
73
long threshold =
memoryInfo
.threshold / BYTES_IN_MEGABYTE;
74
boolean lowMemory =
memoryInfo
.lowMemory
[
all
...]
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DeviceInfoInstrument.java
21
import android.app.ActivityManager.
MemoryInfo
;
468
MemoryInfo
memoryInfo
= new
MemoryInfo
();
469
activityManager.getMemoryInfo(
memoryInfo
);
470
return String.valueOf(
memoryInfo
.totalMem);
/cts/tests/tests/os/src/android/os/cts/
DebugTest.java
153
Debug.
MemoryInfo
memoryInfo
= new Debug.
MemoryInfo
();
154
Debug.getMemoryInfo(
memoryInfo
);
305
Debug.
MemoryInfo
memoryInfo
= new Debug.
MemoryInfo
();
306
Debug.getMemoryInfo(
memoryInfo
);
308
String summary_java_heap =
memoryInfo
.getMemoryStat("summary.java-heap");
309
String summary_native_heap =
memoryInfo
.getMemoryStat("summary.native-heap")
[
all
...]
/external/robolectric/v3/runtime/
shadows-core-3.1-SNAPSHOT-16.jar
shadows-core-3.1-SNAPSHOT-17.jar
shadows-core-3.1-SNAPSHOT-18.jar
shadows-core-3.1-SNAPSHOT-19.jar
shadows-core-3.1-SNAPSHOT-21.jar
shadows-core-3.1-SNAPSHOT-22.jar
Completed in 1499 milliseconds