/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer_test.cpp | 101 <application> in TEST_F() 108 </application> in TEST_F() 204 <application android:name=".MainApplication" /> in TEST_F() 213 xml::Element* application_el = manifest_el->FindChild("", "application"); in TEST_F() 251 <application android:name=".MainApplication" text="hello"> in TEST_F() 254 </application> in TEST_F() 275 xml::Element* application_el = manifest_el->FindChild({}, "application"); in TEST_F() 706 <application> in TEST_F() 707 </application> in TEST_F() 713 <application android:debuggable="false"> in TEST_F() [all …]
|
/frameworks/base/mime/java-res/ |
D | android.mime.types | 48 ?application/epub+zip epub 49 ?application/lrc lrc 50 ?application/pkix-cert cer 51 ?application/rss+xml rss 52 ?application/sdp sdp 53 ?application/smil+xml smil 54 ?application/ttml+xml ttml dfxp 55 ?application/vnd.android.ota ota 56 ?application/vnd.apple.mpegurl m3u8 57 ?application/vnd.ms-pki.stl stl [all …]
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelperTest.java | 21 import static org.robolectric.RuntimeEnvironment.application; 73 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_withWrongConfigType_shouldThrowException() 75 helper.getDimension(application, TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException() 80 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_shouldReturnExpectedDimension() 83 float result = helper.getDimension(application, TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension() 95 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getColor_shouldReturnExpectedColor() 98 int color = helper.getColor(application, TEST_COLOR_RESOURCE_NAME); in getColor_shouldReturnExpectedColor() 110 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() 114 helper.getColorStateList(application, TEST_COLOR_RESOURCE_NAME); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() 117 int color = helper.getColor(application, TEST_COLOR_RESOURCE_NAME); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | PartnerTest.java | 20 import static org.robolectric.RuntimeEnvironment.application; 61 Partner partner = Partner.get(application); in get_withPartnerPackage_shouldReturnNonNull() 68 Partner partner = Partner.get(application); in get_noPartnerPackage_shouldReturnNull() 83 Partner partner = Partner.get(application); in get_nonSystemPartnerPackage_shouldIgnoreAndReturnNull() 93 ResourceEntry entry = Partner.getResourceEntry(application, R.integer.suwTransitionDuration); in getResourceEntry_hasOverlay_shouldReturnOverlayValue() 105 final int color = Partner.getColor(application, R.color.suw_color_accent_dark); in getColor_partnerValuePresent_shouldReturnPartnerValue() 115 final CharSequence partnerText = Partner.getText(application, R.string.suw_next_button_label); in getText_partnerValuePresent_shouldReturnPartnerValue() 123 ResourceEntry entry = Partner.getResourceEntry(application, R.color.suw_color_accent_dark); in getResourceEntry_partnerValueNotPresent_shouldReturnDefault() 133 ResourceEntry entry = Partner.getResourceEntry(application, R.color.suw_color_accent_dark); in getResourceEntry_directBootUnawareNoValueDefined_shouldReturnDefaultValue() 175 shadowOf(application.getPackageManager()) in injectResources()
|
D | WizardManagerHelperTest.java | 21 import static org.robolectric.RuntimeEnvironment.application; 320 Settings.Global.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1); in testIsUserSetupComplete() 321 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 1); in testIsUserSetupComplete() 322 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isTrue(); in testIsUserSetupComplete() 324 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 0); in testIsUserSetupComplete() 325 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isFalse(); in testIsUserSetupComplete() 331 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 1); in testIsUserSetupCompleteCompat() 332 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isTrue(); in testIsUserSetupCompleteCompat() 334 Settings.Secure.putInt(application.getContentResolver(), Secure.DEVICE_PROVISIONED, 0); in testIsUserSetupCompleteCompat() 335 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isFalse(); in testIsUserSetupCompleteCompat() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ServiceListingTest.java | 45 mServiceListing = new ServiceListing.Builder(RuntimeEnvironment.application) in setUp() 69 Settings.Secure.putString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 77 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 79 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 86 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 88 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 95 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 97 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | ActivityTileTest.java | 51 mContext = RuntimeEnvironment.application; in setUp() 89 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull() 96 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_providedByUri_returnNull() 103 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon() 111 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_transparentColorInMetadata_returnNull() 119 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 122 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isTrue(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 129 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noIcon_shouldReturnFalse() 137 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noTintableMetadata_shouldReturnFalse() 177 tile.getTitle(RuntimeEnvironment.application); in getTitle_shouldEnsureMetadataNotStale() [all …]
|
D | ProviderTileTest.java | 61 mContext = RuntimeEnvironment.application; in setUp() 102 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon() 111 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 114 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isTrue(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 121 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noIcon_shouldReturnFalse() 129 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noTintableMetadata_shouldReturnFalse() 171 tile.getTitle(RuntimeEnvironment.application); in getTitle_shouldEnsureMetadataNotStale()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | FillContentLayoutTest.java | 20 import static org.robolectric.RuntimeEnvironment.application; 38 application, in testMeasureMinSize() 53 View child = new View(application); in testMeasureChildIsSmallerThanMaxSize() 56 application, in testMeasureChildIsSmallerThanMaxSize() 72 View child = new View(application); in testMeasureChildIsSmallerThanParent() 75 application, in testMeasureChildIsSmallerThanParent()
|
D | RichTextViewTest.java | 25 import static org.robolectric.RuntimeEnvironment.application; 55 RichTextView textView = new RichTextView(application); in testLinkAnnotation() 80 RichTextView textView = new RichTextView(application); in testOnLinkClickListener() 102 TestContext context = new TestContext(application); in testLegacyContextOnClickListener() 120 RichTextView textView = new RichTextView(application); in onTouchEvent_clickOnLinks_shouldReturnTrue() 138 RichTextView textView = new RichTextView(application); in onTouchEvent_clickOutsideLinks_shouldReturnFalse() 156 RichTextView textView = new RichTextView(application); in testTextStyle() 176 RichTextView view = new RichTextView(application); in testTextContainingLinksAreFocusable() 185 RichTextView textView = new RichTextView(application); in testTextContainingNoLinksAreNotFocusable() 196 RichTextView textView = new RichTextView(application); in testRichTextViewFocusChangesWithTextChange()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | SimStatusImeiInfoPreferenceControllerTest.java | 46 RuntimeEnvironment.application) { in setUp() 57 extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in testIsAvailable_isAdminAndHasMobile_shouldReturnTrue() 60 extract(RuntimeEnvironment.application.getSystemService(ConnectivityManager.class)); in testIsAvailable_isAdminAndHasMobile_shouldReturnTrue() 69 extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in testIsAvailable_isAdminButNoMobile_shouldReturnFalse() 72 extract(RuntimeEnvironment.application.getSystemService(ConnectivityManager.class)); in testIsAvailable_isAdminButNoMobile_shouldReturnFalse() 81 extract(RuntimeEnvironment.application.getSystemService(UserManager.class)); in testIsAvailable_isNotAdmin_shouldReturnFalse()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ |
D | SwitchItemTest.java | 23 import static org.robolectric.RuntimeEnvironment.application; 53 LayoutInflater inflater = LayoutInflater.from(application); in defaultLayout_baselineAligned_shouldBeFalse() 62 LayoutInflater inflater = LayoutInflater.from(application); in verboseLayout_clipPadding_shouldBeFalse() 65 application, in verboseLayout_clipPadding_shouldBeFalse() 211 View view = LayoutInflater.from(application).inflate(R.layout.suw_items_switch, null); in testAccessibility() 220 ViewGroup root = new FrameLayout(application); in createLayout() 222 TextView titleView = new TextView(application); in createLayout() 226 TextView summaryView = new TextView(application); in createLayout() 230 FrameLayout iconContainer = new FrameLayout(application); in createLayout() 234 ImageView iconView = new ImageView(application); in createLayout() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/ |
D | LinkSpanTest.java | 21 import static org.robolectric.RuntimeEnvironment.application; 38 final TestContext context = new TestContext(application); in onClick_shouldCallListenerOnContext() 51 final TextView textView = new TextView(application); in onClick_contextDoesNotImplementOnClickListener_shouldBeNoOp() 62 final TestContext context = new TestContext(application); in onClick_contextWrapsOnClickListener_shouldCallWrappedListener() 75 final TestContext context = new TestContext(application); in onClick_shouldClearSelection()
|
/frameworks/native/services/inputflinger/docs/ |
D | anr.md | 3 'ANR' means 'application not responding'. This is an event that gets triggered when the system thin… 8 2. The application did not have a focused window, and an input event that requires focus was genera… 14 …st common case is when an application does not respond to input that dispatcher sent to it. Typica… 16 When the event is being dispatched to an application, the normal flow is: `mPendingEvent` → `connec… 29 For example, if an application is being debugged, the ActivityManager may want to increase the time… 37 When an application sends a response for a particular dispatch entry, that entry is removed from th… 42 In order to test this behaviour, you can create an application that calls `SystemClock.sleep` while… 49 …er. When an application is launched, WindowManager calls `setFocusedApplication` to tell InputDisp… 51 After launching, an application may not add a focused window. This could be either due to a bug in … 57 * User touches another application [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/ |
D | README.txt | 20 How to build the application: 22 Otherwise, to build the application for a specific device, lunch to that device 25 and run adb install out/target/.../SmartCamera.apk. The application should 35 How to run the application: 36 On a Nexus 7, open up the application from the launcher, and the camera preview 42 The application tries to take good pictures for you automatically when in the 43 start mode. On stop, the application will capture whatever images are in the
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 134 std::shared_ptr<InputApplicationHandle> application; in assertNotifyNoFocusedWindowAnrWasCalled() local 139 application = getAnrTokenLockedInterruptible(timeout, mAnrApplications, lock)); in assertNotifyNoFocusedWindowAnrWasCalled() 141 ASSERT_EQ(expectedApplication, application); in assertNotifyNoFocusedWindowAnrWasCalled() 1387 std::shared_ptr<FakeApplicationHandle> application = std::make_shared<FakeApplicationHandle>(); in TEST_F() local 1389 new FakeWindowHandle(application, mDispatcher, "Fake Window", ADISPLAY_ID_DEFAULT); in TEST_F() 1409 std::shared_ptr<FakeApplicationHandle> application = std::make_shared<FakeApplicationHandle>(); in TEST_F() local 1411 new FakeWindowHandle(application, mDispatcher, "Fake Window", ADISPLAY_ID_DEFAULT); in TEST_F() 1432 std::shared_ptr<FakeApplicationHandle> application = std::make_shared<FakeApplicationHandle>(); in TEST_F() local 1434 new FakeWindowHandle(application, mDispatcher, "Fake Window", ADISPLAY_ID_DEFAULT); in TEST_F() 1451 std::shared_ptr<FakeApplicationHandle> application = std::make_shared<FakeApplicationHandle>(); in TEST_F() local [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | BackupManagerServiceTestUtils.java | 112 Application application, in setUpBackupManagerServiceBasics() argument 119 when(backupManagerService.getContext()).thenReturn(application); in setUpBackupManagerServiceBasics() 138 public static void setUpBinderCallerAndApplicationAsSystem(Application application) { in setUpBinderCallerAndApplicationAsSystem() argument 143 ShadowApplication shadowApplication = shadowOf(application); in setUpBinderCallerAndApplicationAsSystem() 165 Application application) { in createBackupWakeLock() argument 167 (PowerManager) application.getSystemService(Context.POWER_SERVICE); in createBackupWakeLock()
|
/frameworks/base/tests/AccessoryDisplay/ |
D | README | 15 The sink application uses the UsbDevice APIs to receive connections 19 The sink application decodes encoded video from the source and 30 The source application uses the UsbAccessory APIs to connect 34 The source application uses the DisplayManager APIs to create 37 the application opens a Presentation on the new virtual display
|
/frameworks/opt/localepicker/tests/src/com/android/localepicker/ |
D | LocaleStoreTest.java | 22 import static org.robolectric.RuntimeEnvironment.application; 51 TelephonyManager telephonyManager = application.getSystemService(TelephonyManager.class); in setupTelephonyManager() 58 LocaleStore.fillCache(application); in fillCache()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/ |
D | ScrollViewScrollHandlingDelegateTest.java | 21 import static org.robolectric.RuntimeEnvironment.application; 46 scrollView = new BottomScrollView(application); in setUp() 47 View childView = new View(application); in setUp()
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockService.java | 36 Application application) { in attachForTesting() argument 42 application, in attachForTesting()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | SecondaryKeyRotationSchedulerTest.java | 62 Context application = ApplicationProvider.getApplicationContext(); in setUp() local 64 mCryptoSettings = CryptoSettings.getInstanceForTesting(application); in setUp() 69 application, mSecondaryKeyManager, mCryptoSettings, mClock); in setUp() 109 File file = new File(RuntimeEnvironment.application.getFilesDir(), SENTINEL_FILE_PATH); in startRotationIfScheduled_rotatesIfSentinelFileIsPresent()
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_blob_cache.txt | 39 application start-up. Additionally, state-based re-compiles done 40 internally by the drivers add an unpredictable element to application 47 program. The management of the cache is handled by the application (or 56 Note that although this extension is written as if the application 60 application that uses EGL if it is supported by the underlying 73 * EGLSetBlobFunc is a pointer to an application-provided function that a 81 * EGLGetBlobFunc is a pointer to an application-provided function that a 106 is slow to compute or collect, the application may specify callback 115 the application. <set> points to a function that inserts a new value into 138 key, a client API implementation can call the application-provided callback [all …]
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/ |
D | CarWizardManagerHelperTest.java | 165 Context context = RuntimeEnvironment.application; in testIsUserSetupCompleteTrue() 176 Context context = RuntimeEnvironment.application; in testIsUserSetupCompleteFalse() 187 Context context = RuntimeEnvironment.application; in testIsDeviceProvisionedTrue() 198 Context context = RuntimeEnvironment.application; in testIsDeviceProvisionedFalse()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/ |
D | ExternalResources.java | 19 import static org.robolectric.RuntimeEnvironment.application; 50 application.getPackageManager().getPackageInfo(packageInfo.packageName, 0); in injectExternalResources() 53 shadowOf(application.getPackageManager()).addPackage(packageInfo); in injectExternalResources() 69 android.content.res.Resources res = application.getResources(); in forPackageName()
|