auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testInt ( ) { try { com.android.jack.java7.boxing.test001.jack.UnBoxObject.getInt ( null ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.NullPointerException e ) { } try { com.android.jack.java7.boxing.test001.jack.UnBoxObject.getInt ( new java.lang.Object ( ) ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.ClassCastException e ) { } com.android.jack.java7.boxing.test001.jack.UnBoxObject.getInt ( java.lang.Integer.valueOf ( 34 ) ) ; }

Target:
public void testIntFromObject ( ) { try { com.android.jack.java7.boxing.test001.jack.UnBoxObject.getIntFromObject ( null ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.NullPointerException e ) { } try { com.android.jack.java7.boxing.test001.jack.UnBoxObject.getIntFromObject ( new java.lang.Object ( ) ) ; junit.framework.Assert.fail ( ) ; } catch ( java.lang.ClassCastException e ) { } com.android.jack.java7.boxing.test001.jack.UnBoxObject.getIntFromObject ( java.lang.Integer.valueOf ( 34 ) ) ; }
Source:
public void setDefaultSmdpAddress ( java.lang.String defaultSmdpAddress , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setDefaultSmdpAddress ( mContext.getOpPackageName ( ) , defaultSmdpAddress , new com.android.internal.telephony.euicc.ISetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void setDefaultSmdpAddress ( java.lang.String cardId , java.lang.String defaultSmdpAddress , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setDefaultSmdpAddress ( mContext.getOpPackageName ( ) , cardId , defaultSmdpAddress , new com.android.internal.telephony.euicc.ISetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
private void writeOriginalTypeInfoMarker ( ) throws java.io.IOException { if ( ( currentMethod.signature ) != null ) { writer.writeKeyword ( Token.GENERIC_SIGNATURE ) ; writer.writeOpen ( ) ; writer.writeString ( currentMethod.signature ) ; writer.writeClose ( ) ; } else { writer.writeNull ( ) ; } }

Target:
private void writeOriginalTypeInfoMarker ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.hasValidGenericSignature ( currentMethod ) ) { writer.writeKeyword ( Token.GENERIC_SIGNATURE ) ; writer.writeOpen ( ) ; writer.writeString ( currentMethod.signature ) ; writer.writeClose ( ) ; } else { writer.writeNull ( ) ; } }
Source:
public boolean disableCellBroadcastRange ( int startMessageId , int endMessageId ) { android.util.Log.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }

Target:
private boolean setCdmaBroadcastActivation ( boolean activate ) { if ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.DBG ) log ( ( ( "Calling setCdmaBroadcastActivation(" + activate ) + ")" ) ) ; synchronized ( mLock ) { android.os.Message response = mHandler.obtainMessage ( com.android.internal.telephony.cdma.EVENT_SET_BROADCAST_ACTIVATION_DONE ) ; mSuccess = false ; mPhone.mCM.setCdmaBroadcastActivation ( activate , response ) ; try { mLock.wait ( ) ; } catch ( java.lang.InterruptedException e ) { log ( "interrupted while trying to set cdma broadcast activation" ) ; } } return mSuccess ; }
Source:
public int compareTo ( com.android.dx.io.FieldId other ) { if ( ( declaringClassIndex ) != ( other.declaringClassIndex ) ) { return com.android.dx.util.Unsigned.compare ( declaringClassIndex , other.declaringClassIndex ) ; } if ( ( nameIndex ) != ( other.nameIndex ) ) { return com.android.dx.util.Unsigned.compare ( nameIndex , other.nameIndex ) ; } return com.android.dx.util.Unsigned.compare ( typeIndex , other.typeIndex ) ; }

Target:
public int compareTo ( com.android.dex.FieldId other ) { if ( ( declaringClassIndex ) != ( other.declaringClassIndex ) ) { return com.android.dex.util.Unsigned.compare ( declaringClassIndex , other.declaringClassIndex ) ; } if ( ( nameIndex ) != ( other.nameIndex ) ) { return com.android.dex.util.Unsigned.compare ( nameIndex , other.nameIndex ) ; } return com.android.dex.util.Unsigned.compare ( typeIndex , other.typeIndex ) ; }
Source:
public void writeRilSetupDataCall ( int phoneId , int rilSerial , int radioTechnology , int profile , java.lang.String apn , int authType , java.lang.String protocol ) { com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilSetupDataCall setupDataCall = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilSetupDataCall ( ) ; setupDataCall.rat = radioTechnology ; setupDataCall.dataProfile = profile + 1 ; if ( apn != null ) { setupDataCall.apn = apn ; } if ( protocol != null ) { setupDataCall.type = toPdpType ( protocol ) ; } addTelephonyEvent ( new com.android.internal.telephony.metrics.TelephonyEventBuilder ( phoneId ) . setSetupDataCall ( setupDataCall ) . build ( ) ) ; }

Target:
public void writeSetupDataCall ( int phoneId , int radioTechnology , int profileId , java.lang.String apn , java.lang.String protocol ) { com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilSetupDataCall setupDataCall = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilSetupDataCall ( ) ; setupDataCall.rat = radioTechnology ; setupDataCall.dataProfile = profileId + 1 ; if ( apn != null ) { setupDataCall.apn = apn ; } if ( protocol != null ) { setupDataCall.type = toPdpType ( protocol ) ; } addTelephonyEvent ( new com.android.internal.telephony.metrics.TelephonyEventBuilder ( phoneId ) . setSetupDataCall ( setupDataCall ) . build ( ) ) ; }
Source:
public void testNoiseReductionModeControl ( ) throws java.lang.Exception { for ( java.lang.String id : mCameraIds ) { try { openDevice ( id ) ; if ( ! ( mStaticInfo.isNoiseReductionModeControlSupported ( ) ) ) { android.util.Log.i ( android.hardware.camera2.cts.CaptureRequestTest.TAG , ( ( "Camera " + id ) + " doesn't support noise reduction mode, skipping test" ) ) ; continue ; } noiseReductionModeTestByCamera ( ) ; } finally { closeDevice ( ) ; } } }

Target:
public void testEdgeModeControlFastFps ( ) throws java.lang.Exception { for ( java.lang.String id : mCameraIds ) { try { openDevice ( id ) ; if ( ! ( mStaticInfo.isEdgeModeControlSupported ( ) ) ) { android.util.Log.i ( android.hardware.camera2.cts.CaptureRequestTest.TAG , ( ( "Camera " + id ) + " doesn't support EDGE_MODE controls, skipping test" ) ) ; continue ; } java.util.List < android.util.Range < java.lang.Integer > > fpsRanges = getTargetFpsRangesGreaterThan30 ( mStaticInfo ) ; edgeModesTestByCamera ( fpsRanges ) ; } finally { closeDevice ( ) ; } } }
Source:
public void test_RIHarmony_compatible ( ) throws java.lang.Exception { java.text.DecimalFormatSymbols dfs ; java.io.ObjectInputStream i = null ; try { i = new java.io.ObjectInputStream ( getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "/serialization/java/text/DecimalFormatSymbols.ser" ) ) ; dfs = ( ( java.text.DecimalFormatSymbols ) ( i.readObject ( ) ) ) ; } finally { try { if ( i != null ) { i.close ( ) ; } } catch ( java.lang.Exception e ) { } } org.apache.harmony.tests.java.text.DecimalFormatSymbolsTest.assertDecimalFormatSymbolsRIFrance ( dfs ) ; }

Target:
public void test_RIHarmony_compatible ( ) throws java.lang.Exception { java.text.DecimalFormatSymbols dfs ; java.io.ObjectInputStream i = null ; try { i = new java.io.ObjectInputStream ( getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "serialization/org/apache/harmony/tests/java/text/DecimalFormatSymbols.ser" ) ) ; dfs = ( ( java.text.DecimalFormatSymbols ) ( i.readObject ( ) ) ) ; } finally { try { if ( i != null ) { i.close ( ) ; } } catch ( java.lang.Exception e ) { } } org.apache.harmony.tests.java.text.DecimalFormatSymbolsTest.assertDecimalFormatSymbolsRIFrance ( dfs ) ; }
Source:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.function.Supplier < java.lang.String > msgSupplier ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msgSupplier.get ( ) ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { super . visitMethodInsn ( opcode , remapper.mapType ( owner ) , remapper.mapMethodName ( owner , name , desc ) , remapper.mapMethodDesc ( desc ) ) ; }

Target:
private void doVisitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { if ( ( mv ) != null ) { mv.visitMethodInsn ( opcode , remapper.mapType ( owner ) , remapper.mapMethodName ( owner , name , desc ) , remapper.mapMethodDesc ( desc ) , itf ) ; } }
Source:
void separate ( com.android.internal.telephony.gsm.GsmConnection conn ) throws com.android.internal.telephony.CallStateException { if ( ( conn.owner ) != ( this ) ) { throw new com.android.internal.telephony.CallStateException ( ( ( ( "GsmConnection " + conn ) + "does not belong to GsmCallTracker " ) + ( this ) ) ) ; } try { cm.separateConnection ( conn.getGSMIndex ( ) , obtainCompleteMessage ( com.android.internal.telephony.gsm.EVENT_SEPARATE_RESULT ) ) ; } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.w ( com.android.internal.telephony.gsm.GsmCallTracker.LOG_TAG , ( "GsmCallTracker WARN: separate() on absent connection " + conn ) ) ; } }

Target:
void separate ( com.android.internal.telephony.gsm.GsmConnection conn ) throws com.android.internal.telephony.CallStateException { if ( ( conn.mOwner ) != ( this ) ) { throw new com.android.internal.telephony.CallStateException ( ( ( ( "GsmConnection " + conn ) + "does not belong to GsmCallTracker " ) + ( this ) ) ) ; } try { mCi.separateConnection ( conn.getGSMIndex ( ) , obtainCompleteMessage ( com.android.internal.telephony.gsm.EVENT_SEPARATE_RESULT ) ) ; } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.w ( com.android.internal.telephony.gsm.GsmCallTracker.LOG_TAG , ( "GsmCallTracker WARN: separate() on absent connection " + conn ) ) ; } }
Source:
public java.lang.String read ( ) { try { int numRead = mPipeFromInCall.read ( mReadBuffer , 0 , android.telecom.Connection.RttTextStream.READ_BUFFER_SIZE ) ; if ( numRead < 0 ) { return null ; } return new java.lang.String ( mReadBuffer , 0 , numRead ) ; } catch ( java.io.IOException e ) { android.telecom.Log.w ( this , "Exception encountered when reading from InputStreamReader: %s" , e ) ; return null ; } }

Target:
public java.lang.String readImmediately ( ) throws java.io.IOException { if ( mPipeFromInCall.ready ( ) ) { return read ( ) ; } else { return null ; } }
Source:
public void testPrivateField ( ) { android.signature.cts.JDiffClassDescription clz = createNormalClass ( ) ; android.signature.cts.JDiffClassDescription.JDiffField field = new android.signature.cts.JDiffClassDescription.JDiffField ( "PRIVATE_FIELD" , "java.lang.String" , java.lang.reflect.Modifier.PRIVATE ) ; clz.addField ( field ) ; clz.checkSignatureCompliance ( ) ; assertEquals ( field.toSignatureString ( ) , "private java.lang.String PRIVATE_FIELD" ) ; }

Target:
public void testPrivateField ( ) { android.signature.cts.JDiffClassDescription clz = createNormalClass ( ) ; android.signature.cts.JDiffClassDescription.JDiffField field = new android.signature.cts.JDiffClassDescription.JDiffField ( "PRIVATE_FIELD" , "java.lang.String" , java.lang.reflect.Modifier.PRIVATE , android.signature.cts.tests.JDiffClassDescriptionTest.VALUE ) ; clz.addField ( field ) ; clz.checkSignatureCompliance ( ) ; assertEquals ( field.toSignatureString ( ) , "private java.lang.String PRIVATE_FIELD" ) ; }
Source:
public void aggregateContact ( android.database.sqlite.SQLiteDatabase db , long rawContactId , java.lang.String accountType , java.lang.String accountName , long currentContactId ) { if ( ! ( mEnabled ) ) { return ; } com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates = new com.android.providers.contacts.ContactAggregator.MatchCandidateList ( ) ; com.android.providers.contacts.ContactMatcher matcher = new com.android.providers.contacts.ContactMatcher ( ) ; android.content.ContentValues values = new android.content.ContentValues ( ) ; aggregateContact ( db , rawContactId , accountType , accountName , currentContactId , candidates , matcher , values ) ; }

Target:
protected void appendLookupKey ( java.lang.StringBuilder sb , java.lang.String accountTypeWithDataSet , java.lang.String accountName , long rawContactId , java.lang.String sourceId , java.lang.String displayName ) { com.android.providers.contacts.ContactLookupKey.appendToLookupKey ( sb , accountTypeWithDataSet , accountName , rawContactId , sourceId , displayName ) ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; }

Target:
private void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , array , ( arrayLen * ( dt.mSize ) ) , dt ) ; }
Source:
public java.lang.Object [ ] toArray ( ) { int size = size ( ) ; int index = 0 ; java.util.Iterator < ? > it = iterator ( ) ; java.lang.Object [ ] array = new java.lang.Object [ size ] ; while ( index < size ) { array [ ( index ++ ) ] = it.next ( ) ; } return array ; }

Target:
public java.lang.Object [ ] toArray ( ) { return toArrayList ( ) . toArray ( ) ; }
Source:
public void testPackageOverrideNone ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilder ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; builder.setBuildVariant ( mMain , mFlavor , mDebug ) ; assertNull ( builder.getPackageOverride ( "" ) ) ; }

Target:
public void testPackageOverridePackageFromFlavorWithSuffix2 ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilderTest.AndroidBuilderMock ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.getProductFlavor ( ) . setPackageName ( "foo.bar" ) ; mDebug.getBuildType ( ) . setPackageNameSuffix ( "fortytwo" ) ; builder.setBuildVariant ( mMain , mDebug ) ; builder.addProductFlavor ( mFlavor ) ; assertEquals ( "foo.bar.fortytwo" , builder.getPackageOverride ( "" ) ) ; }
Source:
public void testPocBug_35644815 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; java.lang.String pocOut = android.security.cts.AdbUtils.runPoc ( "Bug-35644815" , getDevice ( ) , 60 ) ; assertMatches ( "[\\s\\n\\S]*INFO DISC FLAG: 0000[\\s\\n\\S]*" , pocOut ) ; }

Target:
public void testPocBug_35644815 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; if ( containsDriver ( getDevice ( ) , "/sys/kernel/debug/ion/clients/pids/" ) ) { java.lang.String pocOut = android.security.cts.AdbUtils.runPoc ( "Bug-35644815" , getDevice ( ) , 60 ) ; assertNotMatches ( "[\\s\\n\\S]*INFO DISC FLAG[\\s\\n\\S]*" , pocOut ) ; } }
Source:
public void removeChild ( int index ) { java.util.List < org.w3c.dom.Element > children = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.getChildren ( mElement ) ; org.junit.Assert.assertTrue ( ( index < ( children.size ( ) ) ) ) ; org.w3c.dom.Element oldChild = children.get ( index ) ; mElement.removeChild ( oldChild ) ; }

Target:
public void removeChild ( int index ) { java.util.List < org.w3c.dom.Element > children = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.getChildren ( mElement ) ; junit.framework.Assert.assertTrue ( ( index < ( children.size ( ) ) ) ) ; org.w3c.dom.Element oldChild = children.get ( index ) ; mElement.removeChild ( oldChild ) ; }
Source:
public void testNonDstZoneWithDstTimestampForNonHourDstZone ( ) throws java.lang.Exception { java.text.SimpleDateFormat format = new java.text.SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm zzzz" ) ; java.util.Calendar calendar = new java.util.GregorianCalendar ( libcore.java.text.SimpleDateFormatTest.AUSTRALIA_LORD_HOWE ) ; calendar.setTime ( format.parse ( "2010-12-21T19:30 Lord Howe Standard Time" ) ) ; assertEquals ( 20 , calendar.get ( java.util.Calendar.HOUR_OF_DAY ) ) ; assertEquals ( 0 , calendar.get ( java.util.Calendar.MINUTE ) ) ; }

Target:
public void testNonDstZoneWithDstTimestampForNonHourDstZone ( ) throws java.lang.Exception { java.text.SimpleDateFormat format = new java.text.SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm zzzz" , java.util.Locale.US ) ; java.util.Calendar calendar = new java.util.GregorianCalendar ( libcore.java.text.SimpleDateFormatTest.AUSTRALIA_LORD_HOWE ) ; calendar.setTime ( format.parse ( "2010-12-21T19:30 Lord Howe Standard Time" ) ) ; assertEquals ( 20 , calendar.get ( java.util.Calendar.HOUR_OF_DAY ) ) ; assertEquals ( 0 , calendar.get ( java.util.Calendar.MINUTE ) ) ; }
Source:
public java.security.spec.ECPoint getQ ( ) { if ( ( ecSpec ) == null ) { if ( ( q ) instanceof java.security.spec.ECPoint.Fp ) { return new java.security.spec.ECPoint.Fp ( null , q.getAffineXCoord ( ) , q.getAffineYCoord ( ) ) ; } else { return new java.security.spec.ECPoint.F2m ( null , q.getAffineXCoord ( ) , q.getAffineYCoord ( ) ) ; } } return q ; }

Target:
public java.security.spec.ECPoint getQ ( ) { if ( ( ecSpec ) == null ) { return q.getDetachedPoint ( ) ; } return q ; }
Source:
static < E > com.google.common.collect.ImmutableSortedSet < E > construct ( java.util.Comparator < ? super E > comparator , int n , E ... contents ) { int uniques = com.google.common.collect.ImmutableSortedSet.sortAndUnique ( comparator , n , contents ) ; if ( uniques == 0 ) { return com.google.common.collect.ImmutableSortedSet.emptySet ( comparator ) ; } else if ( uniques < ( contents.length ) ) { contents = com.google.common.collect.ObjectArrays.arraysCopyOf ( contents , uniques ) ; } return new com.google.common.collect.RegularImmutableSortedSet < E > ( com.google.common.collect.ImmutableList.< E > asImmutableList ( contents ) , comparator ) ; }

Target:
public E first ( ) { return iterator ( ) . next ( ) ; }
Source:
public void testPinEntryNonEnforcing ( ) throws java.lang.Exception { java.lang.String shortEntry = "*.google.com=false|" + ( shortPin ) ; org.conscrypt.PinListEntry e = new org.conscrypt.PinListEntry ( shortEntry , new org.conscrypt.TrustedCertificateStore ( ) ) ; assertFalse ( "Enforcing!" , e.getEnforcing ( ) ) ; boolean retval = e.chainIsNotPinned ( shortChain ) ; assertTrue ( "Failed on an unenforced pinning, this is bad-ish" , ( ! retval ) ) ; }

Target:
public void testPinEntryNonEnforcing ( ) throws java.lang.Exception { java.lang.String shortEntry = "*.google.com=false|" + ( shortPin ) ; org.conscrypt.PinListEntry e = new org.conscrypt.PinListEntry ( shortEntry , new org.conscrypt.TrustedCertificateStore ( ) ) ; assertFalse ( "Enforcing!" , e.getEnforcing ( ) ) ; boolean retval = e.isChainValid ( shortChain ) ; assertTrue ( "Failed on an unenforced pinning, this is bad-ish" , retval ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { synchronized ( this ) { if ( ( ( mRS ) == null ) || ( ( mOutPixelsAllocation ) == null ) ) { return ; } mOutPixelsAllocation.ioSend ( ) ; mDisplayView.invalidate ( ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { synchronized ( this ) { if ( ( ( mRS ) == null ) || ( ( mOutPixelsAllocation ) == null ) ) { return ; } if ( ( mOutDisplayAllocation ) != ( mOutPixelsAllocation ) ) { mOutDisplayAllocation.copyFrom ( mOutPixelsAllocation ) ; } mOutDisplayAllocation.ioSend ( ) ; mDisplayView.invalidate ( ) ; } }
Source:
public java.util.Map.Entry < K , V2 > apply ( final java.util.Map.Entry < K , V1 > entry ) { return new com.google.common.collect.AbstractMapEntry < K , V2 > ( ) { @ java.lang.Override public K getKey ( ) { return entry.getKey ( ) ; } @ java.lang.Override public V2 getValue ( ) { return transformer.transformEntry ( entry.getKey ( ) , entry.getValue ( ) ) ; } } ; }

Target:
java.util.Iterator < java.util.Map.Entry < K , V2 > > entryIterator ( ) { return com.google.common.collect.Iterators.transform ( fromMultimap.entries ( ) . iterator ( ) , com.google.common.collect.Maps.< K , V1 , V2 > asEntryToEntryFunction ( transformer ) ) ; }
Source:
public void propertyChange ( org.eclipse.core.runtime.Preferences.PropertyChangeEvent event ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . loadValues ( event ) ; if ( AdtPrefs.PREFS_SDK_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setAdb ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true ) ; if ( checkSdkLocationAndId ( ) ) { reparseSdk ( ) ; } } }

Target:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . loadValues ( event ) ; if ( AdtPrefs.PREFS_SDK_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setAdb ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true ) ; if ( checkSdkLocationAndId ( ) ) { reparseSdk ( ) ; } } }
Source:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { try { inputVFS.getRootInputVDir ( ) . delete ( fileType.buildFileVPath ( typePath ) ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { try { inputVFS.getRootInputVDir ( ) . getInputVFile ( fileType.buildFileVPath ( typePath ) ) . delete ( ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > notNullValue ( ) { return org.hamcrest.core.IsNull.notNullValue ( ) ; }

Target:
public static < T > org.hamcrest.core.AnyOf < T > anyOf ( org.hamcrest.org.hamcrest.Matcher < T > first , org.hamcrest.org.hamcrest.Matcher < ? extends T > second , org.hamcrest.org.hamcrest.Matcher < ? extends T > third , org.hamcrest.org.hamcrest.Matcher < ? extends T > fourth ) { return org.hamcrest.core.AnyOf.< org.hamcrest.T > anyOf ( first , second , third , fourth ) ; }
Source:
private static com.android.internal.util.JournaledFile makeJournaledFile ( ) { final java.lang.String base = "/data/system/wallpaper_info.xml" ; return new com.android.internal.util.JournaledFile ( new java.io.File ( base ) , new java.io.File ( ( base + ".tmp" ) ) ) ; }

Target:
private static com.android.internal.util.JournaledFile makeJournaledFile ( int userId ) { final java.lang.String base = ( ( com.android.server.WallpaperManagerService.getWallpaperDir ( userId ) ) + "/" ) + ( com.android.server.WallpaperManagerService.WALLPAPER_INFO ) ; return new com.android.internal.util.JournaledFile ( new java.io.File ( base ) , new java.io.File ( ( base + ".tmp" ) ) ) ; }
Source:
public java.lang.String getShortDescription ( ) { boolean isDefaultTag = SystemImage.DEFAULT_TAG.equals ( mTag ) ; return java.lang.String.format ( "%1$s%2$s System Image, Android API %3$s, revision %4$s%5$s" , ( isDefaultTag ? "" : ( mTag.getDisplay ( ) ) + " " ) , getAbiDisplayName ( ) , mVersion.getApiString ( ) , getRevision ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; }

Target:
public java.lang.String getShortDescription ( ) { boolean isDefaultTag = SystemImage.DEFAULT_TAG.equals ( mTag ) ; return java.lang.String.format ( "%1$s%2$sSystem Image, Android API %3$s, revision %4$s%5$s" , ( isDefaultTag ? "" : ( mTag.getDisplay ( ) ) + " " ) , ( isDefaultTag ? ( getAbiDisplayName ( ) ) + " " : "" ) , mVersion.getApiString ( ) , getRevision ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; }
Source:
public byte [ ] encode ( java.math.BigInteger r , java.math.BigInteger s ) throws java.io.IOException { }

Target:
public byte [ ] encode ( java.math.BigInteger r , java.math.BigInteger s ) throws java.io.IOException { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.ASN1Integer ( r ) ) ; v.add ( new org.bouncycastle.asn1.ASN1Integer ( s ) ) ; return new org.bouncycastle.asn1.DERSequence ( v ) . getEncoded ( ASN1Encoding.DER ) ; }
Source:
public void test_Constructor01 ( ) { try { new javax.net.ssl.KeyStoreBuilderParameters ( ( ( java.security.KeyStore.Builder ) ( null ) ) ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } java.security.KeyStore.ProtectionParameter pp = new tests.api.javax.net.ssl.KeyStoreBuilderParametersTest.ProtectionParameterImpl ( ) ; java.security.KeyStore.Builder bld = java.security.KeyStore.Builder.newInstance ( "testType" , null , pp ) ; assertNotNull ( "Null object KeyStore.Builder" , bld ) ; javax.net.ssl.KeyStoreBuilderParameters ksp = new javax.net.ssl.KeyStoreBuilderParameters ( bld ) ; assertNotNull ( ksp.getParameters ( ) ) ; }

Target:
public void test_Constructor01 ( ) { try { new javax.net.ssl.KeyStoreBuilderParameters ( ( ( java.security.KeyStore.Builder ) ( null ) ) ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } java.security.KeyStore.ProtectionParameter pp = new org.apache.harmony.tests.javax.net.ssl.KeyStoreBuilderParametersTest.ProtectionParameterImpl ( ) ; java.security.KeyStore.Builder bld = java.security.KeyStore.Builder.newInstance ( "testType" , null , pp ) ; assertNotNull ( "Null object KeyStore.Builder" , bld ) ; javax.net.ssl.KeyStoreBuilderParameters ksp = new javax.net.ssl.KeyStoreBuilderParameters ( bld ) ; assertNotNull ( ksp.getParameters ( ) ) ; }
Source:
public int fetchIsimRecords ( com.android.internal.telephony.IccFileHandler iccFh , android.os.Handler h ) { iccFh.loadEFTransparent ( com.android.internal.telephony.IccConstants.EF_IMPI , h.obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimImpiLoaded ( ) ) ) ; iccFh.loadEFLinearFixedAll ( com.android.internal.telephony.IccConstants.EF_IMPU , h.obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimImpuLoaded ( ) ) ) ; iccFh.loadEFTransparent ( com.android.internal.telephony.IccConstants.EF_DOMAIN , h.obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimDomainLoaded ( ) ) ) ; return 3 ; }

Target:
public void handleMessage ( android.os.Message msg ) { if ( mDestroyed.get ( ) ) { android.util.Log.e ( com.android.internal.telephony.ims.IsimUiccRecords.LOG_TAG , ( ( ( ( "Received message " + msg ) + "[" ) + ( msg.what ) ) + "] while being destroyed. Ignoring." ) ) ; return ; } try { switch ( msg.what ) { case com.android.internal.telephony.ims.IsimUiccRecords.EVENT_APP_READY : onReady ( ) ; break ; default : super . handleMessage ( msg ) ; } } catch ( java.lang.RuntimeException exc ) { android.util.Log.w ( com.android.internal.telephony.ims.IsimUiccRecords.LOG_TAG , "Exception parsing SIM record" , exc ) ; } }
Source:
public void processDisconnectReason ( com.android.ims.ImsReasonInfo imsReasonInfo ) { if ( ( ( imsReasonInfo.mCode ) == ( imsReasonInfo.CODE_REGISTRATION_ERROR ) ) && ( ( imsReasonInfo.mExtraMessage ) != null ) ) { if ( com.android.ims.ImsManager.isWfcEnabledByUser ( mContext ) ) { processWfcDisconnectForNotification ( imsReasonInfo ) ; } } }

Target:
public void processDisconnectReason ( com.android.ims.ImsReasonInfo imsReasonInfo ) { if ( ( ( imsReasonInfo.mCode ) == ( imsReasonInfo.CODE_REGISTRATION_ERROR ) ) && ( ( imsReasonInfo.mExtraMessage ) != null ) ) { if ( com.android.ims.ImsManager.getInstance ( mContext , mPhoneId ) . isWfcEnabledByUser ( ) ) { processWfcDisconnectForNotification ( imsReasonInfo ) ; } } }
Source:
public void enter ( ) { super . enter ( ) ; sendMessageDelayed ( com.android.bluetooth.hfp.HeadsetStateMachine.CONNECT_TIMEOUT , mCurrentDevice , com.android.bluetooth.hfp.HeadsetStateMachine.sConnectTimeoutMillis ) ; if ( ( mPrevState ) == ( mConnected ) ) { broadcastAudioState ( mCurrentDevice , BluetoothHeadset.STATE_AUDIO_CONNECTING , BluetoothHeadset.STATE_AUDIO_DISCONNECTED ) ; } else { stateLogWtfStack ( ( ( ( "Illegal state transition from " + ( mPrevState ) ) + ", mCurrentDevice=" ) + ( mCurrentDevice ) ) ) ; } }

Target:
public void enter ( ) { super . enter ( ) ; sendMessageDelayed ( com.android.bluetooth.hfp.HeadsetStateMachine.CONNECT_TIMEOUT , mCurrentDevice , com.android.bluetooth.hfp.HeadsetStateMachine.sConnectTimeoutMillis ) ; broadcastStateTransitions ( ) ; }
Source:
private void onProgramsUpdated ( ) { ( ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ( getRowsAdapter ( ) ) ) . setPrograms ( mPrograms ) ; if ( ( ( mPrograms ) == null ) || ( mPrograms.isEmpty ( ) ) ) { showEmptyMessage ( R.string.dvr_series_schedules_empty_state ) ; } else { hideEmptyMessage ( ) ; } }

Target:
private void updateEmptyMessage ( ) { if ( ( ( mPrograms ) == null ) || ( mPrograms.isEmpty ( ) ) ) { if ( ( mSeriesRecording.getState ( ) ) == ( com.android.tv.dvr.data.SeriesRecording.STATE_SERIES_STOPPED ) ) { showEmptyMessage ( R.string.dvr_series_schedules_stopped_empty_state ) ; } else { showEmptyMessage ( R.string.dvr_series_schedules_empty_state ) ; } } else { hideEmptyMessage ( ) ; } }
Source:
private static int compareHandlesNulls ( com.android.jack.dx.rop.cst.CstType a , com.android.jack.dx.rop.cst.CstType b ) { if ( a == b ) { return 0 ; } else if ( a == null ) { return - 1 ; } else if ( b == null ) { return 1 ; } else { return a.compareTo ( b ) ; } }

Target:
private static int compareHandlesNulls ( com.android.jack.dx.rop.type.Type a , com.android.jack.dx.rop.type.Type b ) { if ( a == b ) { return 0 ; } else if ( a == null ) { return - 1 ; } else if ( b == null ) { return 1 ; } else { return a.compareTo ( b ) ; } }
Source:
private void sortPackages ( ) { if ( ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ) { sortByAPI ( ) ; } else { sortBySource ( ) ; } updateButtonsState ( ) ; }

Target:
private void sortPackages ( boolean updateButtons ) { if ( ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ) { sortByAPI ( ) ; } else { sortBySource ( ) ; } if ( updateButtons ) { updateButtonsState ( ) ; } }
Source:
public void assertEventuallyTrue ( java.util.function.BooleanSupplier fn , long maxWaitingTimeMs ) { long start = android.os.SystemClock.elapsedRealtime ( ) ; while ( ( android.os.SystemClock.elapsedRealtime ( ) ) <= ( start + maxWaitingTimeMs ) ) { if ( fn.getAsBoolean ( ) ) { return ; } com.android.server.ConnectivityServiceTest.sleepFor ( 15 ) ; } assertTrue ( fn.getAsBoolean ( ) ) ; }

Target:
public void assertEventuallyTrue ( java.util.function.BooleanSupplier fn , long maxWaitingTimeMs ) throws java.lang.Exception { long start = android.os.SystemClock.elapsedRealtime ( ) ; while ( ( android.os.SystemClock.elapsedRealtime ( ) ) <= ( start + maxWaitingTimeMs ) ) { if ( fn.getAsBoolean ( ) ) { return ; } java.lang.Thread.sleep ( 10 ) ; } assertTrue ( fn.getAsBoolean ( ) ) ; }
Source:
final void get ( char [ ] dst , int dstOffset , int charCount ) { checkNotFreed ( ) ; int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void get ( char [ ] dst , int dstOffset , int charCount ) { checkIsAccessible ( ) ; int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }
Source:
private boolean verify ( byte [ ] keyName , byte [ ] data , byte [ ] signature ) { execute ( 'v' , keyName , data , signature ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean verify ( java.lang.String key , byte [ ] data , byte [ ] signature ) { try { return ( mBinder.verify ( key , data , signature ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public boolean setHwPnoList ( com.android.server.wifi.WifiNative.PnoSettings settings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler ) { synchronized ( mSettingsLock ) { if ( ( mPnoSettings ) != null ) { android.util.Log.w ( com.android.server.wifi.scanner.WificondScannerImpl.TAG , "Already running a PNO scan" ) ; return false ; } mPnoEventHandler = eventHandler ; mPnoSettings = settings ; processPendingScans ( ) ; return true ; } }

Target:
public boolean setHwPnoList ( com.android.server.wifi.WifiNative.PnoSettings settings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler ) { synchronized ( mSettingsLock ) { if ( ( mPnoSettings ) != null ) { android.util.Log.w ( com.android.server.wifi.scanner.WificondScannerImpl.TAG , "Already running a PNO scan" ) ; return false ; } mPnoEventHandler = eventHandler ; mPnoSettings = settings ; android.util.Log.d ( com.android.server.wifi.scanner.WificondScannerImpl.TAG , "processPendingScans in request of setHwPnoList" ) ; processPendingScans ( ) ; return true ; } }
Source:
private java.lang.String getLastLineupId ( ) { if ( ( mLineupId ) == null ) { mLineupId = android.preference.PreferenceManager.getDefaultSharedPreferences ( mContext ) . getString ( com.android.tv.data.epg.EpgFetcher.KEY_LAST_LINEUP_ID , null ) ; } if ( com.android.tv.data.epg.EpgFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.epg.EpgFetcher.TAG , ( "Last lineup_id " + ( mLineupId ) ) ) ; return mLineupId ; }

Target:
private synchronized java.lang.String getLastLineupId ( ) { if ( ( mLineupId ) == null ) { mLineupId = android.preference.PreferenceManager.getDefaultSharedPreferences ( mContext ) . getString ( com.android.tv.data.epg.EpgFetcher.KEY_LAST_LINEUP_ID , null ) ; } if ( com.android.tv.data.epg.EpgFetcher.DEBUG ) android.util.Log.d ( com.android.tv.data.epg.EpgFetcher.TAG , ( "Last lineup is " + ( mLineupId ) ) ) ; return mLineupId ; }
Source:
public void testObjectEquals ( ) throws java.lang.Exception { java.io.File testFolder = com.android.jack.TestTools.getJackTestFolder ( "shrob/test024" ) ; com.android.jack.Options options = com.android.jack.TestTools.buildCommandLineArgs ( new java.io.File [ ] { com.android.jack.shrob.TreeTest.CORE_SOURCELIST , testFolder } ) ; options.addProguardFlagsFile ( new com.android.jack.ProguardFlags ( testFolder , "proguard.flags001" ) ) ; options.addProguardFlagsFile ( com.android.jack.shrob.TreeTest.dontObfuscateFlagFile ) ; options.addProperty ( Options.METHOD_FILTER.getName ( ) , "supported-methods" ) ; com.android.jack.TestTools.buildSession ( options ) ; }

Target:
public void testObjectEquals ( ) throws java.lang.Exception { java.io.File testFolder = com.android.jack.TestTools.getJackTestFolder ( "shrob/test024" ) ; com.android.jack.Options options = com.android.jack.TestTools.buildCommandLineArgs ( new java.io.File [ ] { com.android.jack.shrob.TreeTest.CORE_SOURCELIST , testFolder } ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; options.addProguardFlagsFile ( new com.android.jack.ProguardFlags ( testFolder , "proguard.flags001" ) ) ; options.addProguardFlagsFile ( com.android.jack.shrob.TreeTest.dontObfuscateFlagFile ) ; options.addProperty ( Options.METHOD_FILTER.getName ( ) , "supported-methods" ) ; com.android.jack.TestTools.buildSession ( options ) ; }
Source:
public org.eclipse.swt.graphics.Image loadCapture ( com.android.hierarchyviewerlib.device.ViewNode viewNode ) { final org.eclipse.swt.graphics.Image image = com.android.hierarchyviewerlib.device.DeviceBridge.loadCapture ( viewNode.window , viewNode ) ; if ( image != null ) { viewNode.image = image ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } return image ; }

Target:
public org.eclipse.swt.graphics.Image loadCapture ( com.android.hierarchyviewerlib.models.ViewNode viewNode ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = viewNode.window.getHvDevice ( ) ; final org.eclipse.swt.graphics.Image image = hvDevice.loadCapture ( viewNode.window , viewNode ) ; if ( image != null ) { viewNode.image = image ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } return image ; }
Source:
public void testJackArchiveToDexArchive ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexAr = com.android.jack.TestTools.createTempFile ( "resourcetestdex" , ".zip" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , jackAr , dexAr , true ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( dexAr ) ; checkResourceContent ( zipFile , com.android.jack.ResourceTest.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.ResourceTest.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.ResourceTest.RESOURCE3_LONGPATH , "Res3" ) ; checkResourceContent ( zipFile , com.android.jack.ResourceTest.RESOURCE4_LONGPATH , "Res4" ) ; }

Target:
public void testJackArchiveToDexArchive ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexAr = com.android.jack.TestTools.createTempFile ( "resourcetestdex" , ".zip" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , jackAr , dexAr , true ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( dexAr ) ; checkResourceContentFromZip ( zipFile , com.android.jack.ResourceTest.RESOURCE1_SHORTPATH , "Res1" , false ) ; checkResourceContentFromZip ( zipFile , com.android.jack.ResourceTest.RESOURCE2_SHORTPATH , "Res2" , false ) ; checkResourceContentFromZip ( zipFile , com.android.jack.ResourceTest.RESOURCE3_SHORTPATH , "Res3" , false ) ; checkResourceContentFromZip ( zipFile , com.android.jack.ResourceTest.RESOURCE4_SHORTPATH , "Res4" , false ) ; }
Source:
public int getDrmObjectType ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getDrmObjectType ( mUniqueId , path , mimeType ) ; }

Target:
public java.lang.String getOriginalMimeType ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getOriginalMimeType ( mUniqueId , path ) ; }
Source:
public void testConstructor_NullAliase ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , new java.lang.String [ ] { "mock" , null } ) ; fail ( "Should throw NullPointerException!" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void test_x_UTF_16LE_BOM ( ) throws java.lang.Exception { java.nio.charset.Charset cs = java.nio.charset.Charset.forName ( "x-UTF-16LE-BOM" ) ; assertEncodes ( cs , "a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "愀昆" , 254 , 255 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 'a' , 0 , 102 , 6 ) ; }
Source:
private boolean visitNonThrowingOperation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert ! ( expr.canThrow ( ) ) ; confirmBlockElement ( expr ) ; if ( expr instanceof com.android.jack.ir.ast.JReinterpretCastOperation ) { confirmParent ( expr , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.JAsgOperation.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JMethodCall.class ) ; } else { confirmParent ( expr , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.JAsgOperation.class ) ; } confirmNotAssignmentTarget ( expr ) ; return true ; }

Target:
private boolean visitNonThrowingOperation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert ! ( expr.canThrow ( ) ) ; confirmBlockElement ( expr ) ; if ( expr instanceof com.android.jack.ir.ast.JReinterpretCastOperation ) { confirmParent ( expr , com.android.jack.ir.ast.JAsgOperation.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JMethodCall.class ) ; } else if ( expr instanceof com.android.jack.ir.ast.JDynamicCastOperation ) { confirmParent ( expr , com.android.jack.ir.ast.JAsgOperation.class ) ; } else { confirmParent ( expr , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.JAsgOperation.class ) ; } confirmNotAssignmentTarget ( expr ) ; return true ; }
Source:
public java.net.InetSocketAddress getSyncServerAddress ( ) { int port = settings.getSyncPortNumber ( ) ; return new java.net.InetSocketAddress ( java.net.InetAddress.getLoopbackAddress ( ) , port ) ; }

Target:
public java.net.InetSocketAddress getSyncServerAddress ( ) { int port = settings.getSyncPortNumber ( ) ; try { return new java.net.InetSocketAddress ( java.net.InetAddress.getByAddress ( new byte [ ] { 127 , 0 , 0 , 1 } ) , port ) ; } catch ( java.net.UnknownHostException e ) { throw new org.apache.harmony.jpda.tests.framework.TestErrorException ( "[SYNC] Exception in binding for socket sync connection" , e ) ; } }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Throwable thrown ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; doLog ( lr ) ; }
Source:
public android.content.Loader < android.database.Cursor > onCreateLoader ( int id , android.os.Bundle args ) { boolean sortOrderPrimary = ( contactsPrefs.getSortOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.SORT_ORDER_PRIMARY ) ; boolean displayOrderPrimary = ( contactsPrefs.getDisplayOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.DISPLAY_ORDER_PRIMARY ) ; java.lang.String sortKey = ( sortOrderPrimary ) ? android.provider.ContactsContract.Contacts.SORT_KEY_PRIMARY : android.provider.ContactsContract.Contacts.SORT_KEY_ALTERNATIVE ; return displayOrderPrimary ? com.android.dialer.contactsfragment.ContactsCursorLoader.createInstanceDisplayNamePrimary ( getContext ( ) , sortKey ) : com.android.dialer.contactsfragment.ContactsCursorLoader.createInstanceDisplayNameAlternative ( getContext ( ) , sortKey ) ; }

Target:
public void updateQuery ( java.lang.String query ) { this . query = query ; getLoaderManager ( ) . restartLoader ( 0 , null , this ) ; }
Source:
public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatform ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORMS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; p.mCustomPath = new com.android.sdklib.repository.descriptors.PkgDesc.IGetPath ( ) { @ java.lang.Override public java.lang.String getPath ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( thisPkgDesc.getAndroidVersion ( ) ) ; } } ; return p ; }
Source:
static java.lang.String getTimeZoneText ( java.util.TimeZone tz ) { boolean daylight = tz.inDaylightTime ( new java.util.Date ( ) ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( com.android.settings.DateTimeSettings.formatOffset ( ( ( tz.getRawOffset ( ) ) + ( daylight ? tz.getDSTSavings ( ) : 0 ) ) ) ) . append ( ", " ) . append ( tz.getDisplayName ( daylight , java.util.TimeZone.LONG ) ) ; return sb.toString ( ) ; }

Target:
static java.lang.String getTimeZoneText ( java.util.TimeZone tz ) { java.util.Date now = new java.util.Date ( ) ; return com.android.settings.DateTimeSettings.formatOffset ( new java.lang.StringBuilder ( ) , tz , now ) . append ( ", " ) . append ( tz.getDisplayName ( tz.inDaylightTime ( now ) , java.util.TimeZone.LONG ) ) . toString ( ) ; }