auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void setSize ( int width , int height ) { if ( ( ( width % 16 ) != 0 ) || ( ( height % 16 ) != 0 ) ) { android.util.Log.w ( android.media.cts.ExtractDecodeEditEncodeMuxTest.TAG , "WARNING: width or height not multiple of 16" ) ; } mWidth = width ; mHeight = height ; }

Target:
private boolean setSize ( int width , int height ) { if ( ( ( width % 16 ) != 0 ) || ( ( height % 16 ) != 0 ) ) { android.util.Log.w ( android.media.cts.ExtractDecodeEditEncodeMuxTest.TAG , "WARNING: width or height not multiple of 16" ) ; } mWidth = width ; mHeight = height ; return android.media.cts.ExtractDecodeEditEncodeMuxTest.isAvcSupportedSize ( width , height ) ; }
Source:
private void enforcePermissionOrPrivilegedDialer ( java.lang.String permission , java.lang.String packageName ) { if ( ! ( isPrivilegedDialerCalling ( packageName ) ) ) { try { enforcePermission ( permission ) ; } catch ( java.lang.SecurityException e ) { com.android.server.telecom.Log.e ( this , e , ( "Caller must be the default or system dialer, or have the permission" + " %s to perform this operation." ) , permission ) ; throw e ; } } }

Target:
private void enforcePermissionOrPrivilegedDialer ( java.lang.String permission , java.lang.String packageName ) { if ( ! ( isPrivilegedDialerCalling ( packageName ) ) ) { try { enforcePermission ( permission ) ; } catch ( java.lang.SecurityException e ) { android.telecom.Log.e ( this , e , ( "Caller must be the default or system dialer, or have the permission" + " %s to perform this operation." ) , permission ) ; throw e ; } } }
Source:
public void onRadioStateUnavailable ( ) { if ( ( mUiccCard ) != null ) { mUiccCard.dispose ( ) ; } mUiccCard = null ; if ( ( mPhoneId ) != null ) { com.android.internal.telephony.uicc.UiccProfile.broadcastInternalIccStateChangedIntent ( IccCardConstants.INTENT_VALUE_ICC_UNKNOWN , null , mPhoneId ) ; } mCardState = com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_ABSENT ; mLastRadioState = com.android.internal.telephony.CommandsInterface.RadioState.RADIO_UNAVAILABLE ; }

Target:
public void onRadioStateUnavailable ( ) { if ( ( mUiccCard ) != null ) { mUiccCard.dispose ( ) ; } mUiccCard = null ; if ( ( mPhoneId ) != ( com.android.internal.telephony.uicc.UiccSlot.INVALID_PHONE_ID ) ) { com.android.internal.telephony.uicc.UiccProfile.broadcastInternalIccStateChangedIntent ( IccCardConstants.INTENT_VALUE_ICC_UNKNOWN , null , mPhoneId ) ; } mCardState = com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_ABSENT ; mLastRadioState = com.android.internal.telephony.CommandsInterface.RadioState.RADIO_UNAVAILABLE ; }
Source:
public void testEvaluateNetworks_potentialConnectableNetworksIsNull ( ) { org.mockito.Mockito.when ( mWifiConfigManager.wasEphemeralNetworkDeleted ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( mNetworkScoreManager.requestRecommendation ( org.mockito.Mockito.any ( android.net.RecommendationRequest.class ) ) ) . thenReturn ( android.net.RecommendationResult.createDoNotConnectRecommendation ( ) ) ; mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_SCAN_DETAIL , com.android.server.wifi.RecommendedNetworkEvaluatorTest.EPHEMERAL_SCAN_DETAIL , com.android.server.wifi.RecommendedNetworkEvaluatorTest.UNTRUSTED_SCAN_DETAIL ) , null , null , false , true , null ) ; }

Target:
public void testEvaluateNetworks_potentialConnectableNetworksIsNull ( ) { org.mockito.Mockito.when ( mWifiConfigManager.wasEphemeralNetworkDeleted ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( mNetworkScoreManager.requestRecommendation ( org.mockito.Mockito.any ( android.net.RecommendationRequest.class ) ) ) . thenReturn ( android.net.RecommendationResult.createDoNotConnectRecommendation ( ) ) ; mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( mTrustedScanDetail , mEphemeralScanDetail , mUntrustedScanDetail ) , null , null , false , true , null ) ; }
Source:
private synchronized void loadStrings ( java.lang.String tzCanonicalID ) { if ( ( tzCanonicalID == null ) || ( ( tzCanonicalID.length ( ) ) == 0 ) ) { return ; } loadTimeZoneNames ( tzCanonicalID ) ; java.util.Set < java.lang.String > mzIDs = getAvailableMetaZoneIDs ( tzCanonicalID ) ; for ( java.lang.String mzID : mzIDs ) { loadMetaZoneNames ( mzID ) ; } }

Target:
private synchronized void loadStrings ( java.lang.String tzCanonicalID ) { if ( ( tzCanonicalID == null ) || ( ( tzCanonicalID.length ( ) ) == 0 ) ) { return ; } loadTimeZoneNames ( null , tzCanonicalID ) ; com.ibm.icu.impl.TimeZoneNamesImpl.ZNamesLoader loader = com.ibm.icu.impl.TimeZoneNamesImpl.ZNamesLoader.forMetaZoneNames ( ) ; java.util.Set < java.lang.String > mzIDs = getAvailableMetaZoneIDs ( tzCanonicalID ) ; for ( java.lang.String mzID : mzIDs ) { loadMetaZoneNames ( loader , mzID ) ; } addAllNamesIntoTrie ( ) ; }
Source:
synchronized void load0 ( java.lang.Class < ? > fromClass , java.lang.String filename ) { if ( ! ( new java.io.File ( filename ) . isAbsolute ( ) ) ) { throw new java.lang.UnsatisfiedLinkError ( ( "Expecting an absolute path of the library: " + filename ) ) ; } if ( filename == null ) { throw new java.lang.NullPointerException ( "filename == null" ) ; } java.lang.String error = doLoad ( filename , fromClass.getClassLoader ( ) ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }

Target:
synchronized void load0 ( java.lang.Class < ? > fromClass , java.lang.String filename ) { if ( ! ( new java.io.File ( filename ) . isAbsolute ( ) ) ) { throw new java.lang.UnsatisfiedLinkError ( ( "Expecting an absolute path of the library: " + filename ) ) ; } if ( filename == null ) { throw new java.lang.NullPointerException ( "filename == null" ) ; } java.lang.String error = java.lang.Runtime.nativeLoad ( filename , fromClass.getClassLoader ( ) ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }
Source:
private static void checkIntRange ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument , @ com.android.annotations.NonNull java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > allAnnotations ) { java.lang.String message = com.android.tools.lint.checks.SupportAnnotationDetector.getIntRangeError ( context , annotation , argument ) ; if ( message != null ) { if ( ( com.android.tools.lint.checks.SupportAnnotationDetector.findIntDef ( allAnnotations ) ) != null ) { return ; } if ( com.android.tools.lint.checks.SupportAnnotationDetector.isIgnoredInIde ( com.android.tools.lint.checks.SupportAnnotationDetector.RANGE , context , argument ) ) { return ; } context.report ( com.android.tools.lint.checks.SupportAnnotationDetector.RANGE , argument , context.getLocation ( argument ) , message ) ; } }

Target:
private static void checkIntRange ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiAnnotation annotation , @ com.android.annotations.NonNull com.intellij.psi.PsiElement argument , @ com.android.annotations.NonNull com.intellij.psi.PsiAnnotation [ ] allAnnotations ) { java.lang.String message = com.android.tools.lint.checks.SupportAnnotationDetector.getIntRangeError ( context , annotation , argument ) ; if ( message != null ) { if ( ( com.android.tools.lint.checks.SupportAnnotationDetector.findIntDef ( allAnnotations ) ) != null ) { return ; } if ( com.android.tools.lint.checks.SupportAnnotationDetector.isIgnoredInIde ( com.android.tools.lint.checks.SupportAnnotationDetector.RANGE , context , argument ) ) { return ; } context.report ( com.android.tools.lint.checks.SupportAnnotationDetector.RANGE , argument , context.getLocation ( argument ) , message ) ; } }
Source:
public boolean isHardwareBacked ( ) { try { return ( mBinder.is_hardware_backed ( ) ) == ( 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 ; } }

Target:
public boolean isHardwareBacked ( java.lang.String keyType ) { try { return ( mBinder.is_hardware_backed ( keyType.toUpperCase ( java.util.Locale.US ) ) ) == ( 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 void testSystemRunning ( ) { org.mockito.Mockito.when ( mNetworkScorerAppManager.getActiveScorer ( ) ) . thenReturn ( com.android.server.NetworkScoreServiceTest.NEW_SCORER ) ; mNetworkScoreService.systemRunning ( ) ; org.mockito.Mockito.verify ( mContext ) . bindServiceAsUser ( com.android.server.devicepolicy.MockUtils.checkIntent ( new android.content.Intent ( ) . setComponent ( new android.content.ComponentName ( com.android.server.NetworkScoreServiceTest.NEW_SCORER.mPackageName , com.android.server.NetworkScoreServiceTest.NEW_SCORER.mScoringServiceClassName ) ) ) , org.mockito.Matchers.any ( android.content.ServiceConnection.class ) , org.mockito.Matchers.eq ( ( ( android.content.Context.BIND_AUTO_CREATE ) | ( android.content.Context.BIND_FOREGROUND_SERVICE ) ) ) , org.mockito.Matchers.eq ( UserHandle.SYSTEM ) ) ; }

Target:
public void testSystemRunning ( ) { org.mockito.Mockito.when ( mNetworkScorerAppManager.getActiveScorer ( ) ) . thenReturn ( com.android.server.NetworkScoreServiceTest.NEW_SCORER ) ; mNetworkScoreService.systemRunning ( ) ; org.mockito.Mockito.verify ( mContext ) . bindServiceAsUser ( com.android.server.devicepolicy.MockUtils.checkIntent ( new android.content.Intent ( ) . setComponent ( new android.content.ComponentName ( com.android.server.NetworkScoreServiceTest.NEW_SCORER.packageName , com.android.server.NetworkScoreServiceTest.NEW_SCORER.recommendationServiceClassName ) ) ) , org.mockito.Matchers.any ( android.content.ServiceConnection.class ) , org.mockito.Matchers.eq ( ( ( android.content.Context.BIND_AUTO_CREATE ) | ( android.content.Context.BIND_FOREGROUND_SERVICE ) ) ) , org.mockito.Matchers.eq ( UserHandle.SYSTEM ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( Main.$opt$noinline$foo ( new Main ( ) ) ) ; java.lang.System.out.println ( Main.$opt$noinline$foo ( new SubMain ( ) ) ) ; java.lang.System.out.println ( Main.$opt$noinline$foo ( new SubSubMain ( ) ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( Main.$noinline$runSmaliTest ( "$opt$noinline$foo" , new Main ( ) ) ) ; java.lang.System.out.println ( Main.$noinline$runSmaliTest ( "$opt$noinline$foo" , new SubMain ( ) ) ) ; java.lang.System.out.println ( Main.$noinline$runSmaliTest ( "$opt$noinline$foo" , new SubSubMain ( ) ) ) ; }
Source:
private org.eclipse.core.runtime.IPath getJavaPackagePath ( java.lang.String javaPackageName ) { java.lang.String [ ] segments = javaPackageName.split ( AndroidConstants.RE_DOT ) ; java.lang.StringBuilder path = new java.lang.StringBuilder ( ) ; for ( java.lang.String s : segments ) { path.append ( AndroidConstants.WS_SEP_CHAR ) ; path.append ( s ) ; } return new org.eclipse.core.runtime.Path ( path.toString ( ) ) ; }

Target:
private org.eclipse.core.runtime.IPath getJavaPackagePath ( java.lang.String javaPackageName ) { java.lang.String [ ] segments = javaPackageName.split ( AdtConstants.RE_DOT ) ; java.lang.StringBuilder path = new java.lang.StringBuilder ( ) ; for ( java.lang.String s : segments ) { path.append ( AdtConstants.WS_SEP_CHAR ) ; path.append ( s ) ; } return new org.eclipse.core.runtime.Path ( path.toString ( ) ) ; }
Source:
public int getPriority ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbapclient.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; int priority = Settings.Global.getInt ( getContentResolver ( ) , Settings.Global.getBluetoothPbapClientPriorityKey ( device.getAddress ( ) ) , BluetoothProfile.PRIORITY_UNDEFINED ) ; return priority ; }

Target:
public int getPriority ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) throw new java.lang.IllegalArgumentException ( "Null device" ) ; enforceCallingOrSelfPermission ( com.android.bluetooth.pbapclient.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; int priority = Settings.Global.getInt ( getContentResolver ( ) , Settings.Global.getBluetoothPbapClientPriorityKey ( device.getAddress ( ) ) , BluetoothProfile.PRIORITY_UNDEFINED ) ; return priority ; }
Source:
public void TestCalendarType6816 ( ) { java.util.Locale loc = new java.util.Locale ( "en" , "TH" ) ; com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( loc ) ; java.lang.String calType = cal.getType ( ) ; if ( ! ( calType.equals ( "gregorian" ) ) ) { errln ( "FAIL: Calendar type for en_TH should still be gregorian" ) ; } }

Target:
public void TestCalendarType6816 ( ) { java.util.Locale loc = new java.util.Locale ( "en" , "TH" ) ; com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( loc ) ; java.lang.String calType = cal.getType ( ) ; if ( ! ( calType.equals ( "buddhist" ) ) ) { errln ( "FAIL: Calendar type for en_TH should still be buddhist" ) ; } }
Source:
protected boolean start ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "start()" ) ; } initializeNative ( ) ; mAppOps = getSystemService ( android.app.AppOpsManager.class ) ; mAdvertiseManager = new com.android.bluetooth.gatt.AdvertiseManager ( this , com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mAdvertiseManager.start ( ) ; mScanManager = new com.android.bluetooth.gatt.ScanManager ( this ) ; mScanManager.start ( ) ; mPeriodicScanManager = new com.android.bluetooth.gatt.PeriodicScanManager ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mPeriodicScanManager.start ( ) ; return true ; }

Target:
protected boolean start ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "start()" ) ; } initializeNative ( ) ; mAppOps = getSystemService ( android.app.AppOpsManager.class ) ; mAdvertiseManager = new com.android.bluetooth.gatt.AdvertiseManager ( this , com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mAdvertiseManager.start ( ) ; mScanManager = new com.android.bluetooth.gatt.ScanManager ( this ) ; mScanManager.start ( ) ; mPeriodicScanManager = new com.android.bluetooth.gatt.PeriodicScanManager ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; mPeriodicScanManager.start ( ) ; com.android.bluetooth.gatt.GattService.setGattService ( this ) ; return true ; }
Source:
private void postMessage ( int messageCode ) { synchronized ( this ) { if ( ( mHandler ) == null ) { mHandler = getNewHandler ( ) ; } if ( ( mHandler ) == null ) { com.android.server.telecom.Log.d ( this , "Message %d skipped because there is no handler." , messageCode ) ; } else { mHandler.obtainMessage ( messageCode , null ) . sendToTarget ( ) ; } } }

Target:
private void postMessage ( int messageCode ) { synchronized ( this ) { if ( ( mHandler ) == null ) { mHandler = getNewHandler ( ) ; } if ( ( mHandler ) == null ) { android.telecom.Log.d ( this , "Message %d skipped because there is no handler." , messageCode ) ; } else { mHandler.obtainMessage ( messageCode , null ) . sendToTarget ( ) ; } } }
Source:
public boolean isImsUseEnabled ( ) { boolean imsUseEnabled = ( ( com.android.ims.ImsManager.isVolteEnabledByPlatform ( mContext ) ) && ( com.android.ims.ImsManager.isEnhanced4gLteModeSettingEnabledByUser ( mContext ) ) ) || ( ( ( com.android.ims.ImsManager.isWfcEnabledByPlatform ( mContext ) ) && ( com.android.ims.ImsManager.isWfcEnabledByUser ( mContext ) ) ) && ( com.android.ims.ImsManager.isNonTtyOrTtyOnVolteEnabled ( mContext ) ) ) ; return imsUseEnabled ; }

Target:
public void invokeOemRilRequestStrings ( java.lang.String [ ] strings , android.os.Message response ) { mCi.invokeOemRilRequestStrings ( strings , response ) ; }
Source:
public void addF64 ( android.support.v8.renderscript.Double3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addF64 ( new android.support.v8.renderscript.Double3 ( v.x , v.y , v.z ) ) ; return ; } addF64 ( v.x ) ; addF64 ( v.y ) ; addF64 ( v.z ) ; }

Target:
public void addF64 ( android.support.v8.renderscript.Double4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addF64 ( v ) ; return ; } addF64 ( v.x ) ; addF64 ( v.y ) ; addF64 ( v.z ) ; addF64 ( v.w ) ; }
Source:
public boolean onPreferenceClick ( android.preference.Preference preference ) { final android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_MAIN ) ; intent.setComponent ( new android.content.ComponentName ( "com.android.phone" , "com.android.phone.NetworkSetting" ) ) ; intent.putExtra ( com.android.phone.GsmUmtsOptions.EXTRA_SUB_ID , mSubId ) ; mPrefFragment.startActivity ( intent ) ; return true ; }

Target:
public boolean preferenceTreeClick ( android.preference.Preference preference ) { if ( ( preference == ( mButtonAutoSelect ) ) || ( preference == ( mButtonOperatorSelection ) ) ) { return true ; } else { log ( "preferenceTreeClick: return false" ) ; return false ; } }
Source:
static java.lang.invoke.MethodHandle filterArgument ( java.lang.invoke.MethodHandle target , int pos , java.lang.invoke.MethodHandle filter ) { java.lang.invoke.MethodHandles.filterArgumentChecks ( target , pos , filter ) ; throw new java.lang.UnsupportedOperationException ( "MethodHandles.filterArgument is not implemented" ) ; }

Target:
public static java.lang.invoke.MethodHandle filterArguments ( java.lang.invoke.MethodHandle target , int pos , java.lang.invoke.MethodHandle ... filters ) { java.lang.invoke.MethodHandles.filterArgumentsCheckArity ( target , pos , filters ) ; for ( int i = 0 ; i < ( filters.length ) ; ++ i ) { java.lang.invoke.MethodHandles.filterArgumentChecks ( target , ( i + pos ) , filters [ i ] ) ; } return new java.lang.invoke.Transformers.FilterArguments ( target , pos , filters ) ; }
Source:
public java.lang.String apply ( com.android.dialer.calllog.RefreshAnnotatedCallLogWorker.RefreshResult refreshResult ) { switch ( refreshResult ) { case NOT_DIRTY : return com.android.dialer.metrics.Metrics.REFRESH_NOT_DIRTY ; case REBUILT_BUT_NO_CHANGES_NEEDED : return checkDirty ? com.android.dialer.metrics.Metrics.REFRESH_NO_CHANGES_NEEDED : com.android.dialer.metrics.Metrics.FORCE_REFRESH_NO_CHANGES_NEEDED ; case REBUILT_AND_CHANGES_NEEDED : return checkDirty ? com.android.dialer.metrics.Metrics.REFRESH_CHANGES_NEEDED : com.android.dialer.metrics.Metrics.FORCE_REFRESH_CHANGES_NEEDED ; default : throw new java.lang.IllegalStateException ( ( "Unsupported result: " + refreshResult ) ) ; } }

Target:
public void onSuccess ( com.android.dialer.calllog.RefreshAnnotatedCallLogWorker.RefreshResult refreshResult ) { logger.logImpression ( com.android.dialer.calllog.RefreshAnnotatedCallLogReceiver.getImpressionType ( checkDirty , refreshResult ) ) ; }
Source:
void setVideoState ( java.lang.String callId , int videoState ) { android.telecom.Log.v ( this , "setVideoState: %d" , videoState ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setVideoState ( callId , videoState ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.v ( this , "putExtras: %s" , callId ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.putExtras ( callId , extras , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
final void deleteByRedirectingToPrimarySuccessor ( ) { assert hasPrimarySuccessor ( ) ; com.android.jack.ir.ast.cfg.JBasicBlock primary = getPrimarySuccessor ( ) ; for ( com.android.jack.ir.ast.cfg.JBasicBlock pre : this . getPredecessorsSnapshot ( ) ) { pre.replaceAllSuccessors ( this , primary ) ; } replaceAllSuccessors ( new com.android.jack.ir.ast.cfg.JPlaceholderBasicBlock ( getCfg ( ) ) ) ; }

Target:
final void deleteByRedirectingToPrimarySuccessor ( ) { assert hasPrimarySuccessor ( ) ; com.android.jack.ir.ast.cfg.JBasicBlock primary = getPrimarySuccessor ( ) ; for ( com.android.jack.ir.ast.cfg.JBasicBlock pre : this . getPredecessorsSnapshot ( ) ) { pre.replaceAllSuccessors ( this , primary ) ; } dereferenceAllSuccessors ( ) ; }
Source:
public void testSmsUsageMonitor ( ) { if ( ! ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) ) { return ; } com.android.internal.telephony.SmsUsageMonitor monitor = new com.android.internal.telephony.SmsUsageMonitor ( getContext ( ) ) ; for ( android.telephony.cts.SmsUsageMonitorShortCodeTest.ShortCodeTest test : android.telephony.cts.SmsUsageMonitorShortCodeTest.sShortCodeTests ) { assertEquals ( ( ( ( "country: " + ( test.countryIso ) ) + " number: " ) + ( test.address ) ) , test.category , monitor.checkDestination ( test.address , test.countryIso ) ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; mPackageManager = mContext.getPackageManager ( ) ; mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; }
Source:
private void addChildCall ( com.android.server.telecom.Call call ) { if ( ! ( mChildCalls.contains ( call ) ) ) { mConferenceLevelActiveCall = call ; mChildCalls.add ( call ) ; com.android.server.telecom.Log.event ( this , Log.Events.ADD_CHILD , call ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onChildrenChanged ( this ) ; } } }

Target:
private void addChildCall ( com.android.server.telecom.Call call ) { if ( ! ( mChildCalls.contains ( call ) ) ) { mConferenceLevelActiveCall = call ; mChildCalls.add ( call ) ; android.telecom.Log.addEvent ( this , LogUtils.Events.ADD_CHILD , call ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onChildrenChanged ( this ) ; } } }
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 ( ) . 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 ) ; } }

Target:
private static boolean isJayce ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFile vFile ) { return vFile.getName ( ) . endsWith ( JayceFileImporter.JAYCE_FILE_EXTENSION ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int target = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( this , opcode , 0 , null , ( baseAddress + target ) , literal ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int a = in.read ( ) ; int b = in.read ( ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a , b ) ; }
Source:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( method != null ) && ( mDriver.isSuppressed ( issue , method ) ) ) { return ; } report ( issue , location , message , data ) ; }

Target:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.Nullable org.objectweb.asm.tree.AbstractInsnNode instruction , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( method != null ) && ( mDriver.isSuppressed ( issue , mClassNode , method , instruction ) ) ) { return ; } report ( issue , location , message , data ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { try { switch ( msg.what ) { case android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.CompositionHandler.DO_RENDERING : { doGlRendering ( ) ; } break ; case android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.CompositionHandler.DO_RECREATE_WINDOWS : { doRecreateWindows ( ) ; } break ; } } catch ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlException e ) { } }

Target:
public void handleMessage ( android.os.Message msg ) { try { switch ( msg.what ) { case android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.CompositionHandler.DO_RENDERING : { doGlRendering ( ( ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.GlWindow ) ( msg.obj ) ) ) ; } break ; case android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.CompositionHandler.DO_RECREATE_WINDOWS : { doRecreateWindows ( ) ; } break ; } } catch ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlException e ) { } }
Source:
public android.app.usage.NetworkStats queryDetails ( int networkType , java.lang.String subscriberId , long startTime , long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.net.NetworkTemplate template ; try { template = android.app.usage.NetworkStatsManager.createTemplate ( networkType , subscriberId ) ; } catch ( java.lang.IllegalArgumentException e ) { if ( android.app.usage.NetworkStatsManager.DBG ) android.util.Log.e ( android.app.usage.NetworkStatsManager.TAG , "Cannot create template" , e ) ; return null ; } android.app.usage.NetworkStats result ; result = new android.app.usage.NetworkStats ( mContext , template , mFlags , startTime , endTime ) ; result.startUserUidEnumeration ( ) ; return result ; }

Target:
public android.app.usage.NetworkStats queryDetails ( int networkType , java.lang.String subscriberId , long startTime , long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.net.NetworkTemplate template ; try { template = android.app.usage.NetworkStatsManager.createTemplate ( networkType , subscriberId ) ; } catch ( java.lang.IllegalArgumentException e ) { if ( android.app.usage.NetworkStatsManager.DBG ) android.util.Log.e ( android.app.usage.NetworkStatsManager.TAG , "Cannot create template" , e ) ; return null ; } android.app.usage.NetworkStats result ; result = new android.app.usage.NetworkStats ( mContext , template , mFlags , startTime , endTime , mService ) ; result.startUserUidEnumeration ( ) ; return result ; }
Source:
public void callBackFromMissedCall ( java.lang.String number , android.net.Uri callUri ) { closeSystemDialogs ( context ) ; com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.markSingleMissedCallInCallLogAsRead ( context , callUri ) ; com.android.dialer.app.calllog.MissedCallNotifier.cancelSingleMissedCallNotification ( context , callUri ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.MISSED_CALL_NOTIFICATION ) . build ( ) . setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ) ; }

Target:
public void callBackFromMissedCall ( java.lang.String number , android.net.Uri callUri ) { closeSystemDialogs ( context ) ; com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.markSingleMissedCallInCallLogAsRead ( context , callUri ) ; com.android.dialer.app.calllog.MissedCallNotifier.cancelSingleMissedCallNotification ( context , callUri ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.MISSED_CALL_NOTIFICATION ) ) . setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ) ; }
Source:
public void test_parkUntil_2 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; }

Target:
public void test_parkUntil_2 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; waiterThread.join ( ) ; parkerThread.join ( ) ; }
Source:
private void createTzDataFile ( java.io.File file , java.lang.String rulesVersion ) { byte [ ] bytes = new byte [ 12 ] ; byte [ ] headerBytes = ( "tzdata" + rulesVersion ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ; java.lang.System.arraycopy ( headerBytes , 0 , bytes , 0 , headerBytes.length ) ; try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( file ) ) { fos.write ( bytes ) ; } catch ( java.io.IOException e ) { fail ( e.getMessage ( ) ) ; } }

Target:
private void createTzDataFile ( java.io.File file , java.lang.String rulesVersion ) { byte [ ] bytes = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) . setHeaderMagic ( ( "tzdata" + rulesVersion ) ) . build ( ) ; try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( file ) ) { fos.write ( bytes ) ; } catch ( java.io.IOException e ) { fail ( e.getMessage ( ) ) ; } }
Source:
public void onChange ( boolean selfChange , android.net.Uri uri ) { if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , java.lang.String.format ( "onChange(%s, %s)" , selfChange , uri ) ) ; bindToScoringServiceIfNeeded ( ) ; }

Target:
public void onChange ( boolean selfChange , android.net.Uri uri ) { if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , java.lang.String.format ( "onChange(%s, %s)" , selfChange , uri ) ) ; final java.lang.Integer what = mUriEventMap.get ( uri ) ; if ( what != null ) { mHandler.obtainMessage ( what ) . sendToTarget ( ) ; } else { android.util.Log.w ( com.android.server.NetworkScoreService.TAG , ( "No matching event to send for URI = " + uri ) ) ; } }
Source:
protected com.android.jack.ProguardFlags generateInjars ( @ javax.annotation.Nonnull java.io.File injar ) throws java.io.IOException { java.io.File injarFlags = com.android.jack.TestTools.createTempFile ( "injars" , ".flags" ) ; java.io.BufferedWriter writer = new java.io.BufferedWriter ( new java.io.FileWriter ( injarFlags ) ) ; writer.append ( "-injars " ) ; writer.append ( injar.getAbsolutePath ( ) ) ; writer.close ( ) ; return new com.android.jack.ProguardFlags ( injarFlags ) ; }

Target:
protected com.android.jack.ProguardFlags generateInjars ( @ javax.annotation.Nonnull java.io.File injar ) throws java.io.IOException { java.io.File injarFlags = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "injars" , ".flags" ) ; java.io.BufferedWriter writer = new java.io.BufferedWriter ( new java.io.FileWriter ( injarFlags ) ) ; writer.append ( "-injars " ) ; writer.append ( injar.getAbsolutePath ( ) ) ; writer.close ( ) ; return new com.android.jack.ProguardFlags ( injarFlags ) ; }
Source:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { org.kohsuke.args4j.CmdLineParser parser = new org.kohsuke.args4j.CmdLineParser ( new com.android.jack.Options ( ) ) ; printStream.println ( "Usage: <options> <source files>" ) ; printStream.println ( ) ; printStream.println ( "Options:" ) ; parser.printUsage ( printStream ) ; }

Target:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { org.kohsuke.args4j.CmdLineParser parser = new org.kohsuke.args4j.CmdLineParser ( new com.android.jack.Options ( ) , org.kohsuke.args4j.ParserProperties.defaults ( ) . withUsageWidth ( 100 ) ) ; printStream.println ( "Usage: <options> <source files>" ) ; printStream.println ( ) ; printStream.println ( "Options:" ) ; parser.printUsage ( printStream ) ; }
Source:
public static void recordSparseSlowlyHistogram ( java.lang.String name , int sample ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordSparseHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordPercentageHistogram ( java.lang.String name , int sample ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordEnumeratedHistogram ( name , key , sample , 101 ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
private void sendResponse ( int resId ) { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( StkAppService.OPCODE , StkAppService.OP_RESPONSE ) ; args.putInt ( StkAppService.RES_ID , resId ) ; startService ( new android.content.Intent ( this , com.android.stk.StkAppService.class ) . putExtras ( args ) ) ; }

Target:
private void sendResponse ( int resId ) { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( StkAppService.OPCODE , StkAppService.OP_RESPONSE ) ; args.putInt ( StkAppService.RES_ID , resId ) ; startService ( new android.content.Intent ( this , com.android.stk.StkAppService.class ) . putExtras ( args ) ) ; mIsResponseSent = true ; }
Source:
public void run ( ) { android.content.ContentResolver resolver = mActivity.getContentResolver ( ) ; resolver.delete ( TestResultsProvider.CONTENT_URI , "1" , null ) ; android.database.Cursor cursor = resolver.query ( TestResultsProvider.RESULTS_ALL_CONTENT_URI , TestResultsProvider.ALL_COLUMNS , null , null , null ) ; assertEquals ( 0 , cursor.getCount ( ) ) ; cursor.close ( ) ; }

Target:
public void run ( ) { android.content.ContentResolver resolver = mActivity.getContentResolver ( ) ; resolver.delete ( TestResultsProvider.RESULTS_CONTENT_URI , "1" , null ) ; android.database.Cursor cursor = resolver.query ( TestResultsProvider.RESULTS_CONTENT_URI , TestResultsProvider.ALL_COLUMNS , null , null , null ) ; assertEquals ( 0 , cursor.getCount ( ) ) ; cursor.close ( ) ; }
Source:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull com.android.sched.util.file.OutputStreamFile stream ) throws com.android.sched.util.codec.CheckingException { checkValue ( context , ( ( com.android.sched.util.file.AbstractStreamFile ) ( stream ) ) ) ; }

Target:
public java.lang.String formatValue ( @ javax.annotation.Nonnull com.android.sched.util.file.OutputStreamFile stream ) { if ( stream.isStandard ( ) ) { if ( stream.getLocation ( ) . equals ( StandardOutputKind.STANDARD_OUTPUT.getLocation ( ) ) ) { return STANDARD_IO_NAME ; } else { assert stream.getLocation ( ) . equals ( StandardOutputKind.STANDARD_ERROR.getLocation ( ) ) ; return STANDARD_ERROR_NAME ; } } else { return stream.getPath ( ) ; } }
Source:
public void write ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVDir outputVDir ) throws com.android.jack.JackIOException { com.android.jack.tools.merger.JackMerger merger = new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) ) ; com.android.sched.vfs.OutputVFile outputDex = getOutputDex ( outputVDir ) ; java.util.List < com.android.sched.vfs.InputVFile > dexList = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; getAllDexFilesFromDir ( getTypeDexDir ( ) , dexList ) ; for ( com.android.sched.vfs.InputVFile currentDex : dexList ) { try { mergeDex ( merger , currentDex ) ; } catch ( com.android.jack.tools.merger.MergeOverflow e ) { throw new com.android.jack.JackUserException ( "Index overflow while merging dex files. Try using multidex" , e ) ; } } finishMerge ( merger , outputDex ) ; }

Target:
public void write ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVDir outputVDir ) throws com.android.jack.backend.dex.DexWritingException { com.android.jack.tools.merger.JackMerger merger = new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) ) ; com.android.sched.vfs.OutputVFile outputDex = getOutputDex ( outputVDir ) ; java.util.List < com.android.sched.vfs.InputVFile > dexList = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; getAllDexFilesFromDir ( getTypeDexDir ( ) , dexList ) ; for ( com.android.sched.vfs.InputVFile currentDex : dexList ) { try { mergeDex ( merger , currentDex ) ; } catch ( com.android.jack.tools.merger.MergingOverflowException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.jack.backend.dex.SingleDexOverflowException ( e ) ) ; } } finishMerge ( merger , outputDex ) ; }
Source:
, methodHandleExtraArgs = { @ annotations.Constant ( intValue = - 1 ) , @ annotations.Constant ( intValue = 1 ) , @ annotations.Constant ( intValue = ( ( int ) ( 'a' ) ) ) , @ annotations.Constant ( intValue = 1024 ) , @ annotations.Constant ( intValue = 1 ) , @ annotations.Constant ( floatValue = 11.1F ) , @ annotations.Constant ( doubleValue = 2.2 ) , @ annotations.Constant ( stringValue = "Hello" ) , @ annotations.Constant ( classValue = TestLinkerMethodMultipleArgumentTypes.class ) , @ annotations.Constant ( longValue = 123456789L ) } , name = "_add" , returnType = int . class , argumentTypes = { int . class , int . class } ) private static int add ( int a , int b ) { assertNotReached ( ) ; return - 1 ; }

Target:
, fieldOrMethodName = "_add" , returnType = int . class , parameterTypes = { int . class , int . class } , constantArgumentsForBootstrapMethod = { @ annotations.Constant ( intValue = - 1 ) , @ annotations.Constant ( intValue = 1 ) , @ annotations.Constant ( intValue = ( ( int ) ( 'a' ) ) ) , @ annotations.Constant ( intValue = 1024 ) , @ annotations.Constant ( intValue = 1 ) , @ annotations.Constant ( floatValue = 11.1F ) , @ annotations.Constant ( doubleValue = 2.2 ) , @ annotations.Constant ( stringValue = "Hello" ) , @ annotations.Constant ( classValue = TestLinkerMethodMultipleArgumentTypes.class ) , @ annotations.Constant ( longValue = 123456789L ) } ) private static int add ( int a , int b ) { assertNotReached ( ) ; return - 1 ; }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( ( getPriority ( device ) ) == ( android.bluetooth.BluetoothProfile.PRIORITY_OFF ) ) { return false ; } int connectionState = mStateMachine.getConnectionState ( device ) ; android.util.Log.d ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "connectionState = " + connectionState ) ) ; if ( ( connectionState == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) || ( connectionState == ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.CONNECT , device ) ; return true ; }

Target:
boolean disconnect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; android.util.Log.d ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "disconnect: device=" + device ) ) ; int connectionState = mStateMachine.getConnectionState ( device ) ; if ( ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , ( ( ( "disconnect: not connected/connecting, connectionState=" + connectionState ) + ", device=" ) + device ) ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT , device ) ; return true ; }
Source:
public java.nio.ByteBuffer compact ( ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } libcore.io.Memory.memmove ( this , 0 , this , position , remaining ( ) ) ; position = ( limit ) - ( position ) ; limit = capacity ; mark = UNSET_MARK ; return this ; }

Target:
public java.nio.ByteBuffer compact ( ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } libcore.io.Memory.memmove ( this , 0 , this , position , remaining ( ) ) ; position = ( limit ) - ( position ) ; limit = capacity ; mark = UNSET_MARK ; return this ; }
Source:
public void dragStart ( org.eclipse.swt.dnd.DragSourceEvent event ) { if ( ! ( adjustEventCoordinates ( event ) ) ) { event.doit = false ; return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragSourceListener ( ) . dragStart ( event ) ; } }

Target:
public void dragStart ( org.eclipse.swt.dnd.DragSourceEvent event ) { if ( ! ( adjustEventCoordinates ( event ) ) ) { event.doit = false ; return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragListener ( ) . dragStart ( event ) ; } }
Source:
private static java.nio.charset.Charset lookup ( java.lang.String charsetName ) { if ( charsetName == null ) throw new java.lang.IllegalArgumentException ( "Null charset name" ) ; java.lang.Object [ ] a ; if ( ( ( a = java.nio.charset.Charset.cache1 ) != null ) && ( charsetName.equals ( a [ 0 ] ) ) ) return ( ( java.nio.charset.Charset ) ( a [ 1 ] ) ) ; return java.nio.charset.Charset.lookup2 ( charsetName ) ; }

Target:
private static java.nio.charset.Charset lookup ( java.lang.String charsetName ) { if ( charsetName == null ) throw new java.lang.IllegalArgumentException ( "Null charset name" ) ; if ( ( ( java.nio.charset.Charset.cache1 ) != null ) && ( charsetName.equals ( java.nio.charset.Charset.cache1.getKey ( ) ) ) ) return java.nio.charset.Charset.cache1.getValue ( ) ; return java.nio.charset.Charset.lookup2 ( charsetName ) ; }
Source:
private synchronized < T extends com.android.server.IpSecService.ManagedResource > void releaseManagedResource ( com.android.server.IpSecService.ManagedResourceArray < T > resArray , int resourceId , java.lang.String typeName ) throws android.os.RemoteException { T record = resArray.getAndCheckOwner ( resourceId ) ; if ( record == null ) { throw new java.lang.IllegalArgumentException ( ( ( ( typeName + " " ) + resourceId ) + " is not available to be deleted" ) ) ; } record.release ( ) ; resArray.remove ( resourceId ) ; }

Target:
private synchronized < T extends com.android.server.IpSecService.KernelResource > void releaseKernelResource ( com.android.server.IpSecService.KernelResourceArray < T > resArray , int resourceId , java.lang.String typeName ) throws android.os.RemoteException { T record = resArray.getAndCheckOwner ( resourceId ) ; if ( record == null ) { throw new java.lang.IllegalArgumentException ( ( ( ( typeName + " " ) + resourceId ) + " is not available to be deleted" ) ) ; } record.release ( ) ; resArray.remove ( resourceId ) ; }
Source:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > result = classes ; if ( result == null ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < com.google.common.reflect.TypeToken < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_GENERIC_TYPE.classesOnly ( ) . collectTypes ( this ) ) ) ; return classes = com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.IGNORE_TYPE_VARIABLE_OR_WILDCARD ) . toImmutableSet ( ) ; } else { return result ; } }

Target:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > result = classes ; if ( result == null ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < com.google.common.reflect.TypeToken < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_GENERIC_TYPE.classesOnly ( ) . collectTypes ( this ) ) ) ; return classes = com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.IGNORE_TYPE_VARIABLE_OR_WILDCARD ) . toSet ( ) ; } else { return result ; } }
Source:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "idmap" , targetApkPath , overlayApkPath , uid ) ; }

Target:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public boolean getBooleanQueryParameter ( java.lang.String key , boolean defaultValue ) { java.lang.String flag = getQueryParameter ( key ) ; if ( flag == null ) { return defaultValue ; } flag = flag.toLowerCase ( ) ; return ( ! ( "false" . equals ( flag ) ) ) && ( ! ( "0" . equals ( flag ) ) ) ; }

Target:
public boolean getBooleanQueryParameter ( java.lang.String key , boolean defaultValue ) { java.lang.String flag = getQueryParameter ( key ) ; if ( flag == null ) { return defaultValue ; } flag = flag.toLowerCase ( java.util.Locale.ROOT ) ; return ( ! ( "false" . equals ( flag ) ) ) && ( ! ( "0" . equals ( flag ) ) ) ; }