/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | ServReqTestSuite.java | 27 public static ArrayList<ReqTestCase> getTestSuite(Context context) { in getTestSuite() argument 28 initialize(context); in getTestSuite() 32 public static ReqTestCase getTestCase(Context context, in getTestCase() argument 34 initialize(context); in getTestCase() 44 private static void initialize(Context context) { in initialize() argument 50 sTestSuite.add(new ServReqAllTestCase01(context)); in initialize() 51 sTestSuite.add(new ServReqAllTestCase02(context)); in initialize() 52 sTestSuite.add(new ServReqAllTestCase03(context)); in initialize() 53 sTestSuite.add(new ServReqDnsPtrTestCase(context)); in initialize() 54 sTestSuite.add(new ServReqDnsTxtTestCase(context)); in initialize() [all …]
|
D | GoNegReqTestSuite.java | 35 public static ArrayList<ReqTestCase> getTestSuite(Context context) { in getTestSuite() argument 36 initialize(context); in getTestSuite() 46 public static ReqTestCase getTestCase(Context context, in getTestCase() argument 48 initialize(context); in getTestCase() 58 private static void initialize(Context context) { in initialize() argument 64 sTestSuite.add(new GoNegReqPbcTestCase(context)); in initialize() 65 sTestSuite.add(new GoNegReqPinTestCase(context)); in initialize()
|
D | P2pClientTestSuite.java | 35 public static ArrayList<ReqTestCase> getTestSuite(Context context) { in getTestSuite() argument 36 initialize(context); in getTestSuite() 46 public static ReqTestCase getTestCase(Context context, in getTestCase() argument 48 initialize(context); in getTestCase() 58 private static void initialize(Context context) { in initialize() argument 64 sTestSuite.add(new P2pClientPbcTestCase(context)); in initialize() 65 sTestSuite.add(new P2pClientPinTestCase(context)); in initialize()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 26 static String getVersionName(Context context) { in getVersionName() argument 27 return getVersionNameStrings(context)[0]; in getVersionName() 30 static int getVersionCode(Context context) { in getVersionCode() argument 31 return getPackageInfo(context).versionCode; in getVersionCode() 34 static String getBuildNumber(Context context) { in getBuildNumber() argument 35 return getVersionNameStrings(context)[1]; in getBuildNumber() 38 static private String[] getVersionNameStrings(Context context) { in getVersionNameStrings() argument 39 return getPackageInfo(context).versionName.split(" "); in getVersionNameStrings() 42 static PackageInfo getPackageInfo(Context context) { in getPackageInfo() argument 44 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() [all …]
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
D | StubbableAppWidgetProvider.java | 26 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() argument 29 callbacks.onUpdate(context, appWidgetManager, appWidgetIds); in onUpdate() 34 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, in onAppWidgetOptionsChanged() argument 38 callbacks.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions); in onAppWidgetOptionsChanged() 43 public void onDeleted(Context context, int[] appWidgetIds) { in onDeleted() argument 46 callbacks.onDeleted(context, appWidgetIds); in onDeleted() 51 public void onEnabled(Context context) { in onEnabled() argument 54 callbacks.onEnabled(context); in onEnabled() 59 public void onDisabled(Context context) { in onDisabled() argument 62 callbacks.onDisabled(context); in onDisabled() [all …]
|
D | AppWidgetProviderCallbacks.java | 36 public abstract void onUpdate(Context context, AppWidgetManager appWidgetManager, in onUpdate() argument 39 public abstract void onAppWidgetOptionsChanged(Context context, in onAppWidgetOptionsChanged() argument 42 public abstract void onDeleted(Context context, int[] appWidgetIds); in onDeleted() argument 44 public abstract void onEnabled(Context context); in onEnabled() argument 46 public abstract void onDisabled(Context context); in onDisabled() argument 48 public abstract void onRestored(Context context, int[] oldWidgetIds, int[] newWidgetIds); in onRestored() argument
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/ |
D | UnclippedBlueView.java | 26 public UnclippedBlueView(Context context) { in UnclippedBlueView() argument 27 this(context, null); in UnclippedBlueView() 30 public UnclippedBlueView(Context context, AttributeSet attrs) { in UnclippedBlueView() argument 31 this(context, attrs, 0); in UnclippedBlueView() 34 public UnclippedBlueView(Context context, AttributeSet attrs, int defStyleAttr) { in UnclippedBlueView() argument 35 this(context, attrs, defStyleAttr, 0); in UnclippedBlueView() 38 public UnclippedBlueView(Context context, AttributeSet attrs, in UnclippedBlueView() argument 40 super(context, attrs, defStyleAttr, defStyleRes); in UnclippedBlueView()
|
D | CircleClipFrameLayout.java | 27 public CircleClipFrameLayout(Context context) { in CircleClipFrameLayout() argument 28 this(context, null); in CircleClipFrameLayout() 31 public CircleClipFrameLayout(Context context, AttributeSet attrs) { in CircleClipFrameLayout() argument 32 this(context, attrs, 0); in CircleClipFrameLayout() 35 public CircleClipFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { in CircleClipFrameLayout() argument 36 this(context, attrs, defStyleAttr, 0); in CircleClipFrameLayout() 39 …public CircleClipFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRe… in CircleClipFrameLayout() argument 40 super(context, attrs, defStyleAttr, defStyleRes); in CircleClipFrameLayout()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | TestSensorEnvironment.java | 55 public TestSensorEnvironment(Context context, int sensorType, int samplingPeriodUs) { in TestSensorEnvironment() argument 56 this(context, sensorType, false /* sensorMightHaveMoreListeners */, samplingPeriodUs); in TestSensorEnvironment() 71 Context context, in TestSensorEnvironment() argument 75 this(context, in TestSensorEnvironment() 94 Context context, in TestSensorEnvironment() argument 98 this(context, in TestSensorEnvironment() 118 Context context, in TestSensorEnvironment() argument 123 this(context, in TestSensorEnvironment() 124 getSensor(context, sensorType), in TestSensorEnvironment() 139 Context context, in TestSensorEnvironment() argument [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NfcDialogs.java | 30 static AlertDialog createNotEnabledDialog(final Context context) { in createNotEnabledDialog() argument 31 return new AlertDialog.Builder(context) in createNotEnabledDialog() 39 context.startActivity(intent); in createNotEnabledDialog() 45 static AlertDialog createNdefPushNotEnabledDialog(final Context context) { 46 return new AlertDialog.Builder(context) 54 context.startActivity(intent); 60 public static AlertDialog createHceTapReaderDialog(final Context context, String message) { 61 String baseString = context.getString(R.string.nfc_hce_tap_reader_message); 62 return new AlertDialog.Builder(context) 70 public static AlertDialog createChangeForegroundDialog(final Context context) { [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MockViewStub.java | 24 public MockViewStub(Context context) { in MockViewStub() argument 25 super(context); in MockViewStub() 28 public MockViewStub(Context context, AttributeSet attrs) { in MockViewStub() argument 29 super(context, attrs); in MockViewStub() 32 public MockViewStub(Context context, AttributeSet attrs, int defStyle) { in MockViewStub() argument 33 super(context, attrs, defStyle); in MockViewStub()
|
D | TestButton.java | 25 public TestButton(Context context) { in TestButton() argument 26 super(context); in TestButton() 29 public TestButton(Context context, AttributeSet attrs) { in TestButton() argument 30 super(context, attrs); in TestButton() 33 public TestButton(Context context, AttributeSet attrs, int defStyle) { in TestButton() argument 34 super(context, attrs, defStyle); in TestButton()
|
D | MyScrollView.java | 26 public MyScrollView(Context context) { in MyScrollView() argument 27 super(context); in MyScrollView() 30 public MyScrollView(Context context, AttributeSet attrs) { in MyScrollView() argument 31 super(context, attrs); in MyScrollView() 34 public MyScrollView(Context context, AttributeSet attrs, int defStyle) { in MyScrollView() argument 35 super(context, attrs, defStyle); in MyScrollView()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListItemFactory.java | 42 … public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { in twoButtonsSeparatedByFiller() argument 48 final LinearLayout ll = new LinearLayout(context); in twoButtonsSeparatedByFiller() 56 final Button topButton = new Button(context); in twoButtonsSeparatedByFiller() 62 final TextView middleFiller = new TextView(context); in twoButtonsSeparatedByFiller() 69 final Button bottomButton = new Button(context); in twoButtonsSeparatedByFiller() 91 public static View horizontalButtonSlots(Context context, int desiredHeight, Slot... slots) { in horizontalButtonSlots() argument 93 final LinearLayout ll = new LinearLayout(context); in horizontalButtonSlots() 119 final Button button = new Button(context); in horizontalButtonSlots() 123 ll.addView(new View(context), lp); in horizontalButtonSlots() 127 final Button button = new Button(context); in horizontalButtonSlots() [all …]
|
/cts/tests/tests/admin/src/android/admin/cts/ |
D | DeviceAdminReceiverTest.java | 88 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() argument 89 super.onPasswordChanged(context, intent); in onPasswordChanged() 94 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() argument 95 super.onPasswordFailed(context, intent); in onPasswordFailed() 100 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() argument 101 super.onPasswordSucceeded(context, intent); in onPasswordSucceeded() 106 public void onEnabled(Context context, Intent intent) { in onEnabled() argument 107 super.onEnabled(context, intent); in onEnabled() 112 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() argument 118 public void onDisabled(Context context, Intent intent) { in onDisabled() argument [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 25 public static long getFreeDiskSize(Context context) { in getFreeDiskSize() argument 26 final StatFs statFs = new StatFs(context.getFilesDir().getAbsolutePath()); in getFreeDiskSize() 30 public static long getFreeMemory(Context context) { in getFreeMemory() argument 32 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); in getFreeMemory() 36 public static long getTotalMemory(Context context) { in getTotalMemory() argument 38 ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryInfo(info); in getTotalMemory()
|
/cts/tests/acceleration/src/android/acceleration/cts/ |
D | AcceleratedView.java | 33 public AcceleratedView(Context context) { in AcceleratedView() argument 34 super(context); in AcceleratedView() 37 public AcceleratedView(Context context, AttributeSet attrs) { in AcceleratedView() argument 38 super(context, attrs); in AcceleratedView() 41 public AcceleratedView(Context context, AttributeSet attrs, int defStyle) { in AcceleratedView() argument 42 super(context, attrs, defStyle); in AcceleratedView()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | NullWebViewUtils.java | 41 public static void determineIfWebViewAvailable(Context context, Throwable t) { in determineIfWebViewAvailable() argument 42 sWebViewUnavailable = !hasWebViewFeature(context) && checkCauseWasUnsupportedOperation(t); in determineIfWebViewAvailable() 55 private static boolean hasWebViewFeature(Context context) { in hasWebViewFeature() argument 57 PackageManager pm = context.getPackageManager(); in hasWebViewFeature() 83 public boolean isWebViewAvailable(Context context) { in isWebViewAvailable() argument 84 return hasWebViewFeature(context) || in isWebViewAvailable()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | MockListener.java | 92 public void onReceive(Context context, Intent intent) { in onCreate() 246 public static void resetListenerData(Context context) { in resetListenerData() argument 247 sendCommand(context, SERVICE_RESET, null, 0); in resetListenerData() 250 public static void probeListenerStatus(Context context, StatusCatcher catcher) { in probeListenerStatus() argument 251 requestStatus(context, SERVICE_CHECK, catcher); in probeListenerStatus() 254 public static void probeFilter(Context context, IntegerResultCatcher catcher) { in probeFilter() argument 255 requestIntegerResult(context, SERVICE_DND, catcher); in probeFilter() 258 public static void probeListenerPosted(Context context, StringListResultCatcher catcher) { in probeListenerPosted() argument 259 requestStringListResult(context, SERVICE_POSTED, catcher); in probeListenerPosted() 262 public static void probeListenerOrder(Context context, StringListResultCatcher catcher) { in probeListenerOrder() argument [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MyHorizontalScrollView.java | 26 public MyHorizontalScrollView(Context context) { in MyHorizontalScrollView() argument 27 super(context); in MyHorizontalScrollView() 30 public MyHorizontalScrollView(Context context, AttributeSet attrs) { in MyHorizontalScrollView() argument 31 super(context, attrs); in MyHorizontalScrollView() 34 public MyHorizontalScrollView(Context context, AttributeSet attrs, int defStyle) { in MyHorizontalScrollView() argument 35 super(context, attrs, defStyle); in MyHorizontalScrollView()
|
D | MyScrollView.java | 26 public MyScrollView(Context context) { in MyScrollView() argument 27 super(context); in MyScrollView() 30 public MyScrollView(Context context, AttributeSet attrs) { in MyScrollView() argument 31 super(context, attrs); in MyScrollView() 34 public MyScrollView(Context context, AttributeSet attrs, int defStyle) { in MyScrollView() argument 35 super(context, attrs, defStyle); in MyScrollView()
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | CustomCheckBoxPreference.java | 29 public CustomCheckBoxPreference(Context context, AttributeSet attrs) { in CustomCheckBoxPreference() argument 30 super(context, attrs); in CustomCheckBoxPreference() 36 public CustomCheckBoxPreference(Context context) { in CustomCheckBoxPreference() argument 37 super(context); in CustomCheckBoxPreference() 40 public CustomCheckBoxPreference(Context context, AttributeSet attrs, int defStyle) { in CustomCheckBoxPreference() argument 41 super(context, attrs, defStyle); in CustomCheckBoxPreference()
|
D | CustomEditTextPreference.java | 29 public CustomEditTextPreference(Context context, AttributeSet attrs) { in CustomEditTextPreference() argument 30 super(context, attrs); in CustomEditTextPreference() 36 public CustomEditTextPreference(Context context) { in CustomEditTextPreference() argument 37 super(context); in CustomEditTextPreference() 40 public CustomEditTextPreference(Context context, AttributeSet attrs, int defStyle) { in CustomEditTextPreference() argument 41 super(context, attrs, defStyle); in CustomEditTextPreference()
|
D | CustomPreferenceGroup.java | 30 public CustomPreferenceGroup(Context context, AttributeSet attrs) { in CustomPreferenceGroup() argument 31 super(context, attrs); in CustomPreferenceGroup() 35 public CustomPreferenceGroup(Context context) { in CustomPreferenceGroup() argument 36 super(context, null, 0); in CustomPreferenceGroup() 39 public CustomPreferenceGroup(Context context, AttributeSet attrs, int defStyle) { in CustomPreferenceGroup() argument 40 super(context, attrs, defStyle); in CustomPreferenceGroup()
|
D | CustomSwitchPreference.java | 30 public CustomSwitchPreference(Context context, AttributeSet attrs) { in CustomSwitchPreference() argument 31 super(context, attrs); in CustomSwitchPreference() 37 public CustomSwitchPreference(Context context) { in CustomSwitchPreference() argument 38 super(context); in CustomSwitchPreference() 41 public CustomSwitchPreference(Context context, AttributeSet attrs, int defStyle) { in CustomSwitchPreference() argument 42 super(context, attrs, defStyle); in CustomSwitchPreference()
|