Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 12 new columns ({'Unnamed: 9', 'Unnamed: 12', 'Unnamed: 8', 'Unnamed: 17', 'Unnamed: 11', 'Unnamed: 13', 'Unnamed: 19', 'Unnamed: 15', 'Unnamed: 10', 'Unnamed: 18', 'Unnamed: 16', 'Unnamed: 14'})

This happened while the csv dataset builder was generating data using

hf://datasets/AIwho/test-smell-dataset/val.csv (at revision 68113dd76edc6427fffeb07da2621028ded5523d), ['hf://datasets/AIwho/test-smell-dataset@68113dd76edc6427fffeb07da2621028ded5523d/val.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              project_name: string
              file_path: string
              method_path: string
              method_name: string
              code: string
              EagerTest: int64
              MysteryGuest: int64
              ResourceOptimism: int64
              Unnamed: 8: double
              Unnamed: 9: double
              Unnamed: 10: double
              Unnamed: 11: double
              Unnamed: 12: double
              Unnamed: 13: double
              Unnamed: 14: double
              Unnamed: 15: double
              Unnamed: 16: double
              Unnamed: 17: double
              Unnamed: 18: double
              Unnamed: 19: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2712
              to
              {'project_name': Value('string'), 'file_path': Value('string'), 'method_path': Value('string'), 'method_name': Value('string'), 'code': Value('string'), 'EagerTest': Value('int64'), 'MysteryGuest': Value('int64'), 'ResourceOptimism': Value('int64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 12 new columns ({'Unnamed: 9', 'Unnamed: 12', 'Unnamed: 8', 'Unnamed: 17', 'Unnamed: 11', 'Unnamed: 13', 'Unnamed: 19', 'Unnamed: 15', 'Unnamed: 10', 'Unnamed: 18', 'Unnamed: 16', 'Unnamed: 14'})
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/AIwho/test-smell-dataset/val.csv (at revision 68113dd76edc6427fffeb07da2621028ded5523d), ['hf://datasets/AIwho/test-smell-dataset@68113dd76edc6427fffeb07da2621028ded5523d/val.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

project_name
string
file_path
string
method_path
string
method_name
string
code
string
EagerTest
int64
MysteryGuest
int64
ResourceOptimism
int64
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/SharedPreferencesTest.java
android.os.SharedPreferencesTest.timeCachedGetSharedPreferences
timeCachedGetSharedPreferences
public void timeCachedGetSharedPreferences() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); final Context context = InstrumentationRegistry.getTargetContext(); // Do the real work once as we're only interested in cache-hit performance SharedPreferences prefs ...
0
1
0
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/StrictModeTest.java
android.os.StrictModeTest.timeVmViolation
timeVmViolation
public void timeVmViolation() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build()); causeVmViolations(state); }
1
0
0
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/StrictModeTest.java
android.os.StrictModeTest.timeVmViolationNoStrictMode
timeVmViolationNoStrictMode
public void timeVmViolationNoStrictMode() { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); causeVmViolations(state); }
0
0
0
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/StrictModeTest.java
android.os.StrictModeTest.timeThreadViolation
timeThreadViolation
public void timeThreadViolation() throws IOException { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); StrictMode.setThreadPolicy( new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); causeThreadViolations(state); }
1
0
0
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/StrictModeTest.java
android.os.StrictModeTest.timeThreadViolationNoStrictMode
timeThreadViolationNoStrictMode
public void timeThreadViolationNoStrictMode() throws IOException { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); causeThreadViolations(state); }
0
0
0
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/StrictModeTest.java
android.os.StrictModeTest.timeCrossBinderThreadViolation
timeCrossBinderThreadViolation
public void timeCrossBinderThreadViolation() throws Exception { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); StrictMode.setThreadPolicy( new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); causeCrossProcessThreadViolations(state);...
1
0
0
android_frameworks_base/services
apct-tests/perftests/core/src/android/os/StrictModeTest.java
android.os.StrictModeTest.timeCrossBinderThreadViolationNoStrictMode
timeCrossBinderThreadViolationNoStrictMode
public void timeCrossBinderThreadViolationNoStrictMode() throws Exception { final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); causeCrossProcessThreadViolations(state); }
0
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testUpdateFromHal
testUpdateFromHal
public void testUpdateFromHal() { // First test updating an incomplete cache with a purging, complete chunk. ProgramInfoCache cache = new ProgramInfoCache(null, false, TEST_AM_FM_INFO); ProgramListChunk chunk = new ProgramListChunk(); chunk.purge = true; chunk.complete = true...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testNullFilter
testNullFilter
public void testNullFilter() { ProgramInfoCache cache = new ProgramInfoCache(null, true); cache.filterAndUpdateFrom(FULL_PROGRAM_INFO_CACHE, false); expect.withMessage("Program info cache with null filter") .that(cache.toProgramInfoList()).containsExactly(TEST_AM_FM_INFO, TES...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testEmptyFilter
testEmptyFilter
public void testEmptyFilter() { ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), new HashSet<ProgramSelector.Identifier>(), true, false)); cache.filterAndUpdateFrom(FULL_PROGRAM_INFO_CACHE, false); expect.withMessage("Program info...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testFilterByType
testFilterByType
public void testFilterByType() { HashSet<Integer> filterTypes = new HashSet<>(); filterTypes.add(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY); filterTypes.add(ProgramSelector.IDENTIFIER_TYPE_DAB_SID_EXT); ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(filterT...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testFilterByIdentifier
testFilterByIdentifier
public void testFilterByIdentifier() { HashSet<ProgramSelector.Identifier> filterIds = new HashSet<>(); filterIds.add(TEST_RDS_ID); filterIds.add(TEST_VENDOR_ID); ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), filterIds,...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testFilterExcludeCategories
testFilterExcludeCategories
public void testFilterExcludeCategories() { ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), new HashSet<ProgramSelector.Identifier>(), false, false)); cache.filterAndUpdateFrom(FULL_PROGRAM_INFO_CACHE, false); expect.withMessage(...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testPurgeUpdateChunks
testPurgeUpdateChunks
public void testPurgeUpdateChunks() { ProgramInfoCache cache = new ProgramInfoCache(null, false, TEST_AM_FM_INFO); List<ProgramList.Chunk> chunks = cache.filterAndUpdateFromInternal(FULL_PROGRAM_INFO_CACHE, true, 3, 3); assertEquals(2, chunks.size()); verifyChunkListF...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testDeltaUpdateChunksModificationsIncluded
testDeltaUpdateChunksModificationsIncluded
public void testDeltaUpdateChunksModificationsIncluded() { // Create a cache with a filter that allows modifications, and set its contents to // TEST_AM_FM_INFO, TEST_RDS_INFO, TEST_DAB_INFO, and TEST_VENDOR_INFO. ProgramInfoCache cache = new ProgramInfoCache(null, true, TEST_AM_FM_INFO, TES...
1
0
0
android_frameworks_base/services
core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ProgramInfoCacheTest.java
com.android.server.broadcastradio.hal2.ProgramInfoCacheTest.testDeltaUpdateChunksModificationsExcluded
testDeltaUpdateChunksModificationsExcluded
public void testDeltaUpdateChunksModificationsExcluded() { // Create a cache with a filter that excludes modifications, and set its contents to // TEST_AM_FM_INFO, TEST_RDS_INFO, TEST_DAB_INFO, and TEST_VENDOR_INFO. ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new Has...
1
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.setup
setup
public void setup() throws Exception { if (!android.tracing.Flags.perfettoIme()) { mUiTracesPreDumped.add(Paths.get("/data/misc/wmtrace/ime_trace_clients.winscope")); mUiTracesPreDumped.add( Paths.get("/data/misc/wmtrace/ime_trace_managerservice.winscope")); ...
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.normalFlow_wifi
normalFlow_wifi
public void normalFlow_wifi() throws Exception { BugreportCallbackImpl callback = new BugreportCallbackImpl(); // wifi bugreport does not take screenshot mBrm.startBugreport(mBugreportFd, null /*screenshotFd = null*/, wifi(), mExecutor, callback); shareConsentDialog(C...
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.normalFlow_interactive
normalFlow_interactive
public void normalFlow_interactive() throws Exception { BugreportCallbackImpl callback = new BugreportCallbackImpl(); // interactive bugreport does not take screenshot mBrm.startBugreport(mBugreportFd, null /*screenshotFd = null*/, interactive(), mExecutor, callback); ...
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.normalFlow_full
normalFlow_full
public void normalFlow_full() throws Exception { BugreportCallbackImpl callback = new BugreportCallbackImpl(); mBrm.startBugreport(mBugreportFd, mScreenshotFd, full(), mExecutor, callback); shareConsentDialog(ConsentReply.ALLOW); waitTillDoneOrTimeout(callback); assertThat(c...
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.simultaneousBugreportsNotAllowed
simultaneousBugreportsNotAllowed
public void simultaneousBugreportsNotAllowed() throws Exception { // Start bugreport #1 BugreportCallbackImpl callback = new BugreportCallbackImpl(); mBrm.startBugreport(mBugreportFd, mScreenshotFd, wifi(), mExecutor, callback); // TODO(b/162389762) Make sure the wait time is reasona...
1
1
1
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.cancelBugreport
cancelBugreport
public void cancelBugreport() throws Exception { // Start a bugreport. BugreportCallbackImpl callback = new BugreportCallbackImpl(); mBrm.startBugreport(mBugreportFd, mScreenshotFd, wifi(), mExecutor, callback); // Verify it's not finished yet. assertThat(callback.isDone())....
1
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.cancelBugreport_noReportStarted
cancelBugreport_noReportStarted
public void cancelBugreport_noReportStarted() throws Exception { // Without the native DumpstateService running, we don't get a SecurityException. mBrm.cancelBugreport(); }
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.cancelBugreport_fromDifferentUid
cancelBugreport_fromDifferentUid
public void cancelBugreport_fromDifferentUid() throws Exception { assertThat(Process.myUid()).isNotEqualTo(Process.SHELL_UID); // Start a bugreport through ActivityManager's shell command - this starts a BR from the // shell UID rather than our own. BugreportBroadcastReceiver br = n...
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.insufficientPermissions_throwsException
insufficientPermissions_throwsException
public void insufficientPermissions_throwsException() throws Exception { dropPermissions(); BugreportCallbackImpl callback = new BugreportCallbackImpl(); try { mBrm.startBugreport(mBugreportFd, mScreenshotFd, wifi(), mExecutor, callback); fail("Expected startBugrepor...
0
0
0
android_frameworks_base/services
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java
com.android.os.bugreports.tests.BugreportManagerTest.invalidBugreportMode_throwsException
invalidBugreportMode_throwsException
public void invalidBugreportMode_throwsException() throws Exception { BugreportCallbackImpl callback = new BugreportCallbackImpl(); try { mBrm.startBugreport(mBugreportFd, mScreenshotFd, new BugreportParams(25) /* unknown bugreport mode */, mExecutor, callback); ...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/accessibilityservice/AccessibilityShortcutInfoTest.java
android.accessibilityservice.AccessibilityShortcutInfoTest.setUp
setUp
public void setUp() { mTargetContext = InstrumentationRegistry.getInstrumentation() .getTargetContext(); mPackageManager = mTargetContext.getPackageManager(); mComponentName = new ComponentName(mTargetContext, AccessibilityTestActivity.class); mShortcutInfo = getAcces...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/accessibilityservice/AccessibilityShortcutInfoTest.java
android.accessibilityservice.AccessibilityShortcutInfoTest.testEquals
testEquals
public void testEquals() { assertTrue(mShortcutInfo.equals(mShortcutInfo)); assertFalse(mShortcutInfo.equals(null)); assertFalse(mShortcutInfo.equals(new Object())); final AccessibilityShortcutInfo sameCopy = getAccessibilityShortcutInfo( mComponentName); ass...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/accessibilityservice/AccessibilityShortcutInfoTest.java
android.accessibilityservice.AccessibilityShortcutInfoTest.testToString
testToString
public void testToString() { assertNotNull(mShortcutInfo.toString()); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/AnimatorInflaterTest.java
android.animation.AnimatorInflaterTest.testLoadStateListAnimator
testLoadStateListAnimator
public void testLoadStateListAnimator() { final BasicAnimatorActivity activity = mActivityRule.getActivity(); StateListAnimator sla1 = AnimatorInflater.loadStateListAnimator(activity, R.anim.test_state_anim); sla1.setTarget(activity.mAnimatingButton); StateListAnimato...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/StateListAnimatorTest.java
android.animation.StateListAnimatorTest.testInflateFromAnimator
testInflateFromAnimator
public void testInflateFromAnimator() throws Exception { StateListAnimator stateListAnimator = AnimatorInflater .loadStateListAnimator(mActivityRule.getActivity(), R.anim.test_state_anim); assertNotNull("A state list animator should be returned", stateListAnimator); assertEqu...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/StateListAnimatorTest.java
android.animation.StateListAnimatorTest.testAttachDetach
testAttachDetach
public void testAttachDetach() throws Exception { final BasicAnimatorActivity activity = mActivityRule.getActivity(); View view = new View(activity); final AtomicInteger setStateCount = new AtomicInteger(0); StateListAnimator stateListAnimator = new StateListAnimator() { ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/StateListAnimatorTest.java
android.animation.StateListAnimatorTest.testStateListLoading
testStateListLoading
public void testStateListLoading() throws InterruptedException { StateListAnimator stateListAnimator = AnimatorInflater .loadStateListAnimator(mActivityRule.getActivity(), R.anim.test_state_anim); assertNotNull("A state list animator should be returned", stateListAnimator); a...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.setUp
setUp
public void setUp() throws Exception { a1 = ValueAnimator.ofFloat(A1_START_VALUE, A1_END_VALUE).setDuration(300); a2 = ValueAnimator.ofInt(A2_START_VALUE, A2_END_VALUE).setDuration(500); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testStartDelay
testStartDelay
public void testStartDelay() throws Throwable { final ValueAnimator a = ValueAnimator.ofFloat(5f, 20f); assertEquals(a.getStartDelay(), 0); final long delay = 200; a.setStartDelay(delay); assertEquals(a.getStartDelay(), delay); final MyUpdateListener listener = new M...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testListenerCallbacks
testListenerCallbacks
public void testListenerCallbacks() throws Throwable { final MyListener l1 = new MyListener(); final MyListener l2 = new MyListener(); a1.addListener(l1); a2.addListener(l2); a2.setStartDelay(400); assertFalse(l1.startCalled); assertFalse(l1.cancelCalled); ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testIsStarted
testIsStarted
public void testIsStarted() throws Throwable { assertFalse(a1.isStarted()); assertFalse(a2.isStarted()); assertFalse(a1.isRunning()); assertFalse(a2.isRunning()); final long startDelay = 150; a1.setStartDelay(startDelay); final long[] startTime = new long[1]; ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testPause
testPause
public void testPause() throws Throwable { mActivityRule.runOnUiThread(new Runnable() { @Override public void run() { assertFalse(a1.isPaused()); assertFalse(a2.isPaused()); a1.start(); a2.start(); asse...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testPauseListener
testPauseListener
public void testPauseListener() throws Throwable { MyPauseListener l1 = new MyPauseListener(); MyPauseListener l2 = new MyPauseListener(); a1.addPauseListener(l1); a2.addPauseListener(l2); assertFalse(l1.pauseCalled); assertFalse(l1.resumeCalled); assertFalse...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testResume
testResume
public void testResume() throws Throwable { final MyUpdateListener l1 = new MyUpdateListener(); final long totalDuration = a1.getTotalDuration(); a1.addUpdateListener(l1); // Set a longer duration on a1 for this test a1.setDuration(1000); assertTrue(l1.firstRunningFra...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testEnd
testEnd
public void testEnd() throws Throwable { final MyListener l1 = new MyListener(); final MyListener l2 = new MyListener(); a1.addListener(l1); a2.addListener(l2); a1.addListener(new MyListener() { @Override public void onAnimationEnd(Animator anim) { ...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testEndValue
testEndValue
public void testEndValue() throws Throwable { final MyListener l1 = new MyListener(); a1.addListener(l1); final MyListener l2 = new MyListener(); a2.addListener(l2); mActivityRule.runOnUiThread(new Runnable() { @Override public void run() { ...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testUpdateListener
testUpdateListener
public void testUpdateListener() throws InterruptedException { final MyFrameCallbackProvider provider = new MyFrameCallbackProvider(); long sleep = 0; while (provider.mHandler == null) { Thread.sleep(POLL_INTERVAL); sleep += POLL_INTERVAL; if (sleep > WAI...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testConcurrentModification
testConcurrentModification
public void testConcurrentModification() throws Throwable { // Attempt to modify list of animations as the list is being iterated final ValueAnimator a0 = ValueAnimator.ofInt(100, 200).setDuration(500); final ValueAnimator a3 = ValueAnimator.ofFloat(0, 1).setDuration(500); final Valu...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testSeek
testSeek
public void testSeek() throws Throwable { final MyListener l1 = new MyListener(); final MyListener l2 = new MyListener(); final MyUpdateListener updateListener1 = new MyUpdateListener(); final MyUpdateListener updateListener2 = new MyUpdateListener(); final float a1StartFract...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testSeekWhileRunning
testSeekWhileRunning
public void testSeekWhileRunning() throws Throwable { // Seek one animator to the beginning and the other one to the end when they are running. final MyListener l1 = new MyListener(); final MyListener l2 = new MyListener(); a1.addListener(l1); a2.addListener(l2); mAct...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testEndBeforeStart
testEndBeforeStart
public void testEndBeforeStart() throws Throwable { // This test calls two animators that are not yet started. One animator has completed a // previous run but hasn't started since then, the other one has never run. When end() is // called on these two animators, we expected their animation ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testZeroDuration
testZeroDuration
public void testZeroDuration() throws Throwable { // Run two animators with zero duration, with one running forward and the other one // backward. Check that the animations start and finish with the correct end fractions. a1.setDuration(0); a2.setDuration(0); // Set a fracti...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testZeroScale
testZeroScale
public void testZeroScale() throws Throwable { // Test whether animations would end properly when the scale is forced to be zero float scale = ValueAnimator.getDurationScale(); ValueAnimator.setDurationScale(0f); // Run two animators, one of which has a start delay, after setting th...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/animation/ValueAnimatorTests.java
android.animation.ValueAnimatorTests.testReverse
testReverse
public void testReverse() throws Throwable { // Prolong animators duration so that we can do multiple checks during their run final ValueAnimator a3 = ValueAnimator.ofInt(0, 100); a1.setDuration(400); a2.setDuration(600); a3.setDuration(400); final MyListener l1 = new...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationErrorReportTest.java
android.app.ApplicationErrorReportTest.testHugeStacktraceLeadsToReasonableReport
testHugeStacktraceLeadsToReasonableReport
public void testHugeStacktraceLeadsToReasonableReport() { Throwable deepStackTrace = deepStackTrace(); CrashInfo crashInfo = new CrashInfo(deepStackTrace); assertTrue("stack trace is longer than 50'000 characters", crashInfo.stackTrace.length() < 50000); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationErrorReportTest.java
android.app.ApplicationErrorReportTest.testHugeExceptionMessageLeadsToReasonableReport
testHugeExceptionMessageLeadsToReasonableReport
public void testHugeExceptionMessageLeadsToReasonableReport() { StringBuilder msg = new StringBuilder(); for (int i = 0; i < 1000000; i++) { msg.append('x'); } CrashInfo crashInfo = new CrashInfo(new Throwable(msg.toString())); assertTrue("message is longer than...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationErrorReportTest.java
android.app.ApplicationErrorReportTest.testTruncationKeepsStartAndEndIntact
testTruncationKeepsStartAndEndIntact
public void testTruncationKeepsStartAndEndIntact() { StringBuilder msg = new StringBuilder("start"); for (int i = 0; i < 1000000; i++) { msg.append('x'); } msg.append("end"); CrashInfo crashInfo = new CrashInfo(new Throwable(msg.toString())); String exce...
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationLoadersTest.java
android.app.ApplicationLoadersTest.testGetNonExistantLib
testGetNonExistantLib
public void testGetNonExistantLib() { ApplicationLoaders loaders = new ApplicationLoaders(); assertNull(loaders.getCachedNonBootclasspathSystemLib( "/system/framework/nonexistantlib.jar", null, null, null)); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationLoadersTest.java
android.app.ApplicationLoadersTest.testCacheExistantLib
testCacheExistantLib
public void testCacheExistantLib() { ApplicationLoaders loaders = new ApplicationLoaders(); SharedLibraryInfo libA = createLib(LIB_A); loaders.createAndCacheNonBootclasspathSystemClassLoaders(Lists.newArrayList(libA)); assertNotNull(loaders.getCachedNonBootclasspathSystemLib( ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationLoadersTest.java
android.app.ApplicationLoadersTest.testNonNullParent
testNonNullParent
public void testNonNullParent() { ApplicationLoaders loaders = new ApplicationLoaders(); SharedLibraryInfo libA = createLib(LIB_A); ClassLoader parent = ClassLoader.getSystemClassLoader(); assertNotEquals(null, parent); loaders.createAndCacheNonBootclasspathSystemClassLoade...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationLoadersTest.java
android.app.ApplicationLoadersTest.testNonNullClassLoaderNamespace
testNonNullClassLoaderNamespace
public void testNonNullClassLoaderNamespace() { ApplicationLoaders loaders = new ApplicationLoaders(); SharedLibraryInfo libA = createLib(LIB_A); loaders.createAndCacheNonBootclasspathSystemClassLoaders(Lists.newArrayList(libA)); assertNull(loaders.getCachedNonBootclasspathSystemLi...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationLoadersTest.java
android.app.ApplicationLoadersTest.testDifferentSharedLibraries
testDifferentSharedLibraries
public void testDifferentSharedLibraries() { ApplicationLoaders loaders = new ApplicationLoaders(); SharedLibraryInfo libA = createLib(LIB_A); // any other existant lib ClassLoader dep = ClassLoader.getSystemClassLoader(); ArrayList<ClassLoader> sharedLibraries = new ArrayLi...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/ApplicationLoadersTest.java
android.app.ApplicationLoadersTest.testDependentLibs
testDependentLibs
public void testDependentLibs() { ApplicationLoaders loaders = new ApplicationLoaders(); SharedLibraryInfo libA = createLib(LIB_A); SharedLibraryInfo libB = createLib(LIB_DEP_A); libB.addDependency(libA); loaders.createAndCacheNonBootclasspathSystemClassLoaders( ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testHistoricalNotificationBuilder
testHistoricalNotificationBuilder
public void testHistoricalNotificationBuilder() { String expectedPackage = "package"; String expectedChannelName = "channelName"; String expectedChannelId = "channelId"; int expectedUid = 1123456; int expectedUserId = 11; long expectedPostTime = 987654321; Str...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testAddNotificationToWrite
testAddNotificationToWrite
public void testAddNotificationToWrite() { NotificationHistory history = new NotificationHistory(); HistoricalNotification n = getHistoricalNotification(0); HistoricalNotification n2 = getHistoricalNotification(1); history.addNotificationToWrite(n2); history.addNotificationT...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testAddNotificationsToWrite
testAddNotificationsToWrite
public void testAddNotificationsToWrite() { NotificationHistory history = new NotificationHistory(); HistoricalNotification n = getHistoricalNotification(3); HistoricalNotification n2 = getHistoricalNotification(1); HistoricalNotification n5 = getHistoricalNotification(0); hi...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testPoolStringsFromNotifications
testPoolStringsFromNotifications
public void testPoolStringsFromNotifications() { NotificationHistory history = new NotificationHistory(); List<String> expectedStrings = new ArrayList<>(); for (int i = 1; i <= 10; i++) { HistoricalNotification n = getHistoricalNotification(i); expectedStrings.add(n....
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testAddPooledStrings
testAddPooledStrings
public void testAddPooledStrings() { NotificationHistory history = new NotificationHistory(); List<String> expectedStrings = new ArrayList<>(); for (int i = 1; i <= 10; i++) { HistoricalNotification n = getHistoricalNotification(i); expectedStrings.add(n.getPackage()...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testRemoveNotificationsFromWrite
testRemoveNotificationsFromWrite
public void testRemoveNotificationsFromWrite() { NotificationHistory history = new NotificationHistory(); List<HistoricalNotification> postRemoveExpectedEntries = new ArrayList<>(); List<String> postRemoveExpectedStrings = new ArrayList<>(); for (int i = 1; i <= 10; i++) { ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testRemoveNotificationFromWrite
testRemoveNotificationFromWrite
public void testRemoveNotificationFromWrite() { NotificationHistory history = new NotificationHistory(); List<HistoricalNotification> postRemoveExpectedEntries = new ArrayList<>(); List<String> postRemoveExpectedStrings = new ArrayList<>(); for (int i = 1; i <= 10; i++) { ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testRemoveConversationNotificationFromWrite
testRemoveConversationNotificationFromWrite
public void testRemoveConversationNotificationFromWrite() { NotificationHistory history = new NotificationHistory(); List<HistoricalNotification> postRemoveExpectedEntries = new ArrayList<>(); List<String> postRemoveExpectedStrings = new ArrayList<>(); for (int i = 1; i <= 10; i++) ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testRemoveChannelFromWrite
testRemoveChannelFromWrite
public void testRemoveChannelFromWrite() { NotificationHistory history = new NotificationHistory(); List<HistoricalNotification> postRemoveExpectedEntries = new ArrayList<>(); Set<String> postRemoveExpectedStrings = new HashSet<>(); for (int i = 1; i <= 10; i++) { Histor...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationHistoryTest.java
android.app.NotificationHistoryTest.testParceling
testParceling
public void testParceling() { NotificationHistory history = new NotificationHistory(); List<HistoricalNotification> expectedEntries = new ArrayList<>(); for (int i = 10; i >= 1; i--) { HistoricalNotification n = getHistoricalNotification("packageName" + i, i,...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.setUp
setUp
public void setUp() { mContext = InstrumentationRegistry.getContext(); mRemoteViews = new RemoteViews( mContext.getPackageName(), R.layout.notification_template_header); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColorizedByPermission
testColorizedByPermission
public void testColorizedByPermission() { Notification n = new Notification.Builder(mContext, "test") .setFlag(FLAG_CAN_COLORIZE, true) .setColorized(true).setColor(Color.WHITE) .build(); assertTrue(n.isColorized()); n = new Notification.Build...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColorizedByForeground
testColorizedByForeground
public void testColorizedByForeground() { Notification n = new Notification.Builder(mContext, "test") .setFlag(Notification.FLAG_FOREGROUND_SERVICE, true) .setColorized(true).setColor(Color.WHITE) .build(); assertTrue(n.isColorized()); n = new...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testHasCompletedProgress_noProgress
testHasCompletedProgress_noProgress
public void testHasCompletedProgress_noProgress() { Notification n = new Notification.Builder(mContext).build(); assertFalse(n.hasCompletedProgress()); }
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testHasCompletedProgress_complete
testHasCompletedProgress_complete
public void testHasCompletedProgress_complete() { Notification n = new Notification.Builder(mContext) .setProgress(100, 100, true) .build(); Notification n2 = new Notification.Builder(mContext) .setProgress(10, 10, false) .build(); ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testHasCompletedProgress_notComplete
testHasCompletedProgress_notComplete
public void testHasCompletedProgress_notComplete() { Notification n = new Notification.Builder(mContext) .setProgress(100, 99, true) .build(); Notification n2 = new Notification.Builder(mContext) .setProgress(10, 4, false) .build(); ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testHasCompletedProgress_zeroMax
testHasCompletedProgress_zeroMax
public void testHasCompletedProgress_zeroMax() { Notification n = new Notification.Builder(mContext) .setProgress(0, 0, true) .build(); assertFalse(n.hasCompletedProgress()); }
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.largeIconMultipleReferences_keptAfterParcelling
largeIconMultipleReferences_keptAfterParcelling
public void largeIconMultipleReferences_keptAfterParcelling() { Icon originalIcon = Icon.createWithBitmap(BitmapFactory.decodeResource( mContext.getResources(), com.android.frameworks.coretests.R.drawable.test128x96)); Notification n = new Notification.Builder(mContext).setLargeIcon...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.largeIconReferenceInExtrasOnly_keptAfterParcelling
largeIconReferenceInExtrasOnly_keptAfterParcelling
public void largeIconReferenceInExtrasOnly_keptAfterParcelling() { Icon originalIcon = Icon.createWithBitmap(BitmapFactory.decodeResource( mContext.getResources(), com.android.frameworks.coretests.R.drawable.test128x96)); Notification n = new Notification.Builder(mContext).build(); ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.allPendingIntents_recollectedAfterReusingBuilder
allPendingIntents_recollectedAfterReusingBuilder
public void allPendingIntents_recollectedAfterReusingBuilder() { PendingIntent intent1 = PendingIntent.getActivity( mContext, 0, new Intent("test1"), PendingIntent.FLAG_IMMUTABLE); PendingIntent intent2 = PendingIntent.getActivity( mContext, 0, new Intent("test2"), Pe...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.allPendingIntents_containsCustomRemoteViews
allPendingIntents_containsCustomRemoteViews
public void allPendingIntents_containsCustomRemoteViews() { PendingIntent intent = PendingIntent.getActivity(mContext, 0, new Intent("test").setPackage(mContext.getPackageName()), PendingIntent.FLAG_MUTABLE); RemoteViews contentView = new RemoteViews(mContext.getPack...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.messagingStyle_isGroupConversation
messagingStyle_isGroupConversation
public void messagingStyle_isGroupConversation() { mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.P; Notification.MessagingStyle messagingStyle = new Notification.MessagingStyle("self name") .setGroupConversation(true) .setConversationTitle("test...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.messagingStyle_isGroupConversation_noConversationTitle
messagingStyle_isGroupConversation_noConversationTitle
public void messagingStyle_isGroupConversation_noConversationTitle() { mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.P; Notification.MessagingStyle messagingStyle = new Notification.MessagingStyle("self name") .setGroupConversation(true) .setCon...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.messagingStyle_isGroupConversation_withConversationTitle_legacy
messagingStyle_isGroupConversation_withConversationTitle_legacy
public void messagingStyle_isGroupConversation_withConversationTitle_legacy() { // In legacy (version < P), isGroupConversation is controlled by conversationTitle. mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.O; Notification.MessagingStyle messagingStyle = new Notific...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.messagingStyle_isGroupConversation_withoutConversationTitle_legacy
messagingStyle_isGroupConversation_withoutConversationTitle_legacy
public void messagingStyle_isGroupConversation_withoutConversationTitle_legacy() { // In legacy (version < P), isGroupConversation is controlled by conversationTitle. mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.O; Notification.MessagingStyle messagingStyle = new Noti...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.action_builder_hasDefault
action_builder_hasDefault
public void action_builder_hasDefault() { Notification.Action action = makeNotificationAction(null); assertEquals(Notification.Action.SEMANTIC_ACTION_NONE, action.getSemanticAction()); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.action_builder_setSemanticAction
action_builder_setSemanticAction
public void action_builder_setSemanticAction() { Notification.Action action = makeNotificationAction( builder -> builder.setSemanticAction(Notification.Action.SEMANTIC_ACTION_REPLY)); assertEquals(Notification.Action.SEMANTIC_ACTION_REPLY, action.getSemanticAction()); }
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.action_parcel
action_parcel
public void action_parcel() { Notification.Action action = writeAndReadParcelable( makeNotificationAction(builder -> { builder.setSemanticAction(Notification.Action.SEMANTIC_ACTION_ARCHIVE); builder.setAllowGeneratedReplies(true); })); ...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.action_clone
action_clone
public void action_clone() { Notification.Action action = makeNotificationAction( builder -> builder.setSemanticAction(Notification.Action.SEMANTIC_ACTION_DELETE)); assertEquals( Notification.Action.SEMANTIC_ACTION_DELETE, action.clone().getSemanticAct...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testBuilder_setLocusId
testBuilder_setLocusId
public void testBuilder_setLocusId() { LocusId locusId = new LocusId("4815162342"); Notification notification = new Notification.Builder(mContext, "whatever") .setLocusId(locusId).build(); assertEquals(locusId, notification.getLocusId()); Notification clone = writeAn...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testBuilder_setLocusId_null
testBuilder_setLocusId_null
public void testBuilder_setLocusId_null() { Notification notification = new Notification.Builder(mContext, "whatever") .setLocusId(null).build(); assertNull(notification.getLocusId()); Notification clone = writeAndReadParcelable(notification); assertNull(clone.getLoc...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColors_ensureColors_colorized_producesValidPalette_default
testColors_ensureColors_colorized_producesValidPalette_default
public void testColors_ensureColors_colorized_producesValidPalette_default() { validateColorizedPaletteForColor(Notification.COLOR_DEFAULT); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColors_ensureColors_colorized_producesValidPalette_blue
testColors_ensureColors_colorized_producesValidPalette_blue
public void testColors_ensureColors_colorized_producesValidPalette_blue() { validateColorizedPaletteForColor(Color.BLUE); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColors_ensureColors_colorized_producesValidPalette_red
testColors_ensureColors_colorized_producesValidPalette_red
public void testColors_ensureColors_colorized_producesValidPalette_red() { validateColorizedPaletteForColor(Color.RED); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColors_ensureColors_colorized_producesValidPalette_white
testColors_ensureColors_colorized_producesValidPalette_white
public void testColors_ensureColors_colorized_producesValidPalette_white() { validateColorizedPaletteForColor(Color.WHITE); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testColors_ensureColors_colorized_producesValidPalette_black
testColors_ensureColors_colorized_producesValidPalette_black
public void testColors_ensureColors_colorized_producesValidPalette_black() { validateColorizedPaletteForColor(Color.BLACK); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testDoesNotStripsExtenders
testDoesNotStripsExtenders
public void testDoesNotStripsExtenders() { Notification.Builder nb = new Notification.Builder(mContext, "channel"); nb.extend(new Notification.CarExtender().setColor(Color.RED)); nb.extend(new Notification.TvExtender().setChannelId("different channel")); nb.extend(new Notification.We...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testStyleChangeVisiblyDifferent_noStyles
testStyleChangeVisiblyDifferent_noStyles
public void testStyleChangeVisiblyDifferent_noStyles() { Notification.Builder n1 = new Notification.Builder(mContext, "test"); Notification.Builder n2 = new Notification.Builder(mContext, "test"); assertFalse(Notification.areStyledNotificationsVisiblyDifferent(n1, n2)); }
0
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testStyleChangeVisiblyDifferent_noStyleToStyle
testStyleChangeVisiblyDifferent_noStyleToStyle
public void testStyleChangeVisiblyDifferent_noStyleToStyle() { Notification.Builder n1 = new Notification.Builder(mContext, "test"); Notification.Builder n2 = new Notification.Builder(mContext, "test") .setStyle(new Notification.BigTextStyle()); assertTrue(Notification.areSt...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testStyleChangeVisiblyDifferent_styleToNoStyle
testStyleChangeVisiblyDifferent_styleToNoStyle
public void testStyleChangeVisiblyDifferent_styleToNoStyle() { Notification.Builder n2 = new Notification.Builder(mContext, "test"); Notification.Builder n1 = new Notification.Builder(mContext, "test") .setStyle(new Notification.BigTextStyle()); assertTrue(Notification.areSt...
1
0
0
android_frameworks_base/services
core/tests/coretests/src/android/app/NotificationTest.java
android.app.NotificationTest.testStyleChangeVisiblyDifferent_changeStyle
testStyleChangeVisiblyDifferent_changeStyle
public void testStyleChangeVisiblyDifferent_changeStyle() { Notification.Builder n1 = new Notification.Builder(mContext, "test") .setStyle(new Notification.InboxStyle()); Notification.Builder n2 = new Notification.Builder(mContext, "test") .setStyle(new Notification.B...
1
0
0
End of preview.
README.md exists but content is empty.
Downloads last month
8