auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.String decode ( java.lang.String s , java.lang.String encoding ) throws java.io.UnsupportedEncodingException { return libcore.net.UriCodec.decode ( s , true , java.nio.charset.Charset.forName ( encoding ) , true ) ; }

Target:
public static java.lang.String decode ( java.lang.String s , java.lang.String charsetName ) throws java.io.UnsupportedEncodingException { return libcore.net.UriCodec.decode ( s , true , java.nio.charset.Charset.forName ( charsetName ) , true ) ; }
Source:
java.util.List < com.android.dialer.rtt.RttTranscriptMessage > getRttTranscriptMessageList ( ) { return com.android.incallui.rtt.impl.RttChatMessage.toTranscriptMessageList ( rttMessages ) ; }

Target:
java.util.List < com.android.dialer.rtt.RttTranscriptMessage > getRttTranscriptMessageList ( ) { return com.android.incallui.rtt.protocol.RttChatMessage.toTranscriptMessageList ( rttMessages ) ; }
Source:
static void log ( java.lang.String s ) { android.util.Log.v ( com.android.internal.telephony.mockril.MockRilTest.TAG , s ) ; }

Target:
static void log ( java.lang.String s ) { android.telephony.Rlog.v ( com.android.internal.telephony.mockril.MockRilTest.TAG , s ) ; }
Source:
public final void testEquals_UnknownObject ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Point p = new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( 1 , 2 ) ; assertFalse ( p.equals ( new java.lang.Object ( ) ) ) ; }

Target:
public final void testEquals_UnknownObject ( ) { com.android.ide.common.api.Point p = new com.android.ide.common.api.Point ( 1 , 2 ) ; assertFalse ( p.equals ( new java.lang.Object ( ) ) ) ; }
Source:
public native short getShort ( long address ) ;

Target:
public native short getShort$ ( long address ) ;
Source:
public void removePeriodicSync ( android.accounts.Account account , java.lang.String providerName , android.os.Bundle extras ) { updateOrRemovePeriodicSync ( account , providerName , extras , 0 , false ) ; }

Target:
public void removeAuthority ( android.accounts.Account account , int userId , java.lang.String authority ) { synchronized ( mAuthorities ) { removeAuthorityLocked ( account , userId , authority , true ) ; } }
Source:
public void setResult ( java.lang.String resultFormat , java.lang.Object ... args ) { mAutomaticallyCloseOnTaskCompletion = false ; super . setResult ( resultFormat , args ) ; }

Target:
public void logError ( java.lang.String format , java.lang.Object ... args ) { mAutomaticallyCloseOnTaskCompletion = false ; super . logError ( format , args ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onDeviceConfigChange ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onDockChange ( ) ; }
Source:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { setHelpAvailable ( false ) ; org.eclipse.jface.resource.ImageDescriptor desc = com.android.ide.eclipse.adt.AdtPlugin.getImageDescriptor ( com.android.ide.eclipse.adt.internal.wizards.newproject.ImportProjectWizard.PROJECT_LOGO_LARGE ) ; setDefaultPageImageDescriptor ( desc ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . refreshSdk ( ) ; }

Target:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { mSelection = selection ; setHelpAvailable ( false ) ; org.eclipse.jface.resource.ImageDescriptor desc = com.android.ide.eclipse.adt.AdtPlugin.getImageDescriptor ( com.android.ide.eclipse.adt.internal.wizards.newproject.ImportProjectWizard.PROJECT_LOGO_LARGE ) ; setDefaultPageImageDescriptor ( desc ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . refreshSdk ( ) ; }
Source:
private java.io.File getTestDir ( ) { java.io.File rootDir = getRootDir ( ) ; return new java.io.File ( rootDir , "tests" ) ; }

Target:
private java.io.File getTestDir ( @ com.android.annotations.NonNull java.lang.String testFolder ) { java.io.File rootDir = getRootDir ( ) ; return new java.io.File ( new java.io.File ( rootDir , "tests" ) , testFolder ) ; }
Source:
public int getItemCount ( ) { return rttMessages.size ( ) ; }

Target:
public int getItemCount ( ) { return shouldShowAdvisory ? ( rttMessages.size ( ) ) + 1 : rttMessages.size ( ) ; }
Source:
private static int translateErrorsFromCamera1 ( int errorCode ) { switch ( errorCode ) { case android.hardware.camera2.utils.CameraBinderDecorator.EACCES : return android.hardware.camera2.utils.CameraBinderDecorator.PERMISSION_DENIED ; default : return errorCode ; } }

Target:
private static int translateErrorsFromCamera1 ( int errorCode ) { if ( errorCode == ( - ( android.system.OsConstants.EACCES ) ) ) { return android.hardware.camera2.utils.CameraBinderDecorator.PERMISSION_DENIED ; } return errorCode ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { validatePage ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { validatePage ( ) ; mFlatten.setVisible ( mTypeCombo.getText ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_RELATIVE_LAYOUT ) ) ; }
Source:
public void register ( android.content.Context context ) { final android.content.ContentResolver resolver = context.getContentResolver ( ) ; resolver.registerContentObserver ( Settings.Secure.getUriFor ( Settings.Secure.DATA_ROAMING ) , false , this ) ; }

Target:
public void register ( android.content.Context context ) { final android.content.ContentResolver resolver = context.getContentResolver ( ) ; resolver.registerContentObserver ( Settings.Global.getUriFor ( Settings.Global.DATA_ROAMING ) , false , this ) ; }
Source:
public static native java.lang.String getBestDateTimePattern ( java.lang.String skeleton , java.lang.String localeName ) ;

Target:
private static native java.lang.String getBestDateTimePatternNative ( java.lang.String skeleton , java.lang.String localeName ) ;
Source:
com.ibm.icu.text.DigitList toDigitList ( double number ) { com.ibm.icu.text.DigitList result = new com.ibm.icu.text.DigitList ( ) ; result.set ( number , precision ( false ) , false ) ; return result ; }

Target:
public java.lang.StringBuffer format ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition ) { com.ibm.icu.impl.number.FormatQuantity4 fq = new com.ibm.icu.impl.number.FormatQuantity4 ( number ) ; formatter.format ( fq , result , fieldPosition ) ; fq.populateUFieldPosition ( fieldPosition ) ; return result ; }
Source:
public com.android.ims.ImsCallProfile getCallProfile ( ) throws android.os.RemoteException { return null ; }

Target:
public android.telephony.ims.ImsCallProfile getLocalCallProfile ( ) { return null ; }
Source:
public void registerTaskStackListener ( android.app.ITaskStackListener listener ) throws android.os.RemoteException { synchronized ( this ) { if ( listener != null ) { mTaskStackListeners.register ( listener ) ; } } }

Target:
public void registerTaskStackListener ( android.app.ITaskStackListener listener ) throws android.os.RemoteException { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "registerTaskStackListener()" ) ; synchronized ( this ) { if ( listener != null ) { mTaskStackListeners.register ( listener ) ; } } }
Source:
public static void setLibraryLoaderForTesting ( org.chromium.base.library_loader.LibraryLoader loader ) { org.chromium.base.library_loader.LibraryLoader.sInstance = loader ; }

Target:
private static boolean isAbiSplit ( java.lang.String splitName ) { return splitName.startsWith ( "abi_" ) ; }
Source:
public void setup ( ) { put ( "KeyFactory.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Signature.FOO SupportedKeyClasses" , ( ( getClass ( ) . getName ( ) ) + ".UninitializedMockKey" ) ) ; }
Source:
public com.google.common.collect.ImmutableCollection < V > removeAll ( java.lang.Object key ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void clear ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private java.io.File getTimeZoneDataApkFile ( java.lang.String testId ) throws java.lang.Exception { java.lang.String resourceName = getTimeZoneDataApkResourceName ( testId ) ; return extractResourceToFile ( resourceName ) ; }

Target:
public void setBuild ( com.android.tradefed.build.IBuildInfo buildInfo ) { mBuildInfo = buildInfo ; }
Source:
public void disconnect ( ) { try { channelImpl.disconnect ( ) ; } catch ( java.io.IOException e ) { } super . disconnect ( ) ; }

Target:
public void disconnect ( ) { super . disconnect ( ) ; channelImpl.onDisconnect ( false ) ; }
Source:
public final int toInt ( ) { return address ; }

Target:
public final long toLong ( ) { return address ; }
Source:
public void onSkipToQueueItem ( long queueId ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "onSkipToQueueItem" ) ; }

Target:
public void onFastForward ( ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "onFastForward" ) ; mAvrcpCommandQueue.obtainMessage ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.MSG_AVRCP_PASSTHRU , AvrcpControllerService.PASS_THRU_CMD_ID_FF ) . sendToTarget ( ) ; }
Source:
public void run ( ) { onInitializeAccessibilityNodeInfo ( info ) ; }

Target:
public void run ( ) { onInitializeAccessibilityEvent ( event ) ; }
Source:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; }
Source:
public void testValidateAnyIntent ( ) { intento.internalIntended ( android.support.test.espresso.intent.matcher.IntentMatchers.anyIntent ( ) , android.support.test.espresso.intent.Intents.times ( 1 ) , com.google.common.collect.Lists.newArrayList ( android.support.test.espresso.intent.IntentsTest.buildVerifiableIntent ( Intent.ACTION_VIEW , "com.google.some.package" ) ) ) ; }

Target:
public void validateAnyIntent ( ) { intento.internalIntended ( android.support.test.espresso.intent.matcher.IntentMatchers.anyIntent ( ) , android.support.test.espresso.intent.Intents.times ( 1 ) , com.google.common.collect.Lists.newArrayList ( android.support.test.espresso.intent.IntentsTest.buildVerifiableIntent ( Intent.ACTION_VIEW , "com.google.some.package" ) ) ) ; }
Source:
protected void checkSupportedMode ( org.conscrypt.OpenSSLCipher.Mode mode ) throws java.security.NoSuchAlgorithmException { switch ( mode ) { case CBC : return ; default : throw new java.security.NoSuchAlgorithmException ( ( "Unsupported mode " + ( mode.toString ( ) ) ) ) ; } }

Target:
protected void checkSupportedMode ( org.conscrypt.OpenSSLCipher.Mode mode ) throws java.security.NoSuchAlgorithmException { if ( mode != ( org.conscrypt.OpenSSLCipher.Mode.CBC ) ) { throw new java.security.NoSuchAlgorithmException ( ( "Unsupported mode " + ( mode.toString ( ) ) ) ) ; } }
Source:
public void addCharacteristic ( int serverIf , android.os.ParcelUuid charId , int properties , int permissions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.addCharacteristic ( serverIf , charId.getUuid ( ) , properties , permissions ) ; }

Target:
public void addService ( int serverIf , android.bluetooth.BluetoothGattService svc ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.addService ( serverIf , svc ) ; }
Source:
public void run ( ) { this . onChange ( mSelfChange , mUri , mUserId ) ; }

Target:
public void run ( ) { synchronized ( mLock ) { if ( ( mTransport ) == null ) { return ; } } this . onChange ( mSelfChange , mUri , mUserId ) ; }
Source:
java.lang.String getName ( ) { return variantConfiguration.getFullName ( ) ; }

Target:
public java.lang.String getApplicationId ( ) { return variantConfiguration.getApplicationId ( ) ; }
Source:
public void setPhoneType ( int type ) { int phoneId = android.telephony.TelephonyManager.getDefaultPhone ( ) ; setPhoneType ( phoneId , type ) ; }

Target:
public void setPhoneType ( int type ) { int phoneId = getPhoneId ( ) ; setPhoneType ( phoneId , type ) ; }
Source:
static long $opt$DoubleToLong ( double a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }

Target:
static long $opt$noinline$DoubleToLong ( double a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }
Source:
public static org.junit.runner.Description createTestDescription ( java.lang.Class < ? > clazz , java.lang.String name ) { return org.junit.runner.Description.createTestDescription ( clazz , name , new java.lang.annotation.Annotation [ 0 ] ) ; }

Target:
public static org.junit.runner.Description createTestDescription ( java.lang.String className , java.lang.String name , java.io.Serializable uniqueId ) { return new org.junit.runner.Description ( null , org.junit.runner.Description.formatDisplayName ( name , className ) , uniqueId ) ; }
Source:
public void test_he ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex he = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "he" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( he , "פרידמן" , "פ" ) ; }

Target:
public void test_he ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex he = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "he" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( he , "פרידמן" , "פ" ) ; }
Source:
static com.android.manifmerger.XmlDocument xmlDocumentFromString ( @ com.android.annotations.NonNull com.android.manifmerger.KeyResolver < java.lang.String > selectors , @ com.android.annotations.NonNull com.android.manifmerger.XmlLoader.SourceLocation location , java.lang.String input ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { return com.android.manifmerger.XmlLoader.load ( selectors , com.android.manifmerger.TestUtils.NO_PROPERTY_RESOLVER , location , input , XmlDocument.Type.LIBRARY ) ; }

Target:
static com.android.manifmerger.XmlDocument xmlDocumentFromString ( @ com.android.annotations.NonNull com.android.manifmerger.KeyResolver < java.lang.String > selectors , @ com.android.annotations.NonNull com.android.manifmerger.XmlLoader.SourceLocation location , java.lang.String input ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { return com.android.manifmerger.XmlLoader.load ( selectors , com.android.manifmerger.TestUtils.NO_PROPERTY_RESOLVER , location , input , XmlDocument.Type.LIBRARY , com.google.common.base.Optional.< java.lang.String > absent ( ) ) ; }
Source:
public com.google.common.base.CharMatcher or ( com.google.common.base.CharMatcher other ) { return other.matches ( match ) ? com.google.common.base.CharMatcher.ANY : this ; }

Target:
public com.google.common.base.CharMatcher and ( com.google.common.base.CharMatcher other ) { return other.matches ( match ) ? this : com.google.common.base.CharMatcher.NONE ; }
Source:
public void testBroken2 ( ) throws java.lang.Exception { assertEquals ( "AndroidManifest.xml:12: Warning: Exported service does not require permission" , lintProject ( "exportservice1.xml=>AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }

Target:
public void testBroken2 ( ) throws java.lang.Exception { assertEquals ( "AndroidManifest.xml:12: Warning: Exported service does not require permission" , lintProject ( "exportservice2.xml=>AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }
Source:
public com.android.jack.dx.io.Code readCode ( com.android.jack.dx.io.ClassData.Method method ) { int offset = method.getCodeOffset ( ) ; if ( offset == 0 ) { throw new java.lang.IllegalArgumentException ( "offset == 0" ) ; } return open ( offset ) . readCode ( ) ; }

Target:
public com.android.jack.dx.io.Code readCode ( com.android.jack.dx.io.ClassData.Method method ) { int offset = method.getCodeOffset ( ) ; if ( offset == 0 ) { throw new java.lang.IllegalArgumentException ( "offset == 0" ) ; } return openInternal ( offset ) . readCode ( ) ; }
Source:
public abstract java.io.File [ ] listFiles ( @ com.android.annotations.NonNull java.io.File file ) ;

Target:
java.io.InputStream newFileInputStream ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.FileNotFoundException ;
Source:
public int getTargetSdkVersion ( ) { return mTargetSdkVersion ; }

Target:
public com.android.builder.model.ApiVersion getTargetSdkVersion ( ) { return mTargetSdkVersion ; }
Source:
public ActivityManager.TaskThumbnail getTaskThumbnail ( int id ) { synchronized ( this ) { enforceCallingPermission ( android.Manifest.permission.READ_FRAME_BUFFER , "getTaskThumbnail()" ) ; com.android.server.am.TaskRecord tr = recentTaskForIdLocked ( id ) ; if ( tr != null ) { return tr.getTaskThumbnailLocked ( ) ; } } return null ; }

Target:
public ActivityManager.TaskThumbnail getTaskThumbnail ( int id ) { synchronized ( this ) { enforceCallingPermission ( android.Manifest.permission.READ_FRAME_BUFFER , "getTaskThumbnail()" ) ; com.android.server.am.TaskRecord tr = mStackSupervisor.anyTaskForIdLocked ( id ) ; if ( tr != null ) { return tr.getTaskThumbnailLocked ( ) ; } } return null ; }
Source:
public java.lang.Object opt ( java.lang.String name ) { return nameValuePairs.get ( name ) ; }

Target:
public boolean isNull ( java.lang.String name ) { java.lang.Object value = nameValuePairs.get ( name ) ; return ( value == null ) || ( value == ( org.json.JSONObject.NULL ) ) ; }
Source:
public void run ( ) { mAppCallback.onError ( errorCode , message ) ; }

Target:
public void run ( ) { long token = android.os.Binder.clearCallingIdentity ( ) ; try { mAppCallback.onError ( errorCode , message ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public static long ReturnLong33 ( ) { int imm = Main.$inline$int ( 33 ) ; return ( ( long ) ( imm ) ) ; }

Target:
public static double ReturnDouble33 ( ) { int imm = 33 ; return ( ( double ) ( imm ) ) ; }
Source:
synchronized boolean isNetdAlive ( ) { try { final android.net.INetd netd = getNetdInstance ( ) ; if ( netd == null ) { return false ; } return netd.isAlive ( ) ; } catch ( android.os.RemoteException re ) { return false ; } }

Target:
synchronized boolean isNetdAlive ( ) { try { final android.net.INetd netd = mSrvConfig.getNetdInstance ( ) ; if ( netd == null ) { return false ; } return netd.isAlive ( ) ; } catch ( android.os.RemoteException re ) { return false ; } }
Source:
public android.net.IpSecTransform.Builder setNattKeepalive ( int intervalSeconds ) { mConfig.setNattKeepaliveInterval ( intervalSeconds ) ; return this ; }

Target:
public android.net.IpSecTransform.Builder setEncryption ( @ android.annotation.NonNull android.net.IpSecAlgorithm algo ) { com.android.internal.util.Preconditions.checkNotNull ( algo ) ; mConfig.setEncryption ( algo ) ; return this ; }
Source:
public void test_factory_CalendricalObject ( ) { org.testng.Assert.assertEquals ( java.time.MonthDay.from ( java.time.LocalDate.of ( 2007 , 7 , 15 ) ) , TEST_07_15 ) ; }

Target:
public void test_factory_CalendricalObject ( ) { org.testng.Assert.assertEquals ( java.time.MonthDay.from ( java.time.LocalDate.of ( 2007 , 7 , 15 ) ) , tck.java.time.TCKMonthDay.TEST_07_15 ) ; }
Source:
public com.android.tools.lint.client.api.Configuration createConfigurationFromFile ( java.io.File file ) { return new com.android.tools.lint.LintCliClient.CliConfiguration ( file ) ; }

Target:
public com.android.tools.lint.client.api.Configuration createConfigurationFromFile ( java.io.File file ) { return new com.android.tools.lint.LintCliClient.CliConfiguration ( file , mFlags.isFatalOnly ( ) ) ; }
Source:
public java.lang.Object [ ] getElements ( java.lang.Object inputElement ) { if ( inputElement instanceof com.android.ddmlib.AndroidDebugBridge ) { return ( ( com.android.ddmlib.AndroidDebugBridge ) ( inputElement ) ) . getDevices ( ) ; } return new java.lang.Object [ 0 ] ; }

Target:
public java.lang.Object [ ] getElements ( java.lang.Object inputElement ) { if ( inputElement instanceof com.android.ddmlib.AndroidDebugBridge ) { return findCompatibleDevices ( ( ( com.android.ddmlib.AndroidDebugBridge ) ( inputElement ) ) . getDevices ( ) ) ; } return new java.lang.Object [ 0 ] ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearFailedTestCaseCount ( ) { bitField0_ = ( bitField0_ ) & ( ~ 8192 ) ; failedTestCaseCount_ = 0 ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearBuildVendorFingerprint ( ) { bitField0_ = ( bitField0_ ) & ( ~ 8192 ) ; buildVendorFingerprint_ = com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance ( ) . getBuildVendorFingerprint ( ) ; onChanged ( ) ; return this ; }
Source:
public void testMakeTimeZone_notFound ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertNull ( data.makeTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; }

Target:
public void testMakeTimeZone_notFound ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertNull ( data.makeTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; assertFalse ( data.hasTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; }
Source:
public static android.net.MacAddress getRandomAddress ( ) { return android.net.MacAddress.getRandomAddress ( android.net.MacAddress.BASE_ANDROID_MAC , new java.util.Random ( ) ) ; }

Target:
public static android.net.MacAddress createRandomUnicastAddress ( ) { return android.net.MacAddress.createRandomUnicastAddress ( android.net.MacAddress.BASE_GOOGLE_MAC , new java.util.Random ( ) ) ; }
Source:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVDirLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVFileLocation ( parent , path ) ; }
Source:
public < A extends java.lang.annotation.Annotation > A getAnnotation ( java.lang.Class < A > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return getAnnotationNative ( annotationType ) ; }

Target:
public boolean isAnnotationPresent ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return libcore.reflect.AnnotationAccess.isDeclaredAnnotationPresent ( this , annotationType ) ; }
Source:
public void onDiskTooSlow ( ) { sendMessage ( com.android.tv.tuner.tvinput.TunerSessionWorker.MSG_RETRY_PLAYBACK , mPlayer ) ; }

Target:
public void onDiskTooSlow ( ) { mTrickplayDisabled = true ; sendMessage ( com.android.tv.tuner.tvinput.TunerSessionWorker.MSG_RETRY_PLAYBACK , java.lang.System.identityHashCode ( mPlayer ) ) ; }
Source:
public static int fromKeymaster ( int origin ) { switch ( origin ) { case android.security.keymaster.KeymasterDefs.KM_ORIGIN_HARDWARE : return android.security.KeyStoreKeyProperties.Origin.GENERATED ; case android.security.keymaster.KeymasterDefs.KM_ORIGIN_IMPORTED : return android.security.KeyStoreKeyProperties.Origin.IMPORTED ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown origin: " + origin ) ) ; } }

Target:
public static int fromKeymaster ( int origin ) { switch ( origin ) { case android.security.keymaster.KeymasterDefs.KM_ORIGIN_GENERATED : return android.security.KeyStoreKeyProperties.Origin.GENERATED ; case android.security.keymaster.KeymasterDefs.KM_ORIGIN_IMPORTED : return android.security.KeyStoreKeyProperties.Origin.IMPORTED ; case android.security.keymaster.KeymasterDefs.KM_ORIGIN_UNKNOWN : return android.security.KeyStoreKeyProperties.Origin.UNKNOWN ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown origin: " + origin ) ) ; } }
Source:
public void enter ( ) { super . enter ( ) ; sendMessageDelayed ( com.android.bluetooth.hfp.HeadsetStateMachine.CONNECT_TIMEOUT , mCurrentDevice , com.android.bluetooth.hfp.HeadsetStateMachine.sConnectTimeoutMillis ) ; }

Target:
public void enter ( ) { super . enter ( ) ; sendMessageDelayed ( com.android.bluetooth.hfp.HeadsetStateMachine.CONNECT_TIMEOUT , mCurrentDevice , com.android.bluetooth.hfp.HeadsetStateMachine.sConnectTimeoutMillis ) ; broadcastStateTransitions ( ) ; }
Source:
public static float signum ( float f ) { return sun.misc.FpUtils.signum ( f ) ; }

Target:
public static float signum ( float f ) { return ( f == 0.0F ) || ( java.lang.Float.isNaN ( f ) ) ? f : java.lang.Math.copySign ( 1.0F , f ) ; }
Source:
public static java.lang.String toString ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return new java.lang.String ( com.google.common.io.Files.toByteArray ( file ) , charset.name ( ) ) ; }

Target:
public static com.google.common.io.CharSource asCharSource ( java.io.File file , java.nio.charset.Charset charset ) { return com.google.common.io.Files.asByteSource ( file ) . asCharSource ( charset ) ; }
Source:
public void testGetNewValue ( ) { assertEquals ( ".Foo$Bar" , com.android.tools.lint.checks.MissingClassDetector.getNewValue ( com.android.tools.lint.checks.MissingClassDetector.INNERCLASS , "Use \'$\' instead of \'.\' for inner classes (or use only lowercase letters in package names); replace \".Foo.Bar\" with \".Foo$Bar\" [InnerclassSeparator]" ) ) ; }

Target:
public void testGetNewValue ( ) { assertEquals ( ".Foo$Bar" , com.android.tools.lint.checks.MissingClassDetector.getNewValue ( com.android.tools.lint.checks.MissingClassDetector.INNERCLASS , "Use \'$\' instead of \'.\' for inner classes (or use only lowercase letters in package names); replace \".Foo.Bar\" with \".Foo$Bar\" [InnerclassSeparator]" , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; }
Source:
static byte $opt$ShortToByte ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( byte ) ( a ) ) ; }

Target:
static byte $opt$noinline$ShortToByte ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( byte ) ( a ) ) ; }
Source:
public static long mulPow2Minus1 ( long arg ) { return arg * 31 ; }

Target:
public static long $noinline$mulPow2Minus1 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg * 31 ; }
Source:
public TestCaseBuilder addCanvasClient ( android.uirendering.cts.testinfrastructure.CanvasClient canvasClient ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder addCanvasClientWithoutUsingPicture ( android.uirendering.cts.testinfrastructure.CanvasClient canvasClient , boolean useHardware ) { return addCanvasClientInternal ( null , canvasClient , useHardware , false ) ; }
Source:
protected com.android.internal.telephony.Connection dialInternal ( java.lang.String dialString , com.android.internal.telephony.UUSInfo uusInfo , int videoState , android.os.Bundle intentExtras ) throws com.android.internal.telephony.CallStateException { return dialInternal ( dialString , uusInfo , videoState , intentExtras , null ) ; }

Target:
protected com.android.internal.telephony.Connection dialInternal ( java.lang.String dialString , com.android.internal.telephony.DialArgs dialArgs ) throws com.android.internal.telephony.CallStateException { return dialInternal ( dialString , dialArgs , null ) ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( commandNumber ) ; dest.writeInt ( typeOfCommand ) ; dest.writeInt ( commandQualifier ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( ( compRequired ? 1 : 0 ) ) ; dest.writeInt ( commandNumber ) ; dest.writeInt ( typeOfCommand ) ; dest.writeInt ( commandQualifier ) ; }
Source:
public proguard.evaluation.value.DoubleValue createDoubleValue ( double value ) { return ( value == 0.0 ) && ( ( java.lang.Double.doubleToLongBits ( value ) ) == ( proguard.evaluation.value.SpecificValueFactory.POS_ZERO_DOUBLE_BITS ) ) ? proguard.evaluation.value.SpecificValueFactory.DOUBLE_VALUE_0 : value == 1.0 ? proguard.evaluation.value.SpecificValueFactory.DOUBLE_VALUE_1 : new proguard.evaluation.value.ParticularDoubleValue ( value ) ; }

Target:
public proguard.evaluation.value.DoubleValue createDoubleValue ( double value ) { return ( value == 0.0 ) && ( ( java.lang.Double.doubleToLongBits ( value ) ) == ( proguard.evaluation.value.ParticularValueFactory.POS_ZERO_DOUBLE_BITS ) ) ? proguard.evaluation.value.ParticularValueFactory.DOUBLE_VALUE_0 : value == 1.0 ? proguard.evaluation.value.ParticularValueFactory.DOUBLE_VALUE_1 : new proguard.evaluation.value.ParticularDoubleValue ( value ) ; }
Source:
long storedPermitsToWaitTime ( double storedPermits , double permitsToTake ) { return 0L ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "RateLimiter[stableRate=%3.1fqps]" , getRate ( ) ) ; }
Source:
public void copy1DRangeFrom ( int off , int count , long [ ] d ) { validateIsInt64 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; }

Target:
public void copyFrom ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void onLayoutChange ( android.view.View v , int left , int top , int right , int bottom , int oldLeft , int oldTop , int oldRight , int oldBottom ) { updateHeight ( ) ; }

Target:
public void run ( ) { animateNewContent ( ) ; }
Source:
public void testGetServiceComponentBeforeConnection ( ) { mConnectionCallback.resetCounts ( ) ; createMediaBrowser ( android.media.cts.MediaBrowserTest.TEST_BROWSER_SERVICE ) ; try { android.content.ComponentName serviceComponent = mMediaBrowser.getServiceComponent ( ) ; fail ( ) ; } catch ( java.lang.IllegalStateException e ) { } }

Target:
public void testGetServiceComponentBeforeConnection ( ) { resetCallbacks ( ) ; createMediaBrowser ( android.media.cts.MediaBrowserTest.TEST_BROWSER_SERVICE ) ; try { android.content.ComponentName serviceComponent = mMediaBrowser.getServiceComponent ( ) ; fail ( ) ; } catch ( java.lang.IllegalStateException e ) { } }
Source:
public static com.android.dialer.app.calllog.IntentProvider getDuoVideoIntentProvider ( java.lang.String number ) { return new com.android.dialer.app.calllog.IntentProvider ( ) { @ java.lang.Override public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.duo.DuoComponent.get ( context ) . getDuo ( ) . getCallIntent ( number ) . orNull ( ) ; } } ; }

Target:
public void logInteraction ( android.content.Context context ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_VIDEO_REQUESTED_FROM_CALL_LOG ) ; if ( isNonContact ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_NON_CONTACT_VIDEO_REQUESTED_FROM_CALL_LOG ) ; } }
Source:
public static float getMdpiScaleFactor ( com.android.resources.Density density ) { if ( density == ( com.android.resources.Density.ANYDPI ) ) { density = com.android.resources.Density.XXHIGH ; } return ( density.getDpiValue ( ) ) / ( ( float ) ( Density.MEDIUM.getDpiValue ( ) ) ) ; }

Target:
public static float getMdpiScaleFactor ( com.android.resources.Density density ) { if ( density == ( com.android.resources.Density.ANYDPI ) ) { density = com.android.resources.Density.XXXHIGH ; } return ( density.getDpiValue ( ) ) / ( ( float ) ( Density.MEDIUM.getDpiValue ( ) ) ) ; }
Source:
private void onDisconnected ( android.content.ComponentName disconnectedComponent ) { com.android.server.telecom.Log.i ( this , "onDisconnected from %s" , disconnectedComponent ) ; mInCallServices.remove ( disconnectedComponent ) ; }

Target:
private void onDisconnected ( android.content.ComponentName disconnectedComponent ) { android.telecom.Log.i ( this , "onDisconnected from %s" , disconnectedComponent ) ; mInCallServices.remove ( disconnectedComponent ) ; }
Source:
public void setView ( int type , int i ) { }

Target:
public void setView ( int type , int i ) { throw new java.lang.UnsupportedOperationException ( "No views without vertexColors, please!" ) ; }
Source:
public static void finalizeAllEnqueued ( ) throws java.lang.InterruptedException { java.lang.ref.FinalizerReference.Sentinel sentinel ; do { sentinel = new java.lang.ref.FinalizerReference.Sentinel ( ) ; } while ( ! ( java.lang.ref.FinalizerReference.enqueueSentinelReference ( sentinel ) ) ) ; sentinel.awaitFinalization ( ) ; }

Target:
public static void finalizeAllEnqueued ( long timeout ) throws java.lang.InterruptedException { java.lang.ref.FinalizerReference.Sentinel sentinel ; do { sentinel = new java.lang.ref.FinalizerReference.Sentinel ( ) ; } while ( ! ( java.lang.ref.FinalizerReference.enqueueSentinelReference ( sentinel ) ) ) ; sentinel.awaitFinalization ( timeout ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onSelected ( b.getSelection ( ) ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onSelected ( mButton.getSelection ( ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( "TypeLocater{" + "packageMatcher=" ) + ( packageMatcher ) ) + ", classNameElements=" ) + ( classNameElements ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( "TypeLocator{" + "packageMatcher=" ) + ( packageMatcher ) ) + ", classNameElements=" ) + ( classNameElements ) ) + '}' ; }
Source:
public void registerTextAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.TextAnnotationGutterProvider provider ) { myTextAnnotationGutters.add ( provider ) ; myTextAnnotationGutterSizes.add ( 0 ) ; updateSize ( ) ; }

Target:
public void registerTextAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.TextAnnotationGutterProvider provider , @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.EditorGutterAction action ) { myTextAnnotationGutters.add ( provider ) ; myProviderToListener.put ( provider , action ) ; myTextAnnotationGutterSizes.add ( 0 ) ; updateSize ( ) ; }
Source:
private static synchronized java.lang.Object getFromCache ( sun.security.util.Cache cache , byte [ ] encoding ) { java.lang.Object key = new sun.security.util.Cache.EqualByteArray ( encoding ) ; java.lang.Object value = cache.get ( key ) ; return value ; }

Target:
private static synchronized < K , V > V getFromCache ( sun.security.util.Cache < K , V > cache , byte [ ] encoding ) { java.lang.Object key = new sun.security.util.Cache.EqualByteArray ( encoding ) ; return cache.get ( key ) ; }
Source:
public static java.nio.LongBuffer allocate ( int capacity ) { if ( capacity < 0 ) { throw new java.lang.IllegalArgumentException ( ( "capacity < 0: " + capacity ) ) ; } return new java.nio.ReadWriteLongArrayBuffer ( capacity ) ; }

Target:
public static java.nio.LongBuffer allocate ( int capacity ) { if ( capacity < 0 ) { throw new java.lang.IllegalArgumentException ( ( "capacity < 0: " + capacity ) ) ; } return new java.nio.LongArrayBuffer ( new long [ capacity ] ) ; }
Source:
public void testAddNetworkBeforeLoadFromStore ( ) { android.net.wifi.WifiConfiguration openNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; assertFalse ( mWifiConfigManager.addOrUpdateNetwork ( openNetwork , com.android.server.wifi.WifiConfigManagerTest.TEST_CREATOR_UID ) . isSuccess ( ) ) ; }

Target:
public void testAddNetworkIsRejectedBeforeLoadFromStore ( ) { android.net.wifi.WifiConfiguration openNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; assertFalse ( mWifiConfigManager.addOrUpdateNetwork ( openNetwork , com.android.server.wifi.WifiConfigManagerTest.TEST_CREATOR_UID ) . isSuccess ( ) ) ; }
Source:
public void testIncorrectReplace ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.sdklib.mock.MockLog mockLog = new com.android.sdklib.mock.MockLog ( ) ; java.lang.String input = "" + ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:tools=\"http://schemas.android.com/tools\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + "\n" ) + " <activity android:name=\"activityOne\" " ) + " tools:replace=\"exported\"/>\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument xmlDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testIncorrectRemove" ) , input ) ; com.android.manifmerger.MergingReport.Builder mergingReport = new com.android.manifmerger.MergingReport.Builder ( mockLog ) ; com.android.manifmerger.MergingReport.Result validated = com.android.manifmerger.PreValidator.validate ( mergingReport , xmlDocument ) ; assertEquals ( MergingReport.Result.ERROR , validated ) ; assertStringPresenceInLogRecords ( mergingReport , "tools:replace" ) ; }

Target:
public void testIncorrectReplace ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.sdklib.mock.MockLog mockLog = new com.android.sdklib.mock.MockLog ( ) ; java.lang.String input = "" + ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:tools=\"http://schemas.android.com/tools\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + "\n" ) + " <activity android:name=\"activityOne\" " ) + " tools:replace=\"exported\"/>\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument xmlDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testIncorrectRemove" ) , input ) ; com.android.manifmerger.MergingReport.Builder mergingReport = new com.android.manifmerger.MergingReport.Builder ( mockLog ) ; com.android.manifmerger.MergingReport.Result validated = com.android.manifmerger.PreValidator.validate ( mergingReport , xmlDocument ) ; assertEquals ( MergingReport.Result.ERROR , validated ) ; com.android.manifmerger.PreValidatorTest.assertStringPresenceInLogRecords ( mergingReport , "tools:replace" ) ; }
Source:
public boolean updateSourcePackages ( boolean displayIsSortByApi , com.android.sdklib.internal.repository.SdkSource source , java.lang.Package [ ] newPackages ) { boolean apiListChanged = mOpApi.updateSourcePackages ( source , newPackages ) ; boolean sourceListChanged = mOpSource.updateSourcePackages ( source , newPackages ) ; return displayIsSortByApi ? apiListChanged : sourceListChanged ; }

Target:
public boolean updateSourcePackages ( boolean displayIsSortByApi , com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.Package [ ] newPackages ) { boolean apiListChanged = mOpApi.updateSourcePackages ( source , newPackages ) ; boolean sourceListChanged = mOpSource.updateSourcePackages ( source , newPackages ) ; return displayIsSortByApi ? apiListChanged : sourceListChanged ; }
Source:
public static synchronized void clearContext ( ) { if ( ( android.hardware.camera2.cts.rs.RenderScriptSingleton.sContext ) != null ) { android.hardware.camera2.cts.rs.RenderScriptSingleton.sCache.close ( ) ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sCache = null ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sRS.destroy ( ) ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sRS = null ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sContext = null ; } }

Target:
public static synchronized void clearContext ( ) { if ( ( android.hardware.camera2.cts.rs.RenderScriptSingleton.sContext ) != null ) { android.hardware.camera2.cts.rs.RenderScriptSingleton.sCache.close ( ) ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sCache = null ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sRS.releaseAllContexts ( ) ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sRS = null ; android.hardware.camera2.cts.rs.RenderScriptSingleton.sContext = null ; } }
Source:
public final void init ( java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { spiImpl.engineInit ( key , params , random ) ; }

Target:
public final void init ( java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { getSpi ( key ) . engineInit ( key , params , random ) ; }
Source:
public abstract void uninstallPackage ( @ com.android.annotations.NonNull java.lang.String packageName , int timeout ) throws com.android.builder.testing.api.DeviceException ;

Target:
public abstract void uninstallPackage ( @ com.android.annotations.NonNull java.lang.String packageName , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException ;
Source:
public boolean p2pGroupAdd ( ) { return doBooleanCommand ( "P2P_GROUP_ADD" ) ; }

Target:
public boolean p2pGroupAdd ( boolean persistent ) { if ( persistent ) { return doBooleanCommand ( "P2P_GROUP_ADD persistent" ) ; } return doBooleanCommand ( "P2P_GROUP_ADD" ) ; }
Source:
public void broadcastNetworkDisConnectionEvent ( java.lang.String iface , int local , int reason , java.lang.String bssid ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.NETWORK_DISCONNECTION_EVENT , local , reason , bssid ) ; }

Target:
public void broadcastNetworkDisconnectionEvent ( java.lang.String iface , int local , int reason , java.lang.String bssid ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.NETWORK_DISCONNECTION_EVENT , local , reason , bssid ) ; }
Source:
private com.android.sdklib.devices.DeviceManager createDeviceManager ( ) { log = super . getLog ( ) ; java.lang.String osSdkLocation = getSdkManager ( ) . getLocation ( ) ; return com.android.sdklib.devices.DeviceManager.createInstance ( osSdkLocation , log ) ; }

Target:
private com.android.sdklib.devices.DeviceManager createDeviceManager ( ) { log = super . getLog ( ) ; java.io.File sdkLocation = getSdkManager ( ) . getLocalSdk ( ) . getLocation ( ) ; return com.android.sdklib.devices.DeviceManager.createInstance ( sdkLocation , log ) ; }
Source:
static double $opt$FloatToDouble ( float a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }

Target:
static double $opt$noinline$FloatToDouble ( float a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
private static void requestIntegerResult ( android.content.Context context , java.lang.String action , com.android.cts.verifier.notifications.MockListener.IntegerResultCatcher catcher ) { android.content.Intent broadcast = new android.content.Intent ( action ) ; context.sendOrderedBroadcast ( broadcast , null , catcher , null , com.android.cts.verifier.notifications.MockListener.RESULT_NO_SERVER , null , null ) ; }

Target:
protected java.lang.String getKeyForTag ( java.lang.String tag ) { return mNotificationKeys.get ( tag ) ; }
Source:
public void onClick ( android.view.View v ) { phone.disableDnsCheck ( ( ! ( phone.isDnsCheckDisabled ( ) ) ) ) ; updateDnsCheckState ( ) ; }

Target:
public void onCheckedChanged ( android.widget.CompoundButton buttonView , boolean isChecked ) { setEabProvisionedState ( isChecked ) ; }
Source:
private static void testClassLoadPrepareEquality ( ) throws java.lang.Exception { Main.enableClassLoadPrepareEqualityEvents ( true ) ; java.lang.Class.forName ( "Main$ClassE" ) ; Main.enableClassLoadPrepareEqualityEvents ( false ) ; }

Target:
private static void testClassLoadPrepareEquality ( ) throws java.lang.Exception { Main.setEqualityEventStorageClass ( Main.ClassF.class ) ; Main.enableClassLoadPrepareEqualityEvents ( true ) ; java.lang.Class.forName ( "Main$ClassE" ) ; Main.enableClassLoadPrepareEqualityEvents ( false ) ; }
Source:
public void testGetApplicationLabelAndIcon ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = getManifestInfo ( ( "<manifest xmlns:android=\'http://schemas.android.com/apk/res/android\'\n" + ( ( ( ( ( " package=\'com.android.unittest\'>\n" + " <application android:icon=\"@drawable/icon\"\n" ) + " android:label=\"@string/app_name\">\n" ) + " </application>\n" ) + "" ) + "</manifest>\n" ) ) ) ; java.util.Map < java.lang.String , java.lang.String > map = info.getActivityThemes ( ) ; assertEquals ( map.toString ( ) , 0 , map.size ( ) ) ; assertEquals ( "com.android.unittest" , info.getPackage ( ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenSize.NORMAL ) ) ) ; assertEquals ( "@drawable/icon" , info.getApplicationIcon ( ) ) ; assertEquals ( "@string/app_name" , info.getApplicationLabel ( ) ) ; }

Target:
public void testGetApplicationLabelAndIcon ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = getManifestInfo ( ( "<manifest xmlns:android=\'http://schemas.android.com/apk/res/android\'\n" + ( ( ( ( ( " package=\'com.android.unittest\'>\n" + " <application android:icon=\"@drawable/icon\"\n" ) + " android:label=\"@string/app_name\">\n" ) + " </application>\n" ) + "" ) + "</manifest>\n" ) ) ) ; java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo.ActivityAttributes > map = info.getActivityAttributesMap ( ) ; assertEquals ( map.toString ( ) , 0 , map.size ( ) ) ; assertEquals ( "com.android.unittest" , info.getPackage ( ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenSize.NORMAL ) ) ) ; assertEquals ( "@drawable/icon" , info.getApplicationIcon ( ) ) ; assertEquals ( "@string/app_name" , info.getApplicationLabel ( ) ) ; }
Source:
public void test_with_adjustment_LocalTime ( ) { java.time.OffsetTime test = TEST_11_30_59_500_PONE.with ( java.time.LocalTime.of ( 13 , 30 ) ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetTime.of ( 13 , 30 , 0 , 0 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ) ; }

Target:
public void test_with_adjustment_LocalTime ( ) { java.time.OffsetTime test = tck.java.time.TCKOffsetTime.TEST_11_30_59_500_PONE.with ( java.time.LocalTime.of ( 13 , 30 ) ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetTime.of ( 13 , 30 , 0 , 0 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ) ; }
Source:
private boolean isShorterThanPossibleNormalNumber ( com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata regionMetadata , java.lang.String number ) { java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( regionMetadata.generalDesc.possibleNumberPattern ) ; return ( testNumberLengthAgainstPattern ( possibleNumberPattern , number ) ) == ( com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT ) ; }

Target:
private boolean isShorterThanPossibleNormalNumber ( com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata regionMetadata , java.lang.String number ) { java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( regionMetadata.getGeneralDesc ( ) . getPossibleNumberPattern ( ) ) ; return ( testNumberLengthAgainstPattern ( possibleNumberPattern , number ) ) == ( com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT ) ; }